Search:

Type: Posts; User: L!l!am

Search: Search took 0.00 seconds.

  1. More problems with atomic_cmpxchg, help!!!!

    Hi, I have this section of code implemented:
    Main.cpp
    ..
    int *mutex;
    cl_kernel kernel =clCreateKernel(programCPU, "namefunction", &ret);
    clSetKernelArg(kernel, 0, sizeof(int), & mutex);...
  2. Replies
    2
    Views
    111

    thank you!!!! that resolve the problem!!!

    thank you!!!! that resolve the problem!!!
  3. Replies
    2
    Views
    111

    problem with atomic_cmpxchg

    Hi, I need to implement a semaphore, I write this code, but gives me error, the code is this:

    #pragma OPENCL EXTENSION cl_khr_global_int32_base_atomics : enable

    #pragma OPENCL EXTENSION...
  4. hi, this is part of code. for (int...

    hi, this is part of code.
    for (int i=0;i<12;i++)
    {
    kernel[i]= clCreateKernel(programGPU, "function", &ret);
    ret=clSetKernelArg(kernel[i], 0, sizeof(cl_mem), &buffer);...
  5. read multiple exits using function clEnqueueTask

    hi!! I have a problem, I am using the function clEnqueueTask() to execute many kernels, but, I need take the result in a certain order.
    For example:
    for(int i=0;i<12;i++)...
  6. Replies
    2
    Views
    337

    working with thread in a kernel

    hello!!!
    I want to do this:
    I have a array "Signal" with length=1000, but I want to process it for parts, in other words: in my PC with 4 cores,
    I need that each core process 250 serial elemtents ...
  7. Replies
    1
    Views
    336

    State of a kernel when it's running?

    Exist any way to know the state of a kernel when it's running??
  8. Replies
    6
    Views
    652

    I resolved the problem. thanks

    I resolved the problem. thanks
  9. Replies
    6
    Views
    652

    Hi again!! I use this line to align:...

    Hi again!! I use this line to align:
    clGetDeviceInfo(info[deviceCPU].device_id, CL_DEVICE_MEM_BASE_ADDR_ALIGN,0,NULL,NULL);
    and this is the code :

    int sizebuffer=(length/512);...
  10. Replies
    6
    Views
    652

    with this code i have the same problem: ...

    with this code i have the same problem:

    cl_mem* subbufferCPU=(cl_mem *)malloc(sizeof(cl_mem)*sizebuffer);
    cl_buffer_region region;
    region={0,10000*sizeof(float)};
    size_t size=0;
    for (int t=0;...
  11. Replies
    6
    Views
    652

    error -13 when I using clCreateSubBuffer

    hi!! I have this code:

    cl_mem* subbufferCPU=(cl_mem *)malloc(sizeof(cl_mem)*sizebuffer);
    cl_mem* subbufferhnsi=(cl_mem *)malloc(sizeof(cl_mem)*sizebuffer);
    cl_mem*...
  12. thank you for the help!!!! I will prove and then...

    thank you for the help!!!! I will prove and then tell you!!
  13. Look, I have this: cl_mem buffer_entrada =...

    Look, I have this:
    cl_mem buffer_entrada = clCreateBuffer(contextCPU, CL_MEM_READ_WRITE | CL_MEM_USE_HOST_PTR,20000* sizeof(float), entrada, NULL );
    then I create the subbuffer:
    ...
  14. Can somebody tell me an example of How OpenCL works with subbuffer?

    I have this buffer
    cl_mem buffer_salida_sumsi = clCreateBuffer(contextCPU, CL_MEM_READ_WRITE | CL_MEM_USE_HOST_PTR,length * sizeof(float), salida_sumsi, NULL );
    this is the argument of kernel...
  15. how to obtain part of buffer when a kernel is working with the buffer

    for example, i have this code:
    clEnqueueTask(queue,kernel_1,0,NULL,NULL);
    clEnqueueTask(queue,kernel_2,0,NULL,NULL);

    clEnqueueReadBuffer(queue, buffer_1, CL_TRUE, NULL, length * sizeof(float),...
  16. how to obtain part of buffer when a kernel is working with the buffer

    for example, i have this code:
  17. Replies
    3
    Views
    823

    ok, thanks

    ok, thanks
  18. Replies
    3
    Views
    823

    how to call two functions within a kernel

    Hi!!
    I would like to know how to call a normal C function within another function in a kernel.
    this is de code!!

    float sinc(float x)
    {
    if(x==0.0f)
    {
    return 1.0f;
    }
Results 1 to 18 of 18