PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

CUDA Fortran host device=device assignment

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
SarahA



Joined: 29 Aug 2006
Posts: 16

PostPosted: Fri Apr 02, 2010 8:57 am    Post subject: CUDA Fortran host device=device assignment Reply with quote

Just to clarify....A host program cannot copy device array to device array?
I will write a "copy kernel", but am I misunderstanding this part of the "CUDA Fortran Programming Guide & Reference", v.12 section 3.4.1 or is this a bug?
Quote:
An assignment statement with a device variable or device array or array section on both sides of the assignment statement will copy data between two device variables or arrays.


pgfortran 10.3-0 64-bit target on x86-64 Linux -tp nehalem-64

Code:

:~ pgfortran -c foo.CUF
PGF90-S-0155-more than one device-resident object in assignment  (foo.CUF: 5)
  0 inform,   0 warnings,   1 severes, 0 fatal for test
:~ cat foo.CUF

program test
  use cudafor   
  real, device, dimension(100) :: ha, wha
  call foo(ha,wha)
  ha = wha
  call foo(ha,wha)
  stop
end program
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Apr 02, 2010 12:41 pm    Post subject: Reply with quote

Hi Sarah,

This is one of the cases where the implementation is behind the spec. We're adding this support now with it becoming available sometime later this year.

Sorry,
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
Page 1 of 1

 
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