I am trying to build someone else’s PyTorch cpp/CUDA extension library on Windows. Their code uses “and”, “or” keywords in place of the usual “&&”, “||”. When I try to build that library on Windows, nvcc gives errors wherever those keywords are used.
Is there a command line option I can pass to nvcc to accept those keywords? I did go through the list of options available and did not see anything that is explicitly documented as handling those.
P.S. Though I myself always stick to the ‘&&’, ‘||’ syntax, I learned that the C/C++ standard does allow the use of “and”, “or” keywords. For “cl” compiler, passing the “/permissive-” flag makes it accept those keywords. I am wondering whether there is something equivalent for nvcc.