PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Compilation problems for loop parallelization
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
andref



Joined: 19 Apr 2012
Posts: 7

PostPosted: Wed May 16, 2012 6:08 am    Post subject: Reply with quote

Dear Mat,

After providing the codes and description of the issues we encountered, the PGI support informed me that it has been logged as TPR 18676.
Would you have any idea if it will be possible to work around these problems and within which delay?

On my side, I cannot make any further tests as my PGI trial licence expired and, also, I do not really have any idea for other tests in trying to circumvent these issues. But any suggestion is welcome! :-)

Many thanks for your consideration.

Kind regards,
Fred
Back to top
View user's profile
mkcolg



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

PostPosted: Thu May 17, 2012 4:14 pm    Post subject: Reply with quote

Quote:
Would you have any idea if it will be possible to work around these problems and within which delay?
Basically, you need to manually inline your routines. So you should be able to, but it would take some effort.

Note NVIDIA has announce some new features in their next generation processor (Kepler Tesla K20) and CUDA 5.0 (both are expected to be available in Q4 2012) which will enable us to support true calling on the GPU and ellimate the need for inlining. Granted we have work to do here as well and need to extend the OpenACC and PGI Accelerator Model to express this so I don't expect our support to be available for a few months after the K20 is available. Then again, calling is our number one most requested feature and one of the few major inhibitors of adoption by users, so it is high priority item for us.
Quote:
I cannot make any further tests as my PGI trial licence expired
That's fix able. Send a note to PGI Sales (sales@pgroup.com) or PGI Customer Support (trs@pgroup.com) asking that your trial period be reset.

Quote:
I do not really have any idea for other tests in trying to circumvent these issues
If all your code is like this, and your are unwilling or unable to restructure the code to be better suited to today's GPUs, then you may want to wait for the Tesla K20.

Though if you do want to get started now in order to gain experience, you can try the example codes that accompany the compilers or some larger examples found in PGinsider Newsletter (https://www.pgroup.com/resources/articles.htm#pginsider).

Note that there are many other reasons to purchase the PGI compilers besides GPU directives. Our x86 compilers are able to produce very high performance binaries on both new and older generation Intel and AMD architectures. Our Profiling and Debugging tools have excellent interfaces and are MPI and OpenMP enabled. We developed CUDA Fortran for those users wanting a more "hands-on" approach to GPU programming. We've even starting targeting ARM processors with OpenCL (granted I assume you are not running your code on cell phones). So don't let this one issue stop you.

- Mat
Back to top
View user's profile
andref



Joined: 19 Apr 2012
Posts: 7

PostPosted: Mon May 21, 2012 10:26 am    Post subject: Reply with quote

Dear Mat,

Thanks for these information and advices.

This is very good news that next generation NVIDIA processors and CUDA version will tolerate true calling, we are looking forward for that.
In the meanwhile, I will extend the trial period and try to inline the code manually as you suggested. Nevertheless, given the complexity of our code and given the fact that inlining using your compiler seems to work to some extent, I would like to know if it would be possible to access the inlined code generated by the compiler (even if it is not completed and still contains some errors that I would try to fix myself)? If possible, this would save me from having to inline all the code manually.

Best regards,
Fred
Back to top
View user's profile
mkcolg



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

PostPosted: Mon May 21, 2012 11:02 am    Post subject: Reply with quote

Quote:
I would like to know if it would be possible to access the inlined code generated by the compiler
Unfortunately, no. I asked our compiler team about doing this a few years ago. The problem is that by the time inlining is performed, the code has already been translated into ILM, an intermediate representation, and we don't have a method to translate the ILM back into a particular language.

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

 
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