Skip to content

Commit

Permalink
cuda-jenkins: only compile for local cuda arch
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwer committed Jul 27, 2023
1 parent 5516d03 commit effe720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ pipeline {
echo $HOME
'''
sh '''#!/bin/bash -ex
cuda_arch=$(nvidia-smi --query-gpu=compute_cap --format=csv,noheader|head -n 1| sed "s/\.//")
cmake -B build . -DFINUFFT_USE_CUDA=ON \
-DFINUFFT_USE_CPU=OFF \
-DFINUFFT_BUILD_TESTS=ON \
-DCMAKE_CUDA_ARCHITECTURES="35;50;60;70;75;80" \
-DCMAKE_CUDA_ARCHITECTURES="$cuda_arch" \
-DBUILD_TESTING=ON
cd build
make -j4
Expand Down

0 comments on commit effe720

Please sign in to comment.