-
Notifications
You must be signed in to change notification settings - Fork 2.5k
build error:apex #711
Comments
i got the same trouble, too...... |
what is your gcc version? |
mine is gcc-5.2 |
According to this issue, seems that apex can only be installed with CUDA10. My gcc version is 7.3, python is 3.6, and my pytorch version is 1.0.0. It works. |
same error with cuda 10 on ubuntu 16 |
workaround is to downgrade to pytorch nightly from a few days ago: |
cc @mcarilli are you aware of any recent breakages of apex with latest PyTorch nightly? |
There's already an issue at Apex (#267) with a PR (#272) that fixes it that apparently will be merged soon. So if you need an immediate fix use the scalar_type branch of ptrblk's fork. |
Thanks @mdsmith-cim for the concise, correct summary. Our fix will be merged tomorrow at the latest (I have some other commitments so I may not have time to review it in detail today). |
@mdsmith-cim hi, sorry to bother you. I still have the same error after git your apex, Why is this, I look forward to your reply. |
@zskadazhang Did you checkout the scalar_type branch? |
@DavidSPumpkins Oh! It works,Thank you very much! |
@zskadazhang Good to hear it's working! However, we should merge it to apex/master today so you can pull from the master branch again. |
The PR was merged so the build should work again using |
With torch 1.1.0.dev20190425, and the latest apex fix, I still get an error when I try to compile with
|
Sorry, I don not know why。My enviroment is CUDA10.1,GCC7.3。And I get APEX from @mdsmith-cim 。Maybe You can ask him。 |
@chengruizhe I've never seen this error before. Does it point to a particular line in the file? |
@chengruizhe @mcarilli |
AttributeError: 'AmpState' object has no attribute 'opt_properties' is there anyone got this problem? i build apex and maskrcnn-benchmark successful without any error. |
@Tegala Are you building apex from source or are you using an older version of apex? |
And I am sure I using the latest version of apex. this is strange... |
The error info outputs:
|
Thanks for the information! |
@Tegala Amp requires that
be called before any invocation of
. If your code is somehow invoking |
Thanks so much! |
SeanNaren/deepspeech.pytorch#376 git clone --recursive https://github.com/NVIDIA/apex.git This worked for me. |
@aashokvardhan
and only fall back to |
Encountered this when using Ubuntu 18.04 | CUDA 9.0 and the default GCC/G++ in Ubuntu, version 7. The CUDA compiler is incompatible with GCC >= 6.4. Solved it by installing GCC-5 and G++-5 (
After this, Apex installed fine using the default instructions. |
My solution is: on my Ubuntu 18.04, cuda 9.0, pytorch 1.1.0, python 3.6. |
I am trying to install apex on windows 10. I clone the apex from its repo and when I run the above command, I get this error: |
@Mahhos Could you check your current working directory for the |
❓ Questions and Help
when i install the apex using the command "python setup.py install --cuda_ext --cpp_ext"
I get the error :
Can anyone help me? Thank you very much!
The text was updated successfully, but these errors were encountered: