Skip to content

cudaf/choose-device

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selection of compute-device which best matches criteria.

1. Check how many compute devices are attached.
2. Select device with atleast compute capability 1.3.
$ nvcc -std=c++17 -Xcompiler -O3 main.cu
$ ./a.out

# Current CUDA device: 0
# CUDA device with atleast compute capability 1.3: 0
#
# Cards that have compute capability 1.3 or higher
# support double-precision floating-point math.

See main.cu for code.



References