ArchWSL icon indicating copy to clipboard operation
ArchWSL copied to clipboard

Run GPU processes in ArchWSL

Open rz1027 opened this issue 9 months ago • 1 comments

I would like ArchWSL to be able to use GPU. I tested Ubuntu-WSL GPU driver and it works seemingly I came into this while using hashcat: hashcat -I

hashcat (v6.2.6) starting in backend information mode


clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR

ATTENTION! No OpenCL, HIP or CUDA compatible platform found.

You are probably missing the OpenCL, CUDA or HIP runtime installation.

* AMD GPUs on Linux require this driver:
  "AMDGPU" (21.50 or later) and "ROCm" (5.0 or later)
* Intel CPUs require this runtime:
  "OpenCL Runtime for Intel Core and Intel Xeon Processors" (16.1.1 or later)
* NVIDIA GPUs require this runtime and/or driver (both):
  "NVIDIA Driver" (440.64 or later)
  "CUDA Toolkit" (9.0 or later)
  

Despite nvidia-smi finding my 4070 gpu.

Is there a way to apply computation via my host GPU? Seems Nvidia supports easy installation for Ubuntu, and hints on installing nvidia-toolkit-12-x alone to handle this on other distros. https://docs.nvidia.com/cuda/wsl-user-guide/index.html#getting-started-with-cuda-on-wsl

rz1027 avatar May 01 '24 14:05 rz1027

try installing cuda, cuda-tools and cudnn?

xuangeyouneihan avatar May 05 '24 11:05 xuangeyouneihan