Skip to content

Commit 293c3ee

Browse files
authored
Add FS simulator workflow to execute on every PR (#397)
Signed-off-by: Gregory Shimansky <[email protected]>
1 parent a182f08 commit 293c3ee

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/build_gpu-fs-sim.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: GPU Build and run tests on FS simulator
22

33
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- upstream
8+
- 'dist-ndarray'
49
workflow_dispatch:
510
workflow_call:
611

@@ -65,11 +70,11 @@ jobs:
6570
source /opt/intel/oneapi/setvars.sh
6671
set -x
6772
cd $HOME_DIR/frameworks.ai.mlir.mlir-extensions
68-
cmake -S $BUILD_ROOT/llvm-project/llvm -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=mlir -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_USE_LINKER=gold -DLLVM_ENABLE_ZSTD=OFF -DLLVM_EXTERNAL_PROJECTS="Imex" -DLLVM_EXTERNAL_IMEX_SOURCE_DIR=. -DIMEX_ENABLE_SYCL_RUNTIME=1 -DIMEX_ENABLE_L0_RUNTIME=1 -DLEVEL_ZERO_DIR=$HOME_DIR/level-zero-install/ -DLLVM_LIT_ARGS="-j 1 --debug --timeout=600" -DIMEX_ENABLE_FS_SIMULATOR=ON || exit
69-
sed -e 's,-printAllFeatures,,g' -i ${WORK_ROOT}/fs/scripts/run_in_a_loop_xesim.sh
70-
(cd ${WORK_ROOT}/fs/scripts && source setup.sh && umd_driver_env_variables_export && ./run_in_a_loop_xesim.sh) &> fs-sim.log &
73+
cmake -S $BUILD_ROOT/llvm-project/llvm -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=mlir -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_USE_LINKER=gold -DLLVM_ENABLE_ZSTD=OFF -DLLVM_EXTERNAL_PROJECTS="Imex" -DLLVM_EXTERNAL_IMEX_SOURCE_DIR=. -DIMEX_ENABLE_SYCL_RUNTIME=1 -DIMEX_ENABLE_L0_RUNTIME=1 -DLEVEL_ZERO_DIR=$HOME_DIR/level-zero-install/ -DLLVM_LIT_ARGS="-j 1 --debug --timeout=600 --filter=gemm_with_transposed_B_1kx1kx1k_f16_f16_f32.mlir" -DIMEX_ENABLE_FS_SIMULATOR=ON || exit
74+
sed -e 's,-printAllFeatures,,g' -i ${WORK_ROOT}/fs/scripts/run_in_a_loop_rasty.sh
75+
(cd ${WORK_ROOT}/fs/scripts && source setup.sh && umd_driver_env_variables_export && ./run_in_a_loop_rasty.sh) &> fs-sim.log &
7176
SIM_PID=$!
72-
cmake --build build --target check-imex | tee build/tests.txt
77+
cmake --build build --target check-static | tee build/tests.txt
7378
TEST_RESULT=${PIPESTATUS[0]}
7479
kill $SIM_PID
7580
wait $SIM_PID

0 commit comments

Comments
 (0)