Do not set ccbin in torch 1.7.x
Summary: PyTorch versions 1.7.0 and 1.7.1 are between https://github.com/pytorch/pytorch/pull/43931 and https://github.com/pytorch/pytorch/pull/47404. In this gap, PyTorch always copies CC to nvcc_args, like PyTorch3D does. Newer nvcc versions are not happy with `-ccbin` being specified twice, even if it is specified twice the same. We update PyTorch3D so that it doesn't supply `-ccbin` in these cases. Also tweak the detection of the current ccbin so that it is aware that `-ccbin foo` and `-ccbin=foo` are equivalent. Reviewed By: theschnitz Differential Revision: D25825468 fbshipit-source-id: b04e7718cf01820649518eedda99c399c732e8af
Showing
Please register or sign in to comment