PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

HELP me with PGC-W-0267 warning
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
dr.bennix



Joined: 26 Oct 2012
Posts: 1

PostPosted: Sat Oct 27, 2012 1:44 am    Post subject: HELP me with PGC-W-0267 warning Reply with quote

My Platform Mac OS 10.8.2
CUDA 5.0 environment
---------------------
My test.c file
#include <stdio.h>
#define N 1000000

int main(void) {
double pi = 0.0f; long i;
#pragma acc parallel loop
for (i=0; i<N; i++) {
double t= (double)((i+0.5)/N);
pi +=4.0/(1.0+t*t);
}
printf("pi=%16.15f\n",pi/N);
return 0;
}

when issue command
$pgcc -ta=nvidia,cc20 -Minfo=accel test.c

PGC-W-0267-#warning -- "Unsupported compiler detected" (/usr/include/sys/cdefs.h: 81)
main:
6, Accelerator kernel generated
6, CC 2.0 : 23 registers; 0 shared, 60 constant, 0 local memory bytes
7, #pragma acc loop gang, vector(256) /* blockIdx.x threadIdx.x */
9, Sum reduction generated for pi
6, Generating compute capability 2.0 binary
PGC/x86-64 OSX 12.9-0: compilation completed with warnings
test.c:38:no such instruction: `vzeroupper'
test.c:61:no such instruction: `vzeroupper'
test.c:65:no such instruction: `vzeroupper'
test.c:77:no such instruction: `vzeroupper'
test.c:91:no such instruction: `vzeroupper'
test.c:104:no such instruction: `vzeroupper'
test.c:118:no such instruction: `vzeroupper'
test.c:138:no such instruction: `vzeroupper'
test.c:159:no such instruction: `vzeroupper'
test.c:170:no such instruction: `vzeroupper'
test.c:173:no such instruction: `vmovsd -48(%rbp), %xmm0'
test.c:174:no such instruction: `vmovsd %xmm0, -56(%rbp)'
test.c:180:no such instruction: `vzeroupper'
test.c:182:no such instruction: `vzeroupper'
test.c:185:no such instruction: `vmovsd -56(%rbp), %xmm0'
test.c:186:no such instruction: `vmulsd .C00398(%rip), %xmm0,%xmm0'
test.c:188:no such instruction: `vzeroupper'
test.c:194:no such instruction: `vzeroupper'
test.c:1301:no such instruction: `vzeroupper'

Thanks a lot!
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Oct 30, 2012 12:32 pm    Post subject: Reply with quote

Hi dr.bennix,

I asked PGI Customer Support to send you an updated cdefs.h and siterc file for Mountain Lion.

- Mat
Back to top
View user's profile
srossross



Joined: 12 Nov 2012
Posts: 1

PostPosted: Mon Nov 12, 2012 12:03 pm    Post subject: Reply with quote

I am having the same problem
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 438

PostPosted: Wed Nov 14, 2012 12:00 pm    Post subject: Reply with quote

On October 29, I sent mail to dr.bennix with cdefs.h and siterc files.
=======================================================
I have attached two files that should get around your problem until
we get it fixed in a release.

Replace the /opt/pgi/osx86-64/12.9/include/sys/cdefs.h with
the attached file. It will solve the cdefs.h problem.

Store the attached siterc file as
/opt/pgi/osx86-64/12.9/bin/siterc
to eliminate the 'vzeroupper' messages.
========================================================

I will send them again
Back to top
View user's profile
khea_actua1



Joined: 06 Nov 2008
Posts: 42
Location: Carleton University

PostPosted: Wed Jan 02, 2013 9:41 am    Post subject: Reply with quote

I am also having the same problem.

Code:

matt@pontus:diffFst$ pgcc -c cDoDiffFst.c
PGC-W-0267-#warning --  "Unsupported compiler detected" (/usr/include/sys/cdefs.h: 81)
PGC/x86-64 OSX 12.9-0: compilation completed with warnings
matt@pontus:diffFst$ pgcc --version

pgcc 12.9-0 64-bit target on Apple OS/X -tp nehalem
Copyright 1989-2000, The Portland Group, Inc.  All Rights Reserved.
Copyright 2000-2012, STMicroelectronics, Inc.  All Rights Reserved.
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
Goto page 1, 2  Next
Page 1 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