Skip to content

Instantly share code, notes, and snippets.

@altbridgetech
Last active September 2, 2020 07:47
Show Gist options
  • Save altbridgetech/c1e56a7a8354d209dd40c939c9bb9dac to your computer and use it in GitHub Desktop.
Save altbridgetech/c1e56a7a8354d209dd40c939c9bb9dac to your computer and use it in GitHub Desktop.
ubuntu@ip-xxx-xxx-xxx-xxx:~$ mkdir test
ubuntu@ip-xxx-xxx-xxx-xxx:~$ cp /usr/local/cuda/samples/1_Utilities/deviceQuery/deviceQuery.cpp test/
ubuntu@ip-xxx-xxx-xxx-xxx:~$ cp -r /usr/local/cuda/samples/common/inc/ test/
ubuntu@ip-xxx-xxx-xxx-xxx:~$ cd test/
ubuntu@ip-xxx-xxx-xxx-xxx:~/test$ ls
deviceQuery.cpp inc
ubuntu@ip-xxx-xxx-xxx-xxx:~/test$ nvcc -I./inc deviceQuery.cpp -o deviceQuery
ubuntu@ip-xxx-xxx-xxx-xxx:~/test$ ./deviceQuery
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: "Tesla K80"
CUDA Driver Version / Runtime Version 11.0 / 11.0
CUDA Capability Major/Minor version number: 3.7
(中略)
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 11.0, CUDA Runtime Version = 11.0, NumDevs = 1
Result = PASS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment