Search:

Type: Posts; User: iassael

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    3,508

    Re: Cannot use math functions

    ok the whole problem was that i had the kernel function on top and then the others. while the right way is to have all the other functions on top and then the kernel ;)
  2. Replies
    10
    Views
    3,508

    Re: Cannot use math functions

    SOLVED!
    Thank you all!
  3. Replies
    10
    Views
    3,508

    Re: Cannot use math functions

    Solved the whole problem was that my kernel function was before the other functions inside the .cl file.
    Thanks for the help although!
  4. Replies
    10
    Views
    3,508

    Re: Cannot use math functions

    *acos((float) x)

    when it runs inside the kernel everything works fine when i put it inside a function that the kernel calls i get this log.
  5. Replies
    10
    Views
    3,508

    Re: Cannot use math functions

    ok i managed to use the sqrt()
    the problem is with the

    cos( (float) x)


    Build Log:
    ptxas application ptx input, line 519; error : Label expected for argument 0 of instruction 'call'
    ptxas...
  6. Replies
    10
    Views
    3,508

    Cannot use math functions

    Hello I am compiling OpenCl kernel under X64 visual studio and for some reason i get an error when i have a function like sqrt() inside the kernel. Am i doing something wrong?
    I thought these...
Results 1 to 6 of 9