diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2025-08-25 09:08:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-25 09:08:50 -0700 |
| commit | 404a8635f4e5a1c7872b8c1cca322904f2ed1579 (patch) | |
| tree | bd82a7226ecc0be7af777db735cf5fbac185576c | |
| parent | 1562f98c07954ae17f9e7ef186f6c8eb029740ab (diff) | |
Print GPU driver version in CI.yml (#8275)
This commit prints an additional information of GPU version while
running CI.yml.
This can help us to debug when things don't work as expected.
| -rw-r--r-- | .github/workflows/ci.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6bc35a46..0d85d1d14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -227,7 +227,7 @@ jobs: if: steps.filter.outputs.should-run == 'true' run: bash extras/verify-documented-compiler-version.sh - - name: Test Slang + - name: Check runtime environment if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && (matrix.platform != 'aarch64' || matrix.os == 'macos') run: | smokeResult=$("$bin_dir/slang-test" tests/render/check-backend-support-on-ci.slang) @@ -242,13 +242,15 @@ jobs: do echo "Checking $backend ..." && echo "$supportedBackends" | grep -q "$backend" done + for api in 'vk,vulkan' 'dx12,d3d12' 'dx11,d3d11' 'cuda' 'wgpu,webgpu' do echo "Checking $api ..." && echo "$smokeResult" | grep -q "Check $api: Supported" done - echo "Printing CUDA version: ..." && nvcc --version - echo "Printing Vulkan SDK version: ..." && vulkaninfo | grep -i version + echo "Printing CUDA compiler version: ..." && nvcc --version + echo "Printing GPU driver version: ..." && nvidia-smi -q | grep Version + echo "Printing Vulkan SDK version: ..." && vulkaninfo | grep -i version fi if [[ "${{matrix.os}}" == "macos" ]] @@ -257,12 +259,16 @@ jobs: do echo "Checking $backend ..." && echo "$supportedBackends" | grep -q "$backend" done + for api in 'mtl,metal' do echo "Checking $api ..." && echo "$smokeResult" | grep -q "Check $api: Supported" done fi + - name: Test Slang + if: steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && (matrix.platform != 'aarch64' || matrix.os == 'macos') + run: | export SLANG_RUN_SPIRV_VALIDATION=1 export SLANG_USE_SPV_SOURCE_LANGUAGE_UNKNOWN=1 if [[ "${{matrix.full-gpu-tests}}" == "true" ]]; then |
