Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-samples
/ fmt_hz
Function
fmt_hz
python/1_GettingStarted/deviceQuery/deviceQuery.py:70–72 ·
view source on GitHub ↗
Format frequency in kHz to MHz and GHz.
(rate_in_khz)
Source
from the content-addressed store, hash-verified
68
69
70
def
fmt_hz(rate_in_khz):
71
""
"Format frequency in kHz to MHz and GHz."
""
72
return
f
"{rate_in_khz * 1e-3:.0f} MHz ({rate_in_khz * 1e-6:.2f} GHz)"
73
74
75
def
fmt_yes_no(val):
Callers
1
print_device_info
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected