-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
g++/c++ compiler incompatibility #974
Comments
I'm having the same problem. Any progress? |
I just removed every c++ and make one link to the g++. which c++
mv c++ c--
ln -s g++ c++ After that I can install the apex. |
I just set the environment variable Updates:
I personally recommend the first one, because it won't affect other commands. The second is a good choice if you need this environment variable multiple times. The third is not recommended unless you always want to use g++ by default. |
Than you! This work for me! |
how to set the environment variable? |
Hello, you can try this: export CXX=g++ |
yes that works. Thank you |
I am working with an application that uses Pytorch and Apex. The application requires that Apex be compiled with the
--cpp_ext
and--cuda_ext
flags. I set up my environment like so.I see the following warning when Apex compiles.
Looking at the build logs it does appear that sometimes
g++
is being used and other timesc++
.The application I'm building ultimately fails with a mysterious error, so I'm trying to see if this compiler incompatibility is the cause.
How do I "use g++ to compile [my] extension"? I don't see a Makefile in Apex, and it doesn't look like it's possible to specify a compiler using the options in
setup.py
.The text was updated successfully, but these errors were encountered: