PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

--ptxas-options=-v Equivalent for CUDA Fortran?
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
Tuan



Joined: 11 Jun 2009
Posts: 233

PostPosted: Thu Sep 02, 2010 7:33 am    Post subject: Reply with quote

Hi Mat,
I tried but the compiler doesn't recognize the -Mcuda=ptxinfo value. I'm using Fortran 10.5, Tesla C1060. The one available is -Mcuda=keepptx, yet I don't find out any related information in the generated file nor the output during the compilation stage.

Thanks,
Tuan
Back to top
View user's profile
TheMatt



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

PostPosted: Thu Sep 02, 2010 8:01 am    Post subject: Reply with quote

Tuan wrote:
Hi Mat,
I tried but the compiler doesn't recognize the -Mcuda=ptxinfo value. I'm using Fortran 10.5, Tesla C1060. The one available is -Mcuda=keepptx, yet I don't find out any related information in the generated file nor the output during the compilation stage.


Ah. 10.5 doesn't have ptxinfo, I think. You can find that information instead by using "keepbin" in the -Mcuda string.

Then, if you look at the outputted .bin file, you'll see lmem, etc. inside that text file.
Back to top
View user's profile
Tuan



Joined: 11 Jun 2009
Posts: 233

PostPosted: Thu Sep 02, 2010 9:15 am    Post subject: Reply with quote

TheMatt wrote:
Tuan wrote:
Hi Mat,
I tried but the compiler doesn't recognize the -Mcuda=ptxinfo value. I'm using Fortran 10.5, Tesla C1060. The one available is -Mcuda=keepptx, yet I don't find out any related information in the generated file nor the output during the compilation stage.


Ah. 10.5 doesn't have ptxinfo, I think. You can find that information instead by using "keepbin" in the -Mcuda string.

Then, if you look at the outputted .bin file, you'll see lmem, etc. inside that text file.


.bin is a binary file indeed, not a text file. I did open yet there is no such line with lmem that I can find. Any suggestion, Matt?

Tuan
Back to top
View user's profile
TheMatt



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

PostPosted: Thu Sep 02, 2010 9:42 am    Post subject: Reply with quote

Tuan wrote:
.bin is a binary file indeed, not a text file. I did open yet there is no such line with lmem that I can find. Any suggestion, Matt?

Hmm. This suggests to me you are using the CUDA 3.x toolkit and not the 2.3 (or lower) toolkit since 3.x now uses ELF for .cubin/.bin rather than plain text (necessitating the need for ptxinfo).

Have you changed your default CUDA version?

Also, alternatively, do you get plain text bins if you use:
Code:
-Mcuda=2.3,keepgpu,keepbin,keepptx,...

I think this will force pgfortran to use the 2.3 toolkit.
Back to top
View user's profile
Tuan



Joined: 11 Jun 2009
Posts: 233

PostPosted: Thu Sep 02, 2010 10:35 am    Post subject: Reply with quote

TheMatt wrote:
Tuan wrote:
.bin is a binary file indeed, not a text file. I did open yet there is no such line with lmem that I can find. Any suggestion, Matt?

Hmm. This suggests to me you are using the CUDA 3.x toolkit and not the 2.3 (or lower) toolkit since 3.x now uses ELF for .cubin/.bin rather than plain text (necessitating the need for ptxinfo).

Have you changed your default CUDA version?

Also, alternatively, do you get plain text bins if you use:
Code:
-Mcuda=2.3,keepgpu,keepbin,keepptx,...

I think this will force pgfortran to use the 2.3 toolkit.


You're right, I'm using CUDA 3.0. To switch back to 2.3, I need to recompile some shared libraries which are required for the build. Thanks a lot, Matt.

Tuan
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, 3  Next
Page 2 of 3

 
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