Skip to content

Commit

Permalink
Skip CUDA-related tests if no GPU is present (#252)
Browse files Browse the repository at this point in the history
Make unit tests that require a CUDA device skip the test and exit
succesfully if the CUDA runtime is not available, or no CUDA devices
are available.
  • Loading branch information
cmsbuild authored and fwyzard committed Dec 25, 2020
1 parent 50dd4d8 commit b008561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RecoLocalTracker/SiPixelClusterizer/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
<use name="cuda"/>
<use name="cub"/>
<use name="cuda-api-wrappers"/>
<use name="HeterogeneousCore/CUDAUtilities"/>
<flags CXXFLAGS="-g"/>
</bin>

<bin file="gpuClustering.cu" name="gpuClustering_debug">
<use name="cuda"/>
<use name="cub"/>
<use name="cuda-api-wrappers"/>
<use name="HeterogeneousCore/CUDAUtilities"/>
<flags CXXFLAGS="-g -DGPU_DEBUG"/>
<flags CUDA_FLAGS="-g -DGPU_DEBUG"/>
</bin>

0 comments on commit b008561

Please sign in to comment.