Skip to content

The properties of a compute device can used for knowing how much memory and what capabilities the device has.

License

Notifications You must be signed in to change notification settings

cudaf/device-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The properties of a compute device can used for knowing how much memory and what capabilities the device has.

1. Check how many compute devices are attached.
2. List some properties of each device.
$ nvcc -std=c++17 -Xcompiler -O3 main.cu
$ ./a.out

# COMPUTE DEVICE 0:
# Name: NVIDIA Tesla V100-PCIE-16GB
# Compute capability: 7.0
# Multiprocessors: 80
# Clock rate: 1380 MHz
# Global memory: 16160 MB
# Constant memory: 64 KB
# Shared memory per block: 48 KB
# Registers per block: 65536
# Threads per block: 1024 (max)
# Threads per warp: 32
# Block dimension: 1024x1024x64 (max)
# Grid dimension: 2147483647x65535x65535 (max)
# Device copy overlap: yes
# Kernel execution timeout: no

See main.cu for code.



References

About

The properties of a compute device can used for knowing how much memory and what capabilities the device has.

Topics

Resources

License

Stars

Watchers

Forks

Languages