MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / append_nvcc_threads

Function append_nvcc_threads

inference/kernels/csrc/attention/setup.py:55–59  ·  view source on GitHub ↗
(nvcc_extra_args)

Source from the content-addressed store, hash-verified

53
54
55def append_nvcc_threads(nvcc_extra_args):
56 _, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)
57 if bare_metal_version >= Version("11.2"):
58 return nvcc_extra_args + ["--threads", "4"]
59 return nvcc_extra_args
60
61
62if not torch.cuda.is_available():

Callers 1

setup.pyFile · 0.85

Calls 1

Tested by

no test coverage detected