PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

First try compile errors
Goto page Previous  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
mkcolg



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

PostPosted: Tue Aug 20, 2013 1:18 pm    Post subject: Reply with quote

The device info is fine. Let's try adding the verbose flag (-v) and see everything the driver is doing.

Code:
pgf90 -v -Minfo saxpy.cuf


- Mat
Back to top
View user's profile
riskysp



Joined: 11 Jan 2013
Posts: 8

PostPosted: Thu Aug 22, 2013 12:30 pm    Post subject: Reply with quote

Mat,

I ran it with the -v flag added. Is there any way to capture the output of the compiler without typing it all out by hand?
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Aug 22, 2013 4:14 pm    Post subject: Reply with quote

When using the Cygwin bash shell, to redirect output to a file, the command is:

Code:
pgf90 -v -Minfo saxpy.cuf  >& filename.txt


From the DOS cmd window, the command is:

Code:
pgf90 -v -Minfo saxpy.cuf > filename.txt 2>&1



You can also copy the contents of a command window by first right-mouse clicking on the top of the window. A drop-down box will appear. Select "Edit->Mark". Select and highlight the text you wish to copy. Re-open the drop-down box and select "Edit->copy" to copy the text to the clipboard. You can then paste this in the PGI User Forum form. Next, highlight the text in the form and the select the "Quote" button above.

Hope this helps,
Mat
Back to top
View user's profile
riskysp



Joined: 11 Jan 2013
Posts: 8

PostPosted: Fri Aug 23, 2013 11:43 am    Post subject: Reply with quote

Thanks for the copy tip.

Here is the compiler output:

Quote:
PGI Workstation 13.7 (64)
PGI$ pgf90 -v -Minfo saxpy.cuf

C:\PROGRA~1\PGI/win64/13.7/bin\pgf901.exe saxpy.cuf -opt 1 -nohpf -nostatic -qua
d -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -x 12
0 0x80000000 -x 59 4 -x 124 0x400 -x 19 0x400000 -x 119 0x8800000 -tp sandybridg
e -x 57 0x7b0000 -x 58 0x78031040 -x 119 0x610400 -x 120 0x80000000 -x 59 4 -x 1
5 2 -x 49 0x100 -x 48 5376 -stdinc "C:\PROGRA~1\PGI/win64/13.7/include;C:/Progra
m Files/PGI/Microsoft Open Tools 11/include/sys;C:/Program Files/PGI/Microsoft O
pen Tools 11/include;C:/Program Files (x86)/Windows Kits/8.0/Include/shared;C:/P
rogram Files (x86)/Windows Kits/8.0/Include/um" -def _M_AMD64 -def _MT -def _WIN
32 -def __WIN32 -def __WIN32__ -def _WIN64 -def __WIN64 -def __WIN64__ -def __x8
6_64__ -def __X86_64__ -def __unaligned= -def _INTEGRAL_MAX_BITS=64 -def __exten
sion__= -def __amd64__ -def __SSE__ -def __MMX__ -def __SSE2__ -def __SSE3__ -de
f __SSSE3__ -def __PGI_TOOLS11 -def _CUDA -ccff -freeform -x 137 1 -x 180 0x4000
000 -x 189 8 -x 176 0x140000 -x 177 0x0202007f -vect 48 -y 54 1 -modexport C:\te
mp\pgf903bLy4bVh0Pf99E.cmod -modindex C:\temp\pgf904cny4bNf1EJ6_r.cmdx -output C
:\temp\pgf902a9y4b3a0qGO9N.ilm
0 inform, 0 warnings, 0 severes, 0 fatal for mathops
0 inform, 0 warnings, 0 severes, 0 fatal for saxpy
0 inform, 0 warnings, 0 severes, 0 fatal for testsaxpy
PGF90/x86-64 Windows 13.7-0: compilation successful

C:\PROGRA~1\PGI/win64/13.7/bin\pgf902.exe C:\temp\pgf902a9y4b3a0qGO9N.ilm -fn sa
xpy.cuf -opt 1 -x 51 0x20 -x 120 0x80000000 -x 59 4 -x 19 0x400000 -x 28 0x40000
-x 119 0x4a10400 -x 122 0x40 -x 123 0x1000 -x 127 0x15 -x 129 0x10 -quad -y 80
0x1000 -x 80 0x10800000 -tp sandybridge -x 70 0x8000 -x 122 1 -x 125 0x20000 -x
120 0x1000 -x 124 0x400 -x 119 0x400000 -x 120 0x80 -y 15 2 -x 57 0x3b0000 -x 58
0x48000000 -x 15 2 -x 49 0x100 -astype 0 -x 137 1 -x 180 0x4000000 -x 189 8 -x
176 0x140000 -x 177 0x0202007f -x 124 1 -x 0 0x1000000 -x 2 0x100000 -x 0 0x2000
000 -x 161 0xcff7 -x 162 0xcff7 -cmdline "+pgf90 saxpy.cuf -v -Minfo" -asm C:\te
mp\pgf905d1y4bFY9VwRyq.s
0 inform, 0 warnings, 0 severes, 0 fatal for mathops
0 inform, 0 warnings, 0 severes, 0 fatal for saxpy
executing C:\PROGRA~1\PGI/win64/13.7/bin/pgnvd C:\temp\pgcudafor2auSBb8NEx03Bf.g
pu -computecap=10 -ptx C:\temp\pgcudafor4cuSBb8IWb1Or0.ptx -o C:\temp\pgcudafor5
d0SBbC60PvVEK.bin -4.2
PGF90-F-0155-Compiler failed to translate accelerator region (see -Minfo message
s): Device compiler exited with error status code (saxpy.cuf: 1)
PGF90/x86-64 Windows 13.7-0: compilation aborted
pgf90-Fatal-f902 completed with exit code 1

Unlinking C:\temp\pgf902a9y4b3a0qGO9N.ilm
Unlinking C:\temp\pgf903bLy4bVh0Pf99E.cmod
Unlinking C:\temp\pgf904cny4bNf1EJ6_r.cmdx
Unlinking C:\temp\pgf905d1y4bFY9VwRyq.s
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Aug 26, 2013 9:47 am    Post subject: Reply with quote

Ok, now to see if we can figure out why the device compiler is failing. Re-compile with "-v -Mcuda=keepgpu,cc20". Next copy and paste the "C:\PROGRA~1\PGI/win64/13.7/bin/pgnvd" command line from the output and then add "-v" to get the verbose output from this driver. Note that you'll need to put quotes around the DOS path names.

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