Search:

Type: Posts; User: FredericX

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,616

    Re: Compile error for float4 array

    Yes, same error.
  2. Replies
    0
    Views
    1,234

    thread creation overhead

    I have a kernel that's basically only doing a lookup. The total numer of lookups is about 32.000.

    Question: Is the overhead to start & execute ONE thread PER lookup worth it?



    __constant int...
  3. Replies
    2
    Views
    1,084

    Global Memory - when is it changed?

    I have the following kernel. When I copy the local variable "data" into "retval[offset]", do I really initiate a write to global memory every time? Or is the compiler intelligent enough to wait til...
  4. Replies
    4
    Views
    2,616

    Compile error for float4 array

    Hi there,

    I am trying to initialize the following array:

    __constant float4 splitter_cache[2] like this:

    __constant float4 splitter_cache[2] = { (float4)(0.0f,0.0f,0.0f,0.0f),...
  5. Replies
    2
    Views
    1,752

    constant memory

    Hi there,

    1) What is the difference between "const" and "__constant"?
    Example:
    __kernel void function_cl (__constant float* var1, const uint var2)
    {
    ...
    }

    2) When I want to use constant...
  6. Replies
    0
    Views
    1,514

    Optimized FFT for 32k complex numbers

    Hi all,

    1) I am looking for a highly optimized FFT code for size 32k.

    I already know Apples OpenCL FFT implementation, but I thought there must be something better, since I don't need a general...
  7. Replies
    3
    Views
    1,848

    Re: Calling a kernel from within a kernel?

    I am sure I could. But that's mostly serial stuff.

    Did I understand it correct that once you have called a kernel you can not change the workgroup setup any more? So for all subsequent functions...
  8. Replies
    3
    Views
    1,848

    Calling a kernel from within a kernel?

    I have an application that does a lot of FFT + some subsequent data processing.

    At the moment I do this
    1) Copy data from CPU to GPU.
    2) Do FFT on GPU (with kernel 1)
    3) Copy data from GPU to...
  9. Replies
    5
    Views
    1,878

    Re: static int inside a __kernel

    Thank you for your answer.



    How/where do I define such a variable? From what I've seen so far everything in OpenCL is inside kernels/functions. Is it possible, like in C/C++, to define/declare...
  10. Replies
    5
    Views
    1,878

    Re: static int inside a __kernel

    Yes I do. Was just an example. In the end I'd like to write a random number generator and therefore I need a global variable.

    Maybe that should have been my question: Is there something like a...
  11. Replies
    5
    Views
    1,878

    static int inside a __kernel

    I would like to use something like a "static int" inside a kernel - for example like a counter that always increments each time the kernel is called.

    But code like this does not compile:
    ...
Results 1 to 11 of 13