I just installed the PGI Community Edition compilers in my ArchLinux computer (kernel: 4.13.8-1-ARCH, gcc: 7.2.0, glibc: 2.26-6, PGI: 17.10-0 64-bit)
Installation went without trouble, but as far as I have started trying to use the compilers I see the following problems:
- I cannot compile a C++ simple code.
[angelv@comer 00-original]$ make pgc++ -fast -Minfo=all,ccff main.cpp -o cg.x "/usr/include/bits/floatn.h", line 61: error: invalid argument to attribute "__mode__" typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__)));
- The same version of the code, but in Fortran compiles and runs with no issues, but if I try to run the resulting executable from inside the profiler I first get this message when trying to “Open a New Session”
[angelv@comer 00-original]$ pgprof Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/angelv/.eclipse/org.eclipse.platform_4.4.1_1739789791_linux_gtk_x86_64/configuration/org.eclipse.osgi/12/0/.cp/libvp_linux_x86_64.so whic\ h might have disabled stack guard. The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Despite the message I can run the code and when finished I get information in the CPU Details tab, but double clicking in any of the functions never opens the source files. In the console I get the following:
nvprof log: /home/angelv/nvvp_workspace/.metadata/.plugins/com.nvidia.viper/launch/0/nvprof_5318.log Rows: 8120601 nnz: 218535025 Iteration: 0 Tolerance: 4.006700E+08 Iteration: 10 Tolerance: 1.877230E+07 Iteration: 20 Tolerance: 6.435887E+05 Iteration: 30 Tolerance: 2.320219E+04 Iteration: 40 Tolerance: 8.356487E+02 Iteration: 50 Tolerance: 3.003893E+01 Iteration: 60 Tolerance: 1.076441E+00 Iteration: 70 Tolerance: 3.836034E-02 Iteration: 80 Tolerance: 1.351503E-03 Iteration: 90 Tolerance: 4.620883E-05 Total Iterations: 100 Time (s): 44.64460 ======== Warning: This version of nvprof doesn't support the underlying device, GPU profiling skipped
Any idea how to solve these issues?