From 404a8635f4e5a1c7872b8c1cca322904f2ed1579 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Mon, 25 Aug 2025 09:08:50 -0700 Subject: 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. --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to '.github/workflows') 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 -- cgit v1.2.3