File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ jobs:
2828 sudo apt-get update
2929 sudo apt-get install -y build-essential
3030
31- - name : Try CUDA installation (with fallback)
31+ - name : CUDA installation
3232 id : cuda_install
3333 continue-on-error : true
3434 timeout-minutes : 10
3535 run : |
36- # Try to install CUDA toolkit
36+ # Install CUDA toolkit
3737 wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
3838 sudo sh cuda_11.8.0_520.61.05_linux.run --silent --toolkit --no-opengl-libs --no-drm
3939 echo "CUDA_INSTALLED=true" >> $GITHUB_OUTPUT
@@ -44,17 +44,11 @@ jobs:
4444 echo "/usr/local/cuda/bin" >> $GITHUB_PATH
4545 echo "LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
4646
47- - name : Compile CUDA program (if CUDA available)
47+ - name : Compile CUDA program
4848 if : steps.cuda_install.outcome == 'success'
4949 run : |
5050 nvcc -o mastermind_cuda_linux kernel.cu
5151
52- - name : Compile CUDA program fallback (CPU-only)
53- if : steps.cuda_install.outcome == 'failure'
54- run : |
55- # Create a CPU-only version by compiling as regular C++
56- g++ -DCPU_ONLY -x c++ -o mastermind_cuda_linux kernel.cu -std=c++17
57-
5852 - name : Compile C++ programs
5953 run : |
6054 g++ -o treeGenFixedWeights_linux treeGenFixedWeights.cpp -std=c++17 -O3
You can’t perform that action at this time.
0 commit comments