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

Function fmt_yes_no

python/1_GettingStarted/deviceQuery/deviceQuery.py:75–77  ·  view source on GitHub ↗

Format boolean value to Yes/No string.

(val)

Source from the content-addressed store, hash-verified

73
74
75def fmt_yes_no(val):
76 """Format boolean value to Yes/No string."""
77 return "Yes" if val else "No"
78
79
80def convert_sm_ver_to_cores(major, minor):

Callers 2

print_device_infoFunction · 0.85
print_p2p_access_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected