Questions tagged [opencl.net]
25 questions
0
votes
0 answers
Correct way to dispose IMem objects created using OpenCL.net
I am having memory corruption problems when I explicitly dispose IMem objects created by OpenCL.Net (v2.2.9).
If I don't call IMem.Dispose() the video card memory is not released.
Unfortunately I found too few examples on the subject. Here a single…

stenio
- 297
- 1
- 10
0
votes
1 answer
There are two circular statement, how can l write it in opencl kernel?
There are two circular statement, for example:
for(int i=0;i<1000;i++)
for (int j=0;j<1000;j++)
{
for(int k=i*5;k

bangy ge
- 1
0
votes
1 answer
clCreateContextFromType ends up in a SEGFAULT while execution
I am trying to create an OpenCL context on the platform which is containing my graphics card. But when I call clCreateContextFromType() a SEGFAULT is thrown.
int main(int argc, char** argv)
{
/*
...
*/
cl_platform_id*…

Tobias Off
- 73
- 1
- 8
0
votes
1 answer
clGetDeviceInfo and clGetPlatformInfo fails in OpenCL with error code -30 (CL_INVALID_VALUE)
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…

Tobias Off
- 73
- 1
- 8
0
votes
0 answers
Why can't I make a context on a cpu device?
I have some kernels working on a gpu, however I cannot assume the code will be used only on computers with a compatible gpu. I have tried to run the same kernels using a cpu device but when I try to make the context I constantly get an…

Lango
- 33
- 1
- 6
0
votes
1 answer
Incorrectly including cloo in C#?
I'm trying to get this demo to build but I get this error
I've tried this with mono and visual studio 2010, same problem
The error occurs on line
program.Build(null, null, null, IntPtr.Zero);
EDIT
C#
using System;
using Cloo;
using…

sav
- 2,064
- 5
- 25
- 45
0
votes
2 answers
Passing structure to openCL Kernel
I want to pass a structure to opencl kernel, the structure is
struct test
{
int *x;
float *y;
char *z;
};
and the memory allocation and initialization is like
struct test t;
t.x = (int*)malloc(sizeof(int)*100);
t.y = (float*)…

Meluha
- 1,460
- 3
- 14
- 19
0
votes
1 answer
OpenCL imaging - only one pixel is updated
I'm using Opencl.net and I'm trying to do some image processing on the GPU. Unfortunately only the first pixel ([0;0]) has the correct value, and the rest is (0;0;0;0). The OpenCL kernel should assign 0.5 to all color components of every pixel. It…

Ilya Suzdalnitski
- 52,598
- 51
- 134
- 168
-1
votes
1 answer
AMD OpenCL C Compiler notes dead and deleted loops which shouldn't be dead and deleted
I have the following loop executed in my OpenCl kernel:
__kernel void kernelA(/* many parameters */)
{
/* Prefetching code and other stuff
* ...
* ...
*/
float2 valueA = 0.0f;
#pragma unroll …

Tobias Off
- 73
- 1
- 8
-1
votes
1 answer
An unhandled exception of type 'System.AccessViolationException' occurred in OpenCLNet.dll
An unhandled exception of type 'System.AccessViolationException' occurred in OpenCLNet.dll
@
Platform test = new Platform(platformid);
and "platformID" has a value of 1 in runtime.
public class Program
{
static void Main(string[] args)
{
…

user3795555
- 9
- 5