Skip to content

update llvm revision #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build-llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: LLVM Build

on:
workflow_dispatch:
push:
paths:
- cmake/llvm-version.txt
- .github/workflows/build-llvm.yml

permissions: read-all

Expand Down
2 changes: 1 addition & 1 deletion cmake/llvm-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
37661a17e26d9002ae9ade8c0de3932c22f16360
62e9f40949ddc52e9660b25ab146bd5d9b39ad88
4 changes: 2 additions & 2 deletions lib/gc/Transforms/GPU/LinalgToXeGPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static std::optional<Value> lowerEltwiseOp(linalg::LinalgOp linalgOp,
// Unhandled type. Bail out.
return std::nullopt;
})
.Case([&](linalg::NegfOp negfOp) -> std::optional<Value> {
.Case([&](linalg::NegFOp negFOp) -> std::optional<Value> {
assert(operands.size() == 1 && "Invalid number of operands for negf");
return rewriter.create<arith::NegFOp>(loc, resType, operands[0])
.getResult();
Expand Down Expand Up @@ -1390,7 +1390,7 @@ void populateLinalgEltwiseToXeGPUPatterns(RewritePatternSet &patterns,
ConvertNamedEltwiseToXeGPU<linalg::FloorOp>,
ConvertNamedEltwiseToXeGPU<linalg::MaxOp>,
ConvertNamedEltwiseToXeGPU<linalg::MulOp>,
ConvertNamedEltwiseToXeGPU<linalg::NegfOp>,
ConvertNamedEltwiseToXeGPU<linalg::NegFOp>,
ConvertNamedEltwiseToXeGPU<linalg::SubOp>>(patterns.getContext(),
options);
}
Expand Down
8 changes: 4 additions & 4 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

repo=intel/graph-compiler

set -e

# Uncomment for script debug
# set -x

Expand Down Expand Up @@ -50,14 +52,12 @@ LLVM_HASH=$(cat cmake/llvm-version.txt)
load_llvm() {
local run_id

run_id=$(gh run list -w "LLVM Build" --repo $repo --json databaseId --jq '.[0].databaseId')

gh run download "$run_id" \
--repo "$repo" \
--pattern "llvm-$LLVM_HASH" \
-n "llvm-$LLVM_HASH" \
--dir "$llvm_dir"
cd "$llvm_dir"
tar -zxf "llvm-$LLVM_HASH"/llvm.tgz
tar -zxf llvm.tgz

MLIR_DIR="$PWD/lib/cmake/mlir"
cd "$PROJECT_DIR"
Expand Down