PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

cpu_set_t

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



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

PostPosted: Fri May 04, 2012 12:50 pm    Post subject: cpu_set_t Reply with quote

Hi,

Getting an error with cpu_set_t,

Code:

pgcc -c -I./Sources. -I/home/armnlib/ssm/all/include -I/opt/compilers/pgi/linux86-64/12.4/include -I/cm/shared/apps/gcc/4.4.6/include -I/cm/shared/apps/mvapich2/pgi/64/1.6/include  -fpic  -D_REENTRANT -I. -I/home/armnlib/ssm/infrastructure_1.0_linux24-x86-64/share/armnlib/include -I/home/armnlib/ssm/infrastructure_1.0_linux24-x86-64/share/armnlib/include/Linux_x86-64_pgi10xx -I. -O2  -D__x86_64 -DWITHOUT_OpenMP  f90_threads.c

PGC-S-0040-Illegal use of symbol, cpu_set_t (/opt/compilers/pgi/linux86-64/12.4/include/sched.h: 82)
PGC-W-0156-Type not specified, 'int' assumed (/opt/compilers/pgi/linux86-64/12.4/include/sched.h: 82)
PGC-S-0040-Illegal use of symbol, cpu_set_t (/opt/compilers/pgi/linux86-64/12.4/include/sched.h: 86)
PGC-W-0156-Type not specified, 'int' assumed (/opt/compilers/pgi/linux86-64/12.4/include/sched.h: 86)
PGC/x86-64 Linux 12.4-0: compilation completed with severe errors


It seems like PGI has it's own sched.h, and it's there that this is failing.

Any idea how cpu_set_t could not get defined? There's a definition for it in /usr/include/bits/sched.h, but that's there only place I've found it. I've read that if I have stdlib included (and I do) that it should be fine..

I'm on a CentOS 6.2 Linux box, with PGI 12.4 86x64

Thanks.
Back to top
View user's profile
khea_actua1



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

PostPosted: Fri May 04, 2012 1:14 pm    Post subject: Reply with quote

Hmm, I think the problem was that the pgi shared directory was in the include path. The build script for what I'm building was created by someone else, so I'll try to find why it was being included.
Back to top
View user's profile
mkcolg



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

PostPosted: Fri May 04, 2012 2:13 pm    Post subject: Reply with quote

Hi khea_actua1,

Note that the "sched.h" we provide first includes the system's "sched.h" which in turn includes "bits/sched.h" which defines "cpu_set_t". We only include our version to work around a "#ifdef __USE_GNU" guard in the default "sched.h"'s CPU_SET macros.

- Mat
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