opencl.net

clGetDeviceInfo and clGetPlatformInfo fails in OpenCL with error code -30 (CL_INVALID_VALUE)

给你一囗甜甜゛ 提交于 2019-12-12 04:54:52
问题 I am starting to write a little "engine" for using OpenCL. Now, I encountered a problem that is quite strange. When I call clGetDeviceInfo() to query informations of the specific device, some of the options for the parameter param_name return the error code -30 ( = CL_INVALID_VALUE). A very famous one is the option CL_DEVICE_EXTENSIONS which should return me a string of extensions no matter what sdk or platform I am using. I checked every edge and also the parameters are double checked.

Image processing with OpenCL.NET

∥☆過路亽.° 提交于 2019-12-04 14:12:59
问题 I'm trying to do image processing on the GPU with .NET. I've downloaded OpenCL.NET wrapper. It has some good samples, but I cannot find a way to load an image to the GPU and read the processed image back. What do I have to do? 回答1: After setting up the context, do the following: public void ImagingTest (string inputImagePath, string outputImagePath) { Cl.ErrorCode error; //Load and compile kernel source code. string programPath = Environment.CurrentDirectory + "/../../ImagingTest.cl"; //The

Image processing with OpenCL.NET

北战南征 提交于 2019-12-03 09:41:27
I'm trying to do image processing on the GPU with .NET. I've downloaded OpenCL.NET wrapper . It has some good samples, but I cannot find a way to load an image to the GPU and read the processed image back. What do I have to do? After setting up the context, do the following: public void ImagingTest (string inputImagePath, string outputImagePath) { Cl.ErrorCode error; //Load and compile kernel source code. string programPath = Environment.CurrentDirectory + "/../../ImagingTest.cl"; //The path to the source file may vary if (!System.IO.File.Exists (programPath)) { Console.WriteLine ("Program