trunk/74b55cafb21cf7d14bf8adc466e256ef2b994533: Make the int4mm sm_80 requirement an actual runtime check (#195697)
- PyTorch 近 90 天出现 2456 次
- PyTorch 近 90 天第 2423 次发版
- 上一次:同一天稍早 · trunk/64373c6e0d225f9809e0f9cb98741a77cf67603d
发生了什么
_weight_int4pack_mm_cuda / _convert_weight_to_int4pack_cuda gate on !defined(__CUDA_ARCH__) || (__CUDA_ARCH__ >= 800) , with a TORCH_CHECK(false, ...) in the other arm. Both are host functions, and __CUDA_ARCH__ is only defined during nvcc's device compilation pass -- so !defined(__CUDA_ARCH__) is always true when this is preprocessed for the host, and the check is unreachable in every build. The "requires sm_80" co…
摘要按规则整理自下方来源原文