PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Errors in examples from PGI OpenACC Compilers Getting Statt

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
THX 1138



Joined: 30 Jun 2011
Posts: 102

PostPosted: Wed Jun 27, 2012 9:19 am    Post subject: Errors in examples from PGI OpenACC Compilers Getting Statt Reply with quote

I have copied from the posts the exact c code for example 1 and example 2 in the

PGI OpenACC Compilers Getting Started Guide Version 12.3.

These are the examples on pages 8 and 11 continues to 12.

I am getting literaly the same error when I try and compile them.

The errors are:

GC-S-0025-Illegal character: '\37777777742' (a2.c: 42)
PGC-S-0025-Illegal character: '\37777777600' (a2.c: 42)
PGC-S-0025-Illegal character: '\37777777634' (a2.c: 42)
PGC-S-0037-Syntax error: Recovery attempted by deleting '(' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-S-0025-Illegal character: '\134' (a2.c: 43)
PGC-F-0008-Error limit exceeded (a2.c: 43)
PGC/x86 Linux 12.5-0: compilation aborted
[james@james OpenACC]$ gedit a2.c
[james@james OpenACC]$ gedit a2.c
[james@james OpenACC]$ gedit a2.c
[james@james OpenACC]$ gedit a1.c
[james@james OpenACC]$ pgcc -acc a1.c
PGC-S-0025-Illegal character: '\37777777742' (a1.c: 37)
PGC-S-0025-Illegal character: '\37777777600' (a1.c: 37)
PGC-S-0025-Illegal character: '\37777777634' (a1.c: 37)
PGC-S-0037-Syntax error: Recovery attempted by deleting '(' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-S-0025-Illegal character: '\134' (a1.c: 38)
PGC-F-0008-Error limit exceeded (a1.c: 38)
PGC/x86 Linux 12.5-0: compilation aborted



I have looked at the code and I have not seen any illegal character on the lines that the compiler delineates. I diid notice that it happens in the last few lines of each program and the errors (except for the specific lines in the programs) are the same

Please tellme wht I am doing wrong.

Thanks in advance.

THX 1138
Back to top
View user's profile
toepfer



Joined: 04 Dec 2007
Posts: 47

PostPosted: Wed Jun 27, 2012 4:36 pm    Post subject: Reply with quote

Check your printf statements. For the example on page 8, there is a single printf statement that when cutting/pasting the double quotes do not translate correctly. Here is the printf statement from this example.

Code:
printf( "%d errors found\n", errs );
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling 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