Results 1 to 4 of 4

Thread: The execution in GPU is not the same that CPU

  1. #1

    The execution in GPU is not the same that CPU

    Hi,

    When i run my application in CPU, no problems occurs. I can put 256 threads in CPU, that the execution happens and the results in the end of execution all is correct.

    But, when i put more than 48 threads in GPU the application enter in a infinite loop.
    More than 40 threads gets to run, but the results is not the same.

    Is it possible be a problem in rounding of the numbers? The way that CPU makes rounding is different than GPU?

    This is a first thing that went through my mind.

    Thanks,

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: The execution in GPU is not the same that CPU

    Can you post here the kernel's source code? Also, when you talk about threads, do you mean work items? Please also show us the arguments you pass to clEnqueueNDRangeKernel(). We need to know the value of global_work_size and local_work_size.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3

    Re: The execution in GPU is not the same that CPU

    Hi,

    Sorry the time that i answer, some late.

    Yes, when i said threads, it's means work-items.

    The call of kernel is bellow and the value of global_work_items and local_work_items is 1 each for:

    erro_executa_kernel_sivia = clEnqueueNDRangeKernel( queue, sivia, 1, NULL, &global_work_size, &local_work_size,0 , NULL,NULL);


    Thanks,

    Luiz Drumond

  4. #4
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: The execution in GPU is not the same that CPU

    Can you post here the kernel's source code? What you showed us is the API call, not the kernel source code.

    Also, what is the value of local_work_size? Have you tried passing NULL instead of local_work_size?
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. Replies: 7
    Last Post: 10-10-2012, 07:12 PM
  2. Replies: 3
    Last Post: 03-24-2012, 05:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •