PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Device functions in separate modules

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



Joined: 23 Nov 2009
Posts: 2
Location: Institute of Aviation, Warsaw, Poland

PostPosted: Tue Feb 23, 2010 1:13 am    Post subject: Device functions in separate modules Reply with quote

Hello,
I have my in-house CFD code written in Fortran, the code is parallelized with OpenMP. I would like to parallelize this code using PGI CUDA Fortran, but the greatest disadvantage of CUF I found, is that all device functions calling each other must be contained in a single module, which would affect structure of my code. Therefore, my question is:
Will Cuda Fortran support device functions placed in separate modules and/or nested modules?
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Feb 23, 2010 10:03 am    Post subject: Reply with quote

Hi Folo,

Quote:
Will Cuda Fortran support device functions placed in separate modules and/or nested modules?
The problem is that NVIDIA does not currently have a linker for device code. Hence, there is no way to associate symbols in one module with symbols found in another. If/When NVIDIA adds a linker, then we should be able to have CUDA Fortran call external device subroutines.

Note that your host code can call global device subroutines from multiple modules. Hence, the various device modules can share device data provided that the host code passes the device pointers from one routine to another.

- 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