PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

SEQUENCE and CUDA

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



Joined: 06 Jul 2009
Posts: 322
Location: Greenbelt, MD

PostPosted: Wed Dec 15, 2010 1:07 pm    Post subject: SEQUENCE and CUDA Reply with quote

This might be a moot point as I haven't yet tried to implement it (I'm working to get it on the CPU first), but I'm wondering about it. I have a derived data type with, say, 40 elements that I'd like to put into constant memory on my GPU. What I'm wondering is whether I can/should use SEQUENCE with the TYPE or not?

As I recall, SEQUENCE tells the compiler to put the TYPE members in successive memory locations. For a GPU this seems like a useful/good thing, but does it mean anything for GPU TYPEs with device/constant attributes and, even if it does, will it matter with constant memory since it's a broadcast (in my code) and so memory order may not matter. (This might be more important for device TYPEs.)

Any advice on using TYPEs with GPUs?

Thanks,
Matt
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