Search:

Type: Posts; User: biokhar

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,227

    Mild data corruption

    Hi,

    I've written code that passes an array to the GPU. Then one kernel does an operation on the data creating another array. Then a second kernel takes the data from the new array and does an...
  2. Replies
    4
    Views
    1,443

    Re: How do I rerun a kernel with a new data set?

    Thank you so much for the help. I tried to make this work, but I'm not setting it up right.

    Here is how I setup the relevant parts of my kernel:

    cl_mem memObjects[9] = { 0, 0, 0, 0, 0, 0, 0, 0,...
  3. Replies
    4
    Views
    1,443

    How do I rerun a kernel with a new data set?

    I have a kernel that I successfully setup and ran, but I want to take the results of that kernel run, then rerun the kernel with a new data set 40,000 times.

    Is it possible to replace the GPU...
  4. Re: My kernel returns # of bytes instead of value of variabl

    int index = 0;
    memObjects[9] = clCreateBuffer(context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, sizeof(int), &index, NULL);

    __kernel void hello_kernel(__global const float *phiC,
    ...
  5. Re: My kernel returns # of bytes instead of value of variabl

    So I switched the double to float and solved that problem, but I'm having trouble passing anything of int type. Any suggestions?
  6. My kernel returns # of bytes instead of value of variable

    Hi,

    I've setups my kernel to return a simple value to test wether the kernel is working, but I think its returning bits instead of the value.

    In main, I prepped the variable passing like this:...
  7. When is sizeof(cl_mem) in clSetKernelArg not cl_mem?

    Hi,

    I see that many people use sizeof(cl_mem) in clSetKernelArg for multiple clSetKernelArg calls.

    Does this just mean that the arguments are all memory buffers as opposed to image? So if all...
  8. How do I pass 7 arrays to device for kernal processing?

    Warning: I'm an opencl newbie and an intermediate C++ programmer. Feel free to assume that I need to be spoken to like a child.

    I'm writing an opencl program to look at a set of atoms (with x,y,z...
  9. Replies
    9
    Views
    3,639

    Re: I can't get a basic opencl program to run

    Thanks for the help.

    I added the Mac specific stuff and a file named Opencl.h, then built it again and it said

    error: Cl/cl.h: No such file or directory
    error: 'cl_context' was not declared in...
  10. Replies
    9
    Views
    3,639

    I can't get a basic opencl program to run

    Hi,

    I'm super new to opencl and an early intermediate at C++.

    I'm trying to get just a simple opencl program to work so I can build from there.

    I installed XCode 4 and cmake to my Mac (Os...
Results 1 to 10 of 10