Search:

Type: Posts; User: sajis997

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    214

    Hi I am doing it as follows: typedef...

    Hi

    I am doing it as follows:




    typedef struct SimParams
    {
    //compute::float4_ gravity;
  2. Replies
    3
    Views
    214

    user type struct

    I have defined a new type as struct in a separate file and the file is included for further reference. Then i am sending the use-defined type as kernel arguments , but i am getting the error:


    ...
  3. Replies
    0
    Views
    125

    Proper row pitch and slice pitch value

    Hi forum,

    How to decide the row pitch and slice pitch value while creating a 3D opengl image buffer. Initially i am allocating a 3D buffer on the host as follows:



    //calculate the number...
  4. Replies
    5
    Views
    213

    send custom type to the kernel

    Hi forum,

    i need to send simulation parameters encapsulated inside a struct and i need to send the struct to the kernel.

    What should be the kernel arguments type? Should it be as follows:

    ...
  5. how to mention wrap address mode in the opencl 1.1

    I found the following addressing mode in 1.1

    1. CL_ADDRESS_MIRRORED_REPEAT
    2. CL_ADDRESS_REPEAT
    3. CL_ADDRESS_CLAMP_TO_EDGE
    4. CL_ADDRESS_CLAMP
    5. CL_ADDRESS_NONE

    Does any of the above...
  6. Replies
    1
    Views
    322

    encapsulate context creation

    Hello,

    I need to use the opencl context and its associated command queues across several classes and therefore i am planning to encapsulate the opencl context creation into a single class and...
  7. Replies
    6
    Views
    483

    I have no access to any other platform other than...

    I have no access to any other platform other than nvidia gtx 560m . Now if clFinish() returns CL_SUCCESS are we validated that the enqueued kernels completed execution successfully ?
  8. Replies
    3
    Views
    407

    Thanks for the hint . I am getting...

    Thanks for the hint . I am getting CL_INVALID_COMMAND_QUEUE with the following kernel where i am casting a float2 pointer to the float* pointer.



    __kernel void velocity(read_only image2d_t...
  9. Replies
    3
    Views
    407

    cast between the scalar and vector types

    Hello forum,

    I created a buffer of cl_host2 and sent to the kernel as float2. Is it possible to cast it to float inside the kernel as follows:



    float *converted = (float*)(original_float2);
  10. Replies
    6
    Views
    483

    Are you sure ? My card so far supports the 1.1...

    Are you sure ? My card so far supports the 1.1 spec and i checked all the instances of the CL_INVALID_COMMAND_QUEUE. Each of the instances mentions that

    "if command_queue is not a valid...
  11. Replies
    6
    Views
    483

    invalid command queue

    Hi forum,

    I am declared a global variable to hold the command queue and initialized it with the following command:



    commandQueue = clCreateCommandQueue(context,device,0,&errNum);

    ...
  12. Replies
    3
    Views
    404

    Thanks for the hint. I am replacing every...

    Thanks for the hint.

    I am replacing every instant of the size_t with ulong and using ulong type in the kernel argument as well. But i am getting a new error as follows:



    Error in setting...
  13. Replies
    1
    Views
    313

    calculate optimal pitch value

    Hi forum,

    I am calculating the pitch value for the device i am working on in the following manner:



    //pull out the device info for the optimal texture pitch
    cl_uint...
  14. Replies
    3
    Views
    404

    kernel arguments restrction

    Hi forum,

    In the manual it is mentioned that

    "Arguments to __kernel functions in a program cannot be declared with the built-in scalar types bool, half, size_t, ptrdiff_t, intptr_t, and...
  15. Replies
    4
    Views
    414

    Hi forum, How to do the array indexing if we...

    Hi forum,

    How to do the array indexing if we create buffer of vector type as follows:




    #define DIM 256

    cl_int errNum
  16. Replies
    3
    Views
    394

    Hi Ok let me refresh again. I want to...

    Hi

    Ok let me refresh again. I want to execute kernel in one work-group and it is 2 dimensional. As a result, i did not understand your last post. You suggested something 1D instead, isnt it?

    ...
  17. Replies
    3
    Views
    394

    run kernel in one NDRange space

    Hi forum,

    I have the local work size defined and i want to run the kernel in one NDRange index space only .

    I am confused within the execution command :



    size_t localWorkSize[2] = {64,...
  18. Replies
    8
    Views
    610

    Hi I am have a sample small application from...

    Hi

    I am have a sample small application from the OpenCL programming guide and they have defined the texture completeness as follows:



    void initTexture( int width, int height )
    {
    //...
  19. Replies
    8
    Views
    610

    Thanks for the initiative. Here goes the code...

    Thanks for the initiative. Here goes the code snippet where i am initializing the texture :



    //declare a 2D OpenCL Texture
    osg::ref_ptr<osgOpenCL::Texture2D> trgTexture = new...
  20. Replies
    8
    Views
    610

    Sorry for for the typo. I am actually trying to...

    Sorry for for the typo. I am actually trying to create OpenCL Image from the OpenGL texture object. I have checked the texture creation and it shows that is has been created successfully .

    Any...
  21. Replies
    8
    Views
    610

    Hello forum, No response so far. I believe i...

    Hello forum,

    No response so far. I believe i was not clear enough to you guys . Let me try again.

    I am having the above error "CL_OUT_OF_RESOURCES" while creating the OpenCL buffer from the...
  22. Replies
    8
    Views
    610

    Hi Forum, Let me elaborate more. I checked the...

    Hi Forum,

    Let me elaborate more. I checked the 1.1 specification because my card so far support 1.1.

    Everywhere in the spec it mentions that we usually get CL_OUT_OF_RESOURCES error for the...
  23. Replies
    8
    Views
    610

    cl_out_of_resources

    Hello forum,

    I am getting the above while creating texture object from the opengl buffer object. I checked the opencl context creation with opengl-opencl interoperability and the context creation...
  24. Replies
    0
    Views
    453

    Shader to OpenCL Kernel

    Hi Forum,

    I am going through an application that is programmed using the glsl shader. I am looking forward to port it to opencl kernel.

    Any hints or references will be helpful.


    Thanks...
  25. Replies
    1
    Views
    740

    context validation

    Hi Forum,

    I am creating a context with the opengl interoperability. I am checking if the created context is ok or not as follows:




    cl_int status;
    context = clCreateContext(.....,&status);
Results 1 to 25 of 69
Page 1 of 3 1 2 3