go-opencl icon indicating copy to clipboard operation
go-opencl copied to clipboard

Null platformIds; Not getting any opencl platforms on Ubuntu

Open acemasterjb opened this issue 3 years ago • 1 comments

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...

acemasterjb avatar Apr 27 '21 22:04 acemasterjb

I guess to go in a bit more depth, when this function is called...

acemasterjb avatar Apr 27 '21 23:04 acemasterjb