Skip to content

Commit 79e23ba

Browse files
authored
[CI][Testing][SIMT] Don't check llvm sha for pre-built llvm mode (#1161)
1 parent b665f5d commit 79e23ba

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

scripts/run_xegpu_simt_integration_tests.sh

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -185,35 +185,11 @@ if [ "$USE_PREBUILT_LLVM" = false ]; then
185185
cd "$LLVM_PROJECT_PATH"
186186
LLVM_HEAD_SHA=$(git rev-parse HEAD)
187187
print_info "LLVM source repository SHA: $LLVM_HEAD_SHA"
188-
else
189-
# Pre-built LLVM: find source repository (typically parent of build directory)
190-
print_info "Searching for LLVM source repository..."
191-
LLVM_SOURCE_DIR=""
192-
193-
# Check parent directory for LLVM source
194-
PARENT_DIR="$(dirname "$LLVM_PROJECT_PATH")"
195-
if [ -d "$PARENT_DIR/.git" ] && [ -d "$PARENT_DIR/mlir" ]; then
196-
LLVM_SOURCE_DIR="$PARENT_DIR"
197-
print_info "Found LLVM source at: $LLVM_SOURCE_DIR"
198-
fi
199-
200-
if [ -z "$LLVM_SOURCE_DIR" ]; then
201-
print_error "Cannot find LLVM source repository to extract SHA"
202-
print_error "Pre-built LLVM path: $LLVM_PROJECT_PATH"
203-
print_error "Tried parent directory: $PARENT_DIR"
204-
print_error "Please provide path to LLVM source repository instead of build directory"
205-
exit 1
206-
fi
207-
208-
cd "$LLVM_SOURCE_DIR"
209-
LLVM_HEAD_SHA=$(git rev-parse HEAD)
210-
print_info "LLVM source repository SHA: $LLVM_HEAD_SHA"
188+
cd "$IMEX_PROJECT_PATH"
189+
echo "$LLVM_HEAD_SHA" > "$LLVM_VERSION_FILE"
190+
print_success "Updated llvm_version.txt with SHA: $LLVM_HEAD_SHA"
211191
fi
212192

213-
cd "$IMEX_PROJECT_PATH"
214-
echo "$LLVM_HEAD_SHA" > "$LLVM_VERSION_FILE"
215-
print_success "Updated llvm_version.txt with SHA: $LLVM_HEAD_SHA"
216-
217193
# Configure build (different approach for source repo vs pre-built)
218194
if [ "$USE_PREBUILT_LLVM" = false ]; then
219195
print_section "Configuring LLVM Build with IMEX as External Project"
@@ -312,6 +288,7 @@ else
312288
-DMLIR_ENABLE_LEVELZERO_RUNNER=1 \
313289
-DMLIR_ENABLE_SYCL_RUNNER=1 \
314290
-DMLIR_SPIRV_BACKEND_ENABLED=1 \
291+
-DIMEX_CHECK_LLVM_VERSION=OFF \
315292
-DIMEX_BUILD_VC_CONVERSIONS=OFF \
316293
-DIMEX_ENABLE_XEGPU_LAYOUT_PASSES=OFF \
317294
-DLLVM_LIT_ARGS="-v --filter='$LIT_FILTER'"

0 commit comments

Comments
 (0)