-
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
installation issue #23
Comments
Looks like you're on Windows. I don't have access to a Windows machine with Pytorch right now, but I'll find one tomorrow to test the build. Typically, Linux is what we recommend, so if you have the option to run on a Linux machine, that should work right away. |
Thank you. I really appreciate that. I modified the setup file and got as far as: c:\program files\nvidia gpu computing toolkit\cuda\v9.2\include\crt/host_config.h(133): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported! I have visual studio 2017 community edition installed. I compiled pytorch from source using visual studio 2017 without a problem. |
I admit I'm not an expert on Windows builds. I'll have to ask some other people tomorrow. In the meantime, if you want an immediate path forward, some of the utilities in Apex are Python-only. For example, FP16_Optimizer and DistributedDataParallel technically don't require building the C backend. One item on my to-do list is creating a Python-only "apex-lite" install option. The necessary-and-sufficient set of Python files to use FP16_Optimizer is fp16_optimizer.py, fp16_util.py, and loss_scaler.py from the fp16_utils directory. The necessary-and-sufficient set of Python files to use apex DistributedDataParallel is distributed.py and multiproc.py from the parallel directory. If you copy those files alongside your training script, you should be able to say e.g. Thank you for your interest in Apex and your feedback. It's very helpful to know what issues people are encountering, especially at this early stage. |
Thanks. Really appreciate your suggestion. I will give it a try on a newly received titan V :-) |
@ibulu When you installed pytorch from source, did you run the following lines
before |
I had a chance to try to install apex the same way I installed pytorch, but I am still getting the following error: torch.version = 0.5.0a0+03e7953 here are the steps I followed in more detail: |
@ibulu Hopefully fixed via 247349f. Try installing with current top of tree. It worked on my machine :) Again, make sure you are running in the right Visual Studio and Anaconda environments. Only the lines
are necessary to set up the Visual Studio environment, but if you installed Pytorch in an Anaconda enviroment, you need to install Apex in that same environment. Moving forward, we intend to regard Windows support as experimental, so I still recommend using Linux if you can. |
wonderful :-) I confirm that I was able to install and import the library. I also ran one of the examples. Thank you very much! |
Fix launch bounds for cleanup(...) call
I am really excited about trying this. But, every time I try installing, I am getting the following error:
torch.version = 0.5.0a0+03e7953
Found CUDA_HOME = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2
Traceback (most recent call last):
File "setup.py", line 105, in
CUDA_MAJOR = get_cuda_version()
File "setup.py", line 85, in get_cuda_version
re.compile('nvcc$').search)
File "setup.py", line 38, in find
return list(set(collection))
TypeError: 'NoneType' object is not iterable
The text was updated successfully, but these errors were encountered: