-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Parlai 1.7.0 on WSL 2 Python 3.8.10 CUDA_HOME environment variable not set. #4778
Comments
CC @dexterju27, this seems related to the ngram blocking code -- any thoughts on why this is occurring? |
ParlAI 1.7.0 is using pytorch cpp extension feature to allow custom cuda kernels, could you look at this: pytorch/extension-cpp#26 and see if it fixes your problem? |
|
@dexterju27 @klshuster
|
@dexterju27 just following up on this thanks! |
I don't have access to a WSL2 ubuntu. eg I can't reproduce the issue that you are having. I'm deeply confused by what you are saying here. If you are using a WSL2 ubuntu, why would your "bin/nvcc is a windows binary exe"? isn't that supposed to be an Linux executable? could you try install CUDA properly in Ubuntu? Like: https://askubuntu.com/questions/1280205/problem-while-installing-cuda-toolkit-in-ubuntu-18-04/1315116#1315116?newreg=ec85792ef03b446297a665e21fff5735 |
That is what is confusing me as well, it seems like WSL refers to the windows dlls and binaries. Ill give what you said a shot. |
Notice in the error messages you posted, it also complained: I'm closing this issue for now since I don't think the issue is ParlAI related. |
@dexterju27 So that is a red herring, I have no problem using Cuda at all, Cuda is true and I can use it in the notebook and trained a voice to voice model using it. I can assure you this is definitely related to WSL2 but it's fine if you want to close this issue. Ill give what you said a shot and if it doesn't work ill just not use the framework |
@klshuster it worked thanks! =D |
Bug description
CUDA_HOME environment variable not set error when running on WSL 2
when running parlai in the shell.
Reproduction steps
Install Parlai and friends via jupyter notebook on vscode.
Notice that Cuda is still true here when evaluated. It seems like Parlai is looking for it in the wrong place.
Expected behavior
Give a clear and concise description of what you expected to happen.
If you install parlai 1.6.0 it doesn't give me the error.
In 1.6.0 it works just fine. Cuda is also True if you evaluate the device.
Logs
Please paste the command line output:
Additional context
Blocks usage on WSL 2 probably
@klshuster
The text was updated successfully, but these errors were encountered: