File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 1919
2020 - name : Initialize EESSI
2121 uses : eessi/github-action-eessi@v3
22-
22+
23+ - name : Test function nvidia_gpu_available before setup of libraries
24+ run : |
25+ source scripts/utils.sh
26+ if nvidia_gpu_available; then
27+ echo "Error: Found NVIDIA libraries before the mock libraries were set up."
28+ exit 1
29+ else
30+ echo "NVIDIA libraries were not found."
31+ echo "Proceeding to setting up the mock NVIDIA libraries."
32+ fi
33+
2334 - name : Setup mock NVIDIA libraries
2435 run : |
2536 # Run the script to create mock libraries
4859 echo "Updating PATH"
4960 echo "PATH=/tmp/nvidia-bin:$PATH" >> $GITHUB_ENV
5061
62+ - name : Test nvidia_gpu_available after setup of mock libraries
63+ run : |
64+ source scripts/utils.sh
65+ if nvidia_gpu_available; then
66+ echo "mock NVIDIA libraries and nvidia-smi were set up"
67+ else
68+ echo "Error: mock nvidia-smi is not available."
69+ exit 1
70+ fi
71+
5172 - name : Test LD_PRELOAD mode
5273 run : |
5374 echo ">>> Testing LD_PRELOAD mode"
You can’t perform that action at this time.
0 commit comments