• Jeremy Reizenstein's avatar
    Do not set ccbin in torch 1.7.x · b24d89a2
    Jeremy Reizenstein authored
    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
    b24d89a2
setup.py 5.11 KB