Skip to content
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

Devices not detected on WSL2 #17

Closed
cylzxje opened this issue Dec 31, 2022 · 8 comments
Closed

Devices not detected on WSL2 #17

cylzxje opened this issue Dec 31, 2022 · 8 comments

Comments

@cylzxje
Copy link

cylzxje commented Dec 31, 2022

I'm currently on Windows Subsystem for Linux (WSL). When i run the command:
./profanity2.x64 --leading 0000000 -w 256 -z "7d798acc490f26daa63e5239b91c609c290b42cfca72430c098f1521ecd93b2ad79a56030c01122fe25ba84d0f5cddb977bfb9f70e7a959cf884c5e76d5d6c88"

Output:

Mode: leading
Target: Address
Devices:

It just stops midway like that. I've tried installing packages such as CUDA, SSH,... for WSL:
https://docs.nvidia.com/cuda/wsl-user-guide/index.html
https://ubuntu.com/tutorials/enabling-gpu-acceleration-on-ubuntu-on-wsl2-with-the-nvidia-cuda-platform#1-overview
It didn't help much. Any idea how to fix or is there any trick to work around this?

@LokMon
Copy link

LokMon commented Jan 1, 2023

https://support.zivid.com/en/v2.4/support/clinfo-does-not-print-anything.html

After I follow this document operation, it can run normally. I think you should give it a try.

@cylzxje
Copy link
Author

cylzxje commented Jan 2, 2023

https://support.zivid.com/en/v2.4/support/clinfo-does-not-print-anything.html

After I follow this document operation, it can run normally. I think you should give it a try.

Ty! It seems like the problem is that OpenCL hasn't supported WSL :/

microsoft/WSL#6951

@fabston
Copy link

fabston commented Jan 15, 2023

@cylzxje I was wondering if you were able to run the script now?

@cylzxje cylzxje changed the title Devices not detected Devices not detected on WSL2 Jan 19, 2023
@cylzxje
Copy link
Author

cylzxje commented Jan 19, 2023

@cylzxje I was wondering if you were able to run the script now

Sadly, not yet :/

@cylzxje cylzxje reopened this Jan 19, 2023
@fabston
Copy link

fabston commented Jan 22, 2023

@cylzxje I was wondering if you were able to run the script now

Sadly, not yet :/

I was able to set it up and let it run on an Ubuntu CLI server. I took some notes and if you follow these steps it should work:

  1. sudo apt-get install opencl-headers -y && sudo apt-get install make -y && sudo apt-get install g++ -y && sudo apt install clinfo -y
  2. sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so
  3. InsInstall OpenCL
  4. Get info about GPU with sudo lshw -C display
  5. Finally compile all the code with make all

Hope that helps. Cheers!

@cylzxje
Copy link
Author

cylzxje commented Jan 26, 2023

Tho I haven't been able to test this myself cuz my setup is a mess rn, if anyone else successfully run with these steps, plz lmk. Ty!

@Aziz87
Copy link

Aziz87 commented May 14, 2023

@cylzxje I was wondering if you were able to run the script now

Sadly, not yet :/

I was able to set it up and let it run on an Ubuntu CLI server. I took some notes and if you follow these steps it should work:

1. `sudo apt-get install opencl-headers -y && sudo apt-get install make -y && sudo apt-get install g++ -y && sudo apt install clinfo -y`

2. `sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so`

3. InsInstall [OpenCL](https://support.zivid.com/en/v2.4/getting-started/software-installation/gpu/install-opencl-drivers-ubuntu.html)

4. Get info about GPU with `sudo lshw -C display`

5. Finally compile all the code with `make all`

Hope that helps. Cheers!

and restart server!

@calmacfadden
Copy link

I also had to install the nvidia cuda toolkit

sudo apt install nvidia-cuda-toolkit

@k06a k06a closed this as completed Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants