-
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
Build error (error: expected primary-expression before 'some' token) #802
Comments
Not sure if this would help, but I encountered the same issue and had to rollback to an earlier version of apex:
|
@da03 thanks, I can use this workaround temporarily. Hopefully, the issue will be addressed in the latest commit. |
I also met the same error! Solved by @da03's solution. |
I had the same issue, also solved by @da03's solution. Machine configuration: CentOS 7, GCC 7.3, Pytorch 1.5, CUDA 9.2. It's on a shared resource, so upgrading is not possible. |
Same error with cuda 9.0, torch 1.1.0. |
Thank you so much. Helped a lot |
Saved my day! Thanks! |
Same error solved by @da03's solution and apex was installed successfully,but a new issue arises when running with apex.
Configuration: Cuda9.0, gcc 4.8, pytorch 1.1.0, CentOS 7. |
Thanks, @da03 ! |
Thanks @da03. This worked for me as well. I tried building pytorch from source but was getting an error there as well. Nothing else worked! |
Thanks @da03 ! You saved my end-term project! My environment:
|
Thanks @da03. Your awesome finding saved me a lot of trouble.
|
I am also seeing this error, the env is:
I find that at least commit git clone https://github.com/NVIDIA/apex.git && \
cd apex && \
git checkout 5b71d3695bf39 && \
python setup.py install --cuda_ext --cpp_ext It can compile without errors. |
Thanks @da03 !
|
I'm still encountering the issue even with the suggested rollback ( Update: I was having issues with pytorch 1.5.1, but they went away when I downgraded to pytorch 1.4 (and rolling back with |
@da03 |
THX, save my day. 😄 My Env Info:
|
Thanks @da03 ! |
None of checkouts worked for me. I am with cuda10.0 and py1.4. |
Updated to gcc7 and it worked. It seems gcc 4.8.5 doesn't go with it. |
I think you are right!!! |
Ubuntu 18.04 LTS |
It works for me! It is absolutely gorgeous! Thanks for saving my time! |
git clone https://github.com/NVIDIA/apex.git && \
cd apex && \
git checkout 5b71d3695bf39 && \
python setup.py install Avoided Python 3.6 annotations error and the --cuda_ext and --cpp_ext options require Torch version > 1.0. |
I'm trying to update latest
apex
on the system with Cuda9.1, pytorch 1.1.0, ubuntu16.04.and I got the error attached at the end.
Actually, I recently got a problem that my model performance degrades significantly after I updated my docker image from cuda9.1-pytorch1.1.0-old_apex to cuda9.2-pytorch1.4.0-latest_apex.
I want to check whether the issue came from updating pytorch or updating apex.
So hopefully there is any way to install on current system (Cuda9.1, pytorch 1.1.0, ubuntu16.04.) without changing the cuda and pytorch version.
The text was updated successfully, but these errors were encountered: