go-opencl
go-opencl copied to clipboard
Null platformIds; Not getting any opencl platforms on Ubuntu
System
OS: Windows 10 w/ WSL2; Ubuntu 18.04.5 LTS GPU: Intel UHD 620 (iGPU) OpenCL Installable Client Driver used: https://github.com/OCL-dev/ocl-icd
Reproduced error
Tried running cl.GetPlatforms()
, with no prior preparation/setup. I keep getting:
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x602ac6]
Not sure what I'm doing wrong here...
I guess to go in a bit more depth, when this function is called...
-
platformIds is a slice of
nil
- nPlatforms is 0
- The
err
returned byC.clGetPlatformIDs
is -1001