-
Notifications
You must be signed in to change notification settings - Fork 222
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
JIT cpp extension fails to find cl.exe on windows? #62
Comments
You need a visual studio command prompt, for example for Visual Studio 2019, you would run (Windows-key and R )
or start typing 'x64 Native Tools Command Prompt for VS 2019' in the search bar. You also need ninja binary in the path, download it from here: https://github.com/ninja-build/ninja/releases unzip and copy it in your path (type 'path' to find some directory) Then run
In case of an error related to lltm.o not found, you can rename the lltm.obj to lltm.o, in my case in the build\temp.win-amd64-3.7\Release folder.
Just copy the dlls from Python37\Lib\site-packages\torch\lib or start python from that directory
The developers of extension-cpp probably care mostly about Linux, not Windows. |
For me, my solution is to buy a ubuntu PC and install NVIDIA packages. And I can run the code! |
For those stumbling upon this thread, below works for me:
|
I have the cl PATH on the User variables and the System variables but still What else can I do? |
Cupy has a mechanism to find |
I am trying to use the JIT cpp extension, and have a script from my friend, who is able to run it in linux, but whenever I run it on windows, it fails. The error is quite clear, it seems like it can’t find the cl.exe compiler.
The script fails on the load statement below:
With the following message:
I’m running python 3.8 and a pip list gives the following:
How can I fix this issue?
The text was updated successfully, but these errors were encountered: