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

System.InvalidOperationException: ErrorCode:'-1001' #30

Closed
ArsenShnurkov opened this issue Feb 2, 2014 · 4 comments
Closed

System.InvalidOperationException: ErrorCode:'-1001' #30

ArsenShnurkov opened this issue Feb 2, 2014 · 4 comments

Comments

@ArsenShnurkov
Copy link

Debian Jessie/sid

$ sudo lspci | grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] R700 [Radeon HD 4850 X2]

~/github.com/lachesis/scallion$ mono ./scallion/bin/Debug/scallion.exe -l

Unhandled Exception:
System.InvalidOperationException: ErrorCode:'-1001'
at scallion.CLDeviceInfo.CheckError (Int32 err) [0x00000] in :0
at scallion.CLDeviceInfo.GetPlatformIds () [0x00000] in :0
at scallion.CLDeviceInfo.GetDeviceIds () [0x00000] in :0
at scallion.CLRuntime.GetDevices () [0x00000] in :0
at scallion.Program.ListDevices () [0x00000] in :0
at scallion.Program.Main (System.String[] args) [0x00000] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: ErrorCode:'-1001'
at scallion.CLDeviceInfo.CheckError (Int32 err) [0x00000] in :0
at scallion.CLDeviceInfo.GetPlatformIds () [0x00000] in :0
at scallion.CLDeviceInfo.GetDeviceIds () [0x00000] in :0
at scallion.CLRuntime.GetDevices () [0x00000] in :0
at scallion.Program.ListDevices () [0x00000] in :0
at scallion.Program.Main (System.String[] args) [0x00000] in :0

@ArsenShnurkov
Copy link
Author

"The error code values are defined in opencl.h
It look like your platform is not configured properly.
CL_PLATFORM_NOT_FOUND_KHR (-1001) error from clGetPlatformIDs.
That's because you do have the dispatcher, but no actual OpenCL drivers."

Mesa 10.0.1, r600g,
there is no file libMesaOpenCL.so

@lachesis
Copy link
Owner

I don't think I can help with this, unfortunately. You need to get OpenCL installed correctly for this program to work. I'm not sure if the 4850 supports OpenCL.

@j0rd
Copy link

j0rd commented Jul 11, 2014

I installed a bunch of opencl packages. The last one which finally removed this error for me was

apt-get install beignet beignet-dev ocl-icd-opencl-dev ocl-icd-libopencl1

Ubuntu 14.10

I have IvyBridge with NVidia chip which can run via bumblebee. Can't get it to work with the nvidia drivers for opencl though.

Still not working though...but removed the -1001 error. I get tihs error now

j0rd@bubbles:~/src/scallion$ mono scallion/bin/Debug/scallion.exe -d 0 prefix
Cooking up some delicions scallions...
Putting 1 patterns into 1 buckets.
Using kernel optimized from file kernel.cl (Optimized4)
Unhandled Exception:
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
  at scallion.CLRuntime.Run (scallion.ProgramParameters parms) [0x00000] in :0 
  at scallion.Program.Main (System.String[] args) [0x00000] in :0 
Stopping the GPU and shutting down...
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
  at scallion.CLRuntime.Run (scallion.ProgramParameters parms) [0x00000] in :0 
  at scallion.Program.Main (System.String[] args) [0x00000] in :0 

@pkirkovsky pkirkovsky mentioned this issue Mar 23, 2016
lachesis added a commit that referenced this issue Jan 29, 2017
@itJunky
Copy link

itJunky commented Jun 11, 2019

I have same error when trying to start docker after build it:

sudo docker run -ti --rm scallion -l
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319

Unhandled Exception:
System.InvalidOperationException:  ErrorCode:'-1001'
  at scallion.CLDeviceInfo.CheckError (System.Int32 err) [0x0001a] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.CLDeviceInfo.GetPlatformIds () [0x0000f] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.CLDeviceInfo.GetDeviceIds () [0x00001] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.CLRuntime.GetDevices () [0x00001] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.Program.ListDevices () [0x00004] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.Program.Main (System.String[] args) [0x00263] in <41174b78c7164d7e892743e843ae2123>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException:  ErrorCode:'-1001'
  at scallion.CLDeviceInfo.CheckError (System.Int32 err) [0x0001a] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.CLDeviceInfo.GetPlatformIds () [0x0000f] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.CLDeviceInfo.GetDeviceIds () [0x00001] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.CLRuntime.GetDevices () [0x00001] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.Program.ListDevices () [0x00004] in <41174b78c7164d7e892743e843ae2123>:0 
  at scallion.Program.Main (System.String[] args) [0x00263] in <41174b78c7164d7e892743e843ae2123>:0 

How can i fix it?

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

4 participants