Search found 8102 matches

by mkcolg
Fri Nov 15, 2019 10:05 am
Forum: Accelerator Programming
Topic: Undefined references with pgf90 and "-acc" option
Replies: 1
Views: 12

Re: Undefined references with pgf90 and "-acc" option

Hi sl06, This look to me like "_reference_cells_21_" is an initialized variable found in the "reference_cells" module. Module variables have global storage on the host. Given the error is coming from the device linker (nvlink), you're most likely referencing this module variable in device code but h...
by mkcolg
Fri Nov 15, 2019 9:22 am
Forum: General Programming
Topic: mpif90+cudaC Mixed compilation problems
Replies: 3
Views: 15

Re: mpif90+cudaC Mixed compilation problems

Hi M_yeah, Sorry but I'm still not understanding what issue you're encountering. Though you should be consistent with which MPI install you're using and the MPI should be configured for use with the PGI compilers. In you're makefile, you have it setup to use "/opt/mpich2-1.4.1p1/bin/mpif90" which is...
by mkcolg
Thu Nov 14, 2019 8:57 am
Forum: General Programming
Topic: mpif90+cudaC Mixed compilation problems
Replies: 3
Views: 15

Re: mpif90+cudaC Mixed compilation problems

Hi M_yeah, Can you define what you mean by it doesn't work except for the main process? If I remove the check in hello_world.f90 to only print if it's rank 0, then all ranks give the result of c=3. Not sure if this is the problem, i.e. the code only prints out rank 0 and why you think the other rank...
by mkcolg
Wed Nov 13, 2019 12:18 pm
Forum: Accelerator Programming
Topic: PGI 19.4 and GCC 7.4.0, missing routine info for math functions
Replies: 2
Views: 14

Re: PGI 19.4 and GCC 7.4.0, missing routine info for math functions

Hi David, I believe the difference is that "math.h" was getting implicitly included by the C++ cmath header with the GNU 4.8.5 compilers, but in 7.40 it only gets partially included (they added C++ macro guard so only parts are included). Hence, the definition for "fabs" is not longer getting implic...
by mkcolg
Wed Nov 13, 2019 10:22 am
Forum: General Programming
Topic: debugging flags
Replies: 1
Views: 10

Re: debugging flags

Hi Jerry, We have a few error checks you can use, but I tend to use Valgrind for these types of runtime issues. -M[no]bounds : Generate code to check array bounds -Mchkptr : Check for NULL pointers -Mchkstk : Check for sufficient stack space upon subprogram entry -Ktrap=divz|fp|inexact|inv|none|ovf|...