Problem with device compiler and include files?

We’re evaluating pgi’s accelerator products along with those of some competitors, and we’re having a lot of trouble getting it installed and running.

After spending literally all day wrestling with PGIs licensing issues, then getting the install process to work with the correct gcc and linker, I’ve finally gotten it to the point where it compiles runnable CPU code. But when I now try to actually start the evaulation process by playing with GPU code, then completely mysterious include file issues prevent any actual GPU code from being built:

pgf90 -Minfo=all,accel -fast -ta=nvidia,cc2.0 -o matrixf-gpu matrixf.f90
NOTE: your trial license will expire in 14 days, 1.84 hours.
NOTE: your trial license will expire in 14 days, 1.84 hours.
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/driver_types.h:74,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/builtin_types.h:57,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:67,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/usr/include/limits.h:125:26: error: no include path in which to search for limits.h
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/builtin_types.h:57,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:67,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/driver_types.h:75:20: error: stddef.h: No such file or directory
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:81:15: error: new: No such file or directory
In file included from /usr/include/stdio.h:75,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:101,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:147,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:76:17: error: cmath: No such file or directory
/home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:77:19: error: cstdlib: No such file or directory
/home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:601:1: warning: "signbit" redefined
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:74,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:147,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/usr/include/math.h:229:1: warning: this is the location of the previous definition
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:147,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:603:1: warning: "isfinite" redefined
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:74,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:147,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/usr/include/math.h:241:1: warning: this is the location of the previous definition
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:147,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:608:1: warning: "isnan" redefined
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:74,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:147,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/usr/include/math.h:257:1: warning: this is the location of the previous definition
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:147,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:610:1: warning: "isinf" redefined
In file included from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/math_functions.h:74,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/common_functions.h:147,
                 from /home/scinet/arc/pgi/linux86-64/2012/cuda/4.0/include/cuda_runtime.h:76,
                 from /tmp/pgaccHjycJPr4F_Kb.gpu:1:
/usr/include/math.h:269:1: warning: this is the location of the previous definition
PGF90-W-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (matrixf.f90: 31)

Note that we’ve been building CUDA 3.x and 4.0 code on this same machine for at least the past 6 months with no problem.

Any suggestions? The system is a Nehalem x86_64 system running CentOS6. The system gcc is 4.4.6.

Hello,

I just installed the 12.1 Linux compilers on a Centos 6 64-bit system,
and the CUDA components were installed properly.

Perhaps the installer either did not say yes to the install question,
or ‘accept’ the license agreement.

If you try again and it fails, send mail to trs@pgroup.com

regards,
dave