Search:

Type: Posts; User: Peccable

Search: Search took 0.00 seconds.

  1. Looks like you may have swapped row and col...

    Looks like you may have swapped row and col indices here:

    sum+=A[j*numAColumns+k]*B[k*numBColumns+i];
    C[j*numCColumns+i]=sum;


    Assuming r is the row index and c is the column index it should...
  2. Replies
    1
    Views
    167

    "professional" gpu's and pricing

    I've been looking at high end OpenCL 1.2 compatible GPU's and it seems the difference in prices between professional targeted and private targeted GPU's are quite high compared to potential benefit....
  3. Replies
    1
    Views
    813

    Re: Caching of source files

    If anyone got the same problem I sort of solved it by deleting everything in NVIDIA\ComputeCache every time I change source files that #included.
  4. Replies
    1
    Views
    813

    Caching of source files

    When writing code with multiple source files, for example

    "fox.cl"


    struct Tango {
    float4 donut;
    float4 snow;
    };
  5. Re: Emulating vector insert/delete in kernel -is this safe?

    Ok, thanks for the reply. And I suppose that the non parallelizable part might aswell be done on the CPU between the two kernel executions.
  6. Replies
    1
    Views
    843

    Re: clEnqueueCopyBufferToImage

    How do you get the context when using glut? In the reference for clCreateFromGLTexture3D it says under context:

    A valid OpenCL context created from an OpenGL 3D context.

    As far is I've gathered...
  7. Emulating vector insert/delete in kernel -is this safe?

    Say I have an array with elements of some type which I pass to the kernel as a constant source buffer. And I also have a destination buffer.

    Based on some condition on the value of the elements...
  8. Replies
    3
    Views
    1,760

    Re: function clGetPlatformIDs returning error

    I cant say what the problem is but there does not seem to be anything wrong with your code at least. It compiles and runs as expected on my system (code::blocks/MinGW/Quadro FX3800).

    Without more...
  9. Replies
    10
    Views
    2,248

    Re: passing array of typedef'd structs to kernel

    You might send the error code to a switch which converts them into a string and print it, something like this for example:



    bool checkError(cl_int errMsg, const char *at)
    {
    ...
  10. Replies
    5
    Views
    1,661

    Re: Small matrix operations

    Actually it was not too hard to figure out a way


    // One dimensional intersection of the open interval <0,1>
    bool sect1d(const float a, const float b, const float c, const float d)
    {
    bool...
  11. Replies
    5
    Views
    1,661

    Re: Small matrix operations

    Interesting, thanks for he feedback. It seems quite difficult to avoid branching at times. For example now I'm writing a function to test for intersecting tetrahedrons. Getting rid of conditionals...
  12. Replies
    5
    Views
    1,661

    Small matrix operations

    After googling a bit it appears as though open source implementations of small matrix operations for OpenCL are not easy to come by.

    I frequently need such functionality so I have started with 3...
  13. Replies
    5
    Views
    1,671

    Re: Global workgroup size and performance

    Could also be done like this (at the risk of having one superfluous multiple of local_ws):

    local_ws*(( N*M)/local_ws + 1)
    However shorter code isn't always better or clearer I'd say.
  14. Replies
    5
    Views
    1,671

    Re: Global workgroup size and performance

    Thanks, you are right. Reducing local work-size to 128 more than halved the time used for computations.
  15. Replies
    5
    Views
    1,671

    Global workgroup size and performance

    So I'm playing around with a many-body system to test out what kind of processing power I can get out of my FX 3800.

    I can get a decent framerate with 10000 particles or less when the global...
Results 1 to 15 of 15