PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

how to get the thread identifier in a parallel region

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



Joined: 20 Aug 2010
Posts: 8

PostPosted: Tue Nov 16, 2010 2:23 am    Post subject: how to get the thread identifier in a parallel region Reply with quote

Hi all

Is there the possibility to get the thread identifier inside a parallel region specified with the accelerator directives ? I mean something like the OpenMP runtime function omp_get_thread_num().

In the PGI reference documentation I found nothing.

Thanks

Cheers
A.
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Nov 22, 2010 2:57 pm    Post subject: Reply with quote

Hi A.,

Quote:
Is there the possibility to get the thread identifier inside a parallel region specified with the accelerator directives ?
Sorry, no.

What would be the use case be for such a feature?

- Mat
Back to top
View user's profile
astramieri



Joined: 20 Aug 2010
Posts: 8

PostPosted: Fri Nov 26, 2010 3:03 am    Post subject: how to get the thread identifier in a parallel region Reply with quote

Hi Mat

Thanks for your reply.

Quote:
What would be the use case be for such a feature?


My goal was to accelerate an OpenMP portion of code through a minimum set of changes using Accelerator directives.

Cheers
A.
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