The corresponding code: https://github.com/pytorch/pytorch/blob/master/torch/utils/cpp_extension.py#L24-L50 162. Looks like we didn’t suppress the output of where nvcc. Fix: https://github.com/pytorch/pytorch/pull/32620 184.