I just noticed that clootils has not worked from revision 189c292377f4f29b32ef8ac150387cd1847ff78e. It throws a Cloo.InvalidValueComputeException in ComputeObject.cs at line256. It was apparently thrown by the type initializer for Cloo.ComputePlatform.
I noticed this problem in the head revision and worked backwards until I found one that worked. The revision mentioned above is the oldest one throwing this error.
I wish I could upload error screen shots here. The stack trace is about 30 lines.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The only thing I can think of is the absence of support for the cl_khr_fp16 or cl_khr_fp64 extensions. If yes this is a bug.
I cannot reproduce it but you could try something yourself. Comment out these two lines in ComputeDevice constructor and see if it works:
I should also note that I am also getting an error when closing the Clootils program. I am getting an IOException on line 92 of ComputeEvent.cs (the writeLine statement). The code is marked to only run in debug mode, so this might not be a problem. Oddly enough, I only get his error if the OpenCL tests have been run. Just opening and closing the window works fine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Glad I could help. I am using Cloo as part of an independent study in collage (hardware accelerated ray tracing), so it is to my benefit to help get some of the bugs out…
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just noticed that clootils has not worked from revision 189c292377f4f29b32ef8ac150387cd1847ff78e. It throws a Cloo.InvalidValueComputeException in ComputeObject.cs at line256. It was apparently thrown by the type initializer for Cloo.ComputePlatform.
I noticed this problem in the head revision and worked backwards until I found one that worked. The revision mentioned above is the oldest one throwing this error.
I wish I could upload error screen shots here. The stack trace is about 30 lines.
The only thing I can think of is the absence of support for the cl_khr_fp16 or cl_khr_fp64 extensions. If yes this is a bug.
I cannot reproduce it but you could try something yourself. Comment out these two lines in ComputeDevice constructor and see if it works:
Edit: Now that I think of it it's easier to assign a zero. Commenting them out will lead to compiler errors.
That seems to have fixed it. In my particular case, only the line
was causing a problem. The line dealing with doubles works fine.
Here is a copy of the device info:
I should also note that I am also getting an error when closing the Clootils program. I am getting an IOException on line 92 of ComputeEvent.cs (the writeLine statement). The code is marked to only run in debug mode, so this might not be a problem. Oddly enough, I only get his error if the OpenCL tests have been run. Just opening and closing the window works fine.
0.8.1 is out. This bug was quite critical so I decided to update the package. Thank you very much for your help, kwaegel!
Glad I could help. I am using Cloo as part of an independent study in collage (hardware accelerated ray tracing), so it is to my benefit to help get some of the bugs out…