Skip to content
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
15 changes: 10 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,18 @@ if(LINUX)
endif()


string(FIND "${LLVM_TARGETS_TO_BUILD}" "SPIRV" SPIRV_FOUND)
if(SPIRV_FOUND GREATER -1)
message(STATUS "SPIRV is part of the LLVM targets")

if (MLIR_SPIRV_BACKEND_ENABLED)
set(MLIR_SPIRV_BACKEND_ENABLED 1)
else()
message(STATUS "SPIRV is not part of the LLVM targets")
set(MLIR_SPIRV_BACKEND_ENABLED 0)
string(FIND "${LLVM_TARGETS_TO_BUILD}" "SPIRV" SPIRV_FOUND)
if(SPIRV_FOUND GREATER -1)
message(STATUS "SPIRV is part of the LLVM targets")
set(MLIR_SPIRV_BACKEND_ENABLED 1)
else()
message(STATUS "SPIRV is not part of the LLVM targets")
set(MLIR_SPIRV_BACKEND_ENABLED 0)
endif()
endif()

# option(IMEX_BUILD_SPIRV_BACKEND "Append SPIRV to LLVM_TARGETS_TO_BUILD" ON)
Expand Down
11 changes: 7 additions & 4 deletions scripts/run_xegpu_simt_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -299,19 +299,22 @@ else
# User provided a specific test filter
LIT_FILTER="$TEST_NAME_FILTER"
print_info "Using custom test filter: $LIT_FILTER"
LLVM_LIT_ARGS_OPTION="-DLLVM_LIT_ARGS=-v --filter='$LIT_FILTER'"
else
# No filter for out-of-tree build by default
LLVM_LIT_ARGS_OPTION=""
# Default: all XeGPU integration test directories (same as source build)
LIT_FILTER="Integration/Dialect/XeGPU/SG|Integration/Dialect/XeGPU/WG|Integration/Dialect/XeGPU/SIMT|Integration/Dialect/XeVM"
print_info "Using default test filter for XeGPU integration tests"
fi

cmake -S . -B "$BUILD_DIR" -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DMLIR_DIR="$MLIR_CMAKE_DIR" \
-DIMEX_ENABLE_L0_RUNTIME=1 \
-DMLIR_ENABLE_LEVELZERO_RUNNER=1 \
-DMLIR_ENABLE_SYCL_RUNNER=1 \
-DMLIR_SPIRV_BACKEND_ENABLED=1 \
-DIMEX_BUILD_VC_CONVERSIONS=OFF \
-DIMEX_ENABLE_XEGPU_LAYOUT_PASSES=OFF \
$LLVM_LIT_ARGS_OPTION
-DLLVM_LIT_ARGS="-v --filter='$LIT_FILTER'"
fi

if [ $? -eq 0 ]; then
Expand Down
Loading