@@ -226,7 +226,7 @@ jobs:
226226 - name : Install pip dependencies
227227 run : |
228228 python3 -m pip install --upgrade pip
229- python3 -m pip install wheel cmake==3.24 ninja pytest-xdist lit
229+ python3 -m pip install cython setuptools wheel cmake==3.24 ninja pytest-forked pytest-xdist lit
230230 - name : Install Triton
231231 env :
232232 TRITON_BUILD_WITH_CCACHE : " true"
@@ -245,18 +245,19 @@ jobs:
245245 lit -v "${LIT_TEST_DIR}"
246246 - name : Run python tests on CUDA
247247 run : |
248- SHARED_LIB_DIR ="${GITHUB_WORKSPACE}/python/build/$(ls python/build | grep -i lib)/triton/_C "
249- if [ ! -d "${SHARED_LIB_DIR }" ]; then
250- echo "Coult not find '${SHARED_LIB_DIR }'" ; exit -1
248+ INSTRUMENTATION_LIB_DIR ="${GITHUB_WORKSPACE}/python/build/$(ls python/build | grep -i lib)/triton/instrumentation "
249+ if [ ! -d "${INSTRUMENTATION_LIB_DIR }" ]; then
250+ echo "Coult not find '${INSTRUMENTATION_LIB_DIR }'" ; exit -1
251251 fi
252252 cd python/test/unit
253- python3 -m pytest -s -n 8 --ignore=hopper/test_flashattention.py --ignore=language/test_line_info.py --ignore=language/test_subprocess.py
253+ python3 -m pytest -s -n 8 --ignore=hopper/test_flashattention.py --ignore=language/test_line_info.py --ignore=language/test_subprocess.py --ignore=test_debug.py
254254 python3 -m pytest -s -n 8 language/test_subprocess.py
255+ python3 -m pytest -s -n 8 test_debug.py --forked
255256 # Run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0
256257 TRITON_DISABLE_LINE_INFO=0 python3 -m pytest -s language/test_line_info.py
257258 # Run hopper/test_flashattention.py separately to avoid out of gpu memory
258259 python3 -m pytest -s hopper/test_flashattention.py
259- TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${SHARED_LIB_DIR}/libGPUHello .so \
260+ TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${INSTRUMENTATION_LIB_DIR}/libGPUInstrumentationTestLib .so \
260261 python3 -m pytest --capture=tee-sys -rfs -vvv instrumentation/test_gpuhello.py
261262 - name : Run interpreter tests
262263 if : ${{ matrix.runner[0] == 'h100-runner-set' }}
@@ -400,15 +401,18 @@ jobs:
400401 lit -v "${LIT_TEST_DIR}"
401402 - name : Run python tests on HIP
402403 run : |
403- SHARED_LIB_DIR ="${GITHUB_WORKSPACE}/python/triton/_C "
404- if [ ! -d "${SHARED_LIB_DIR }" ]; then
405- echo "Coult not find '${SHARED_LIB_DIR }'" ; exit -1
404+ INSTRUMENTATION_LIB_DIR ="${GITHUB_WORKSPACE}/python/triton/instrumentation "
405+ if [ ! -d "${INSTRUMENTATION_LIB_DIR }" ]; then
406+ echo "Coult not find '${INSTRUMENTATION_LIB_DIR }'" ; exit -1
406407 fi
407408 pytest --capture=tee-sys -rfs python/tutorials/06-fused-attention.py
408409 cd python/test/unit
409410 pytest --capture=tee-sys -rfs -n 16 language runtime \
410- --ignore=language/test_line_info.py
411- TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${SHARED_LIB_DIR}/libGPUHello.so \
411+ --ignore=language/test_line_info.py \
412+ --ignore=test_debug.py
413+ # TODO: uncomment
414+ # pytest --capture=tee-sys -rfs test_debug.py
415+ TRITON_ALWAYS_COMPILE=1 TRITON_DISABLE_LINE_INFO=0 LLVM_PASS_PLUGIN_PATH=${INSTRUMENTATION_LIB_DIR}/libGPUInstrumentationTestLib.so \
412416 pytest --capture=tee-sys -rfs -vvv instrumentation/test_gpuhello.py
413417
414418 # Run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0
0 commit comments