MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / print_gpu_info

Function print_gpu_info

python/Utilities/cuda_samples_utils.py:133–144  ·  view source on GitHub ↗

Print GPU device information. Parameters ---------- device : cuda.core.Device CUDA device object

(device)

Source from the content-addressed store, hash-verified

131
132
133def print_gpu_info(device) -> None:
134 """
135 Print GPU device information.
136
137 Parameters
138 ----------
139 device : cuda.core.Device
140 CUDA device object
141 """
142 print(f"Device: {device.name}")
143 cc = device.compute_capability
144 print(f"Compute Capability: {cc.major}.{cc.minor}")

Callers 11

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
run_pagerank_benchmarkFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected