PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

To use atomic add
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
Kaustubh



Joined: 18 Oct 2010
Posts: 12

PostPosted: Thu Nov 18, 2010 4:37 pm    Post subject: To use atomic add Reply with quote

Hi,
I am getting following errors while using atomicadd function in Cuda fortran.
Error 1 unresolved external symbol _ATOMICADDF@8 referenced in function _PI_CUDA_PI_KERNEL__ENTRY@20 picuda.obj

I am calling atomicadd as shown below:
istat=atomicadd(y,x) (for y = y + x)
Can anyone please give me an example of how to use it. I saw the above syntax from one of the topics in the forum.
Regards
Kaustubh
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Wed Nov 24, 2010 5:40 pm    Post subject: Reply with quote

Hi Kaustubh,

Can you please post a reproducing example? I looks like y and x might be floats where we only support the integer versions of the atomics.

- Mat
Back to top
View user's profile
Kaustubh



Joined: 18 Oct 2010
Posts: 12

PostPosted: Sun Nov 28, 2010 6:32 pm    Post subject: Reply with quote

Hi Mat,
Yes I was using real variables.
Thanks
Back to top
View user's profile
tomko



Joined: 23 Sep 2011
Posts: 10

PostPosted: Mon Oct 31, 2011 9:04 am    Post subject: support for float Atomic Add? Reply with quote

CUDA supports Atomic Add for floats on devices with compute compatibility 2.x,
Does PGI CUDA Fortran support this yet?
Karen
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Tue Nov 01, 2011 11:39 am    Post subject: Reply with quote

Hi Karen,

Quote:
Does PGI CUDA Fortran support this yet?
Yes.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group