PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

First try compile errors
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
riskysp



Joined: 11 Jan 2013
Posts: 8

PostPosted: Mon Aug 19, 2013 12:17 pm    Post subject: First try compile errors Reply with quote

I've copied some sample CUDA programs from the Portland Group website. I've tried compiling in command line mode and from Visual Fortran. Same error:

C:\saxpy.cuf: error F0155 : Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code

Can anyone offer and suggestions? I'm not particular about the sample program I would just like to get one working.
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Aug 19, 2013 2:44 pm    Post subject: Reply with quote

Quote:
C:\saxpy.cuf: error F0155 : Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code
Can you add the "-Minfo" flag (Properties->Fortran->Diagnostics->Accelerator Information)?

My best guess given that everything fails to compile is that you selected "No" during installation when asked if you wish to install the CUDA Toolkit. Though, I can't be sure without more information.

- Mat
Back to top
View user's profile
riskysp



Joined: 11 Jan 2013
Posts: 8

PostPosted: Tue Aug 20, 2013 6:18 am    Post subject: Reply with quote

Thanks for your response.

I have re-installed at least 3 times. Each time I've asked for CUDA to be installed. "deviceQuery" and other apps show CUDA available. I'm guessing it must be my compiler set-up. I'm using PGF 13.7 in Windows 8 (64-bit).

I added -Minfo flag as requested but didn't see any difference. Perhaps I'm not looking in the right place. Is more detailed information being provided somewhere else. I have no experience with the -Minfo flag.

Interestingly, I have absolutely no issue compiling and running regular f90 code through command line or Visual Studio. Any further advice?
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Aug 20, 2013 10:22 am    Post subject: Reply with quote

Hi riskysp,

Can you please post the output from your command line compilation, with -Minfo added, as well as the compiler commands you are using?

Also, please run the utility "pgaccelinfo" and post the output.

Thanks,
Mat
Back to top
View user's profile
riskysp



Joined: 11 Jan 2013
Posts: 8

PostPosted: Tue Aug 20, 2013 12:57 pm    Post subject: Reply with quote

Compile command -

pgf90 -Minfo saxpy.cuf

Output -

PGF90-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (saxpy.cuf: 1)
PGF90/x86-64 Windows 13.7-0: compilation aborted.

Output from pgaccelinfo -

CUDA Driver Version: 5050

Device Number: 0
Device Name: Quadro 4000
Device Revision Number: 2.0
Global Memory Size: 2147483648
Number of Multiprocessors: 8
Number of Cores: 256
Concurrent Copy and Execution: Yes
Total Constant Memory: 65536
Total Shared Memory per Block: 49152
Registers per Block: 32768
Warp Size: 32
Maximum Threads per Block: 1024
Maximum Block Dimensions: 1024, 1024, 64
Maximum Grid Dimensions: 65535 x 65535 x 65535
Maximum Memory Pitch: 2147483647B
Texture Alignment: 512B
Clock Rate: 950 MHz
Execution Timeout: Yes
Integrated Device: No
Can Map Host Memory: Yes
Compute Mode: default
Concurrent Kernels: Yes
ECC Enabled: No
Memory Clock Rate: 1404 MHz
Memory Bus Width: 256 bits
L2 Cache Size: 524288 bytes
Max Threads Per SMP: 1536
Async Engines: 2
Unified Addressing: Yes
Current free memory: 1864290304
Upload time (4MB): 1870 microseconds ( 780 ms pinned)
Download time: 1880 microseconds ( 780 ms pinned)
Upload bandwidth: 2242 MB/sec (5377 MB/sec pinned)
Download bandwidth: 2231 MB/sec (5377 MB/sec pinned)
PGI Compiler Option: -ta=nvidia,cc20
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 1, 2, 3, 4  Next
Page 1 of 4

 
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