

# GCC 10.3.0 OpenACC
module purge
module load cuda/11.0
module load gnu/10.3.0
module load spectrum_mpi/10.4.0--binary

./configure \
    F90=gfortran MPIF90=mpif90 \
    --enable-parallel \
    --enable-openacc \
    --enable-cublas=yes \
    --with-cuda-cc=70 \
    --with-cuda-runtime=11.0 \
    --with-cuda-path=$CUDA_HOME

# eeeeeeeeeeeeeeeeeeeeeeeeeeee
mpif90 -O3 -g -fallow-argument-mismatch -cpp -D__DXL_OPENACC -D__DXL_CUBLAS -D__MPI  -fopenacc -I./ -I/m100/home/userexternal/nspallan/src/devicexlib-gnu//include -I../include/  -c devxlib_auxfunc_conjg.f90
devxlib_auxfunc_conjg.f90:2224:33:

 2224 |             !DEV_ACC data deviceptr(ptr_inout)
      |                                 1
Error: POINTER object ‘ptr_inout’ in MAP clause at (1)
devxlib_auxfunc_conjg.f90:2249:33:

 2249 |             !DEV_ACC data deviceptr(ptr_inout)
      |                                 1
Error: POINTER object ‘ptr_inout’ in MAP clause at (1)

[...]

make[1]: *** [../make.inc:16: devxlib_auxfunc_conjg.o] Error 1
make[1]: Leaving directory '/m100/home/userexternal/nspallan/src/devicexlib-gnu/src'
make: *** [Makefile:74: libsrc] Error 2
# eeeeeeeeeeeeeeeeeeeeeeeeeeee


# GCC 11.2.0 OpenACC
module purge
module load profile/candidate
module load cuda/11.6
module load gnu/11.2.0
module load spectrum_mpi/10.4.0--binary

./configure \
    F90=gfortran MPIF90=mpif90 \
    --enable-parallel \
    --enable-openacc \
    --enable-cublas=yes \
    --with-cuda-cc=70 \
    --with-cuda-runtime=11.6 \
    --with-cuda-path=$CUDA_HOME

# eeeeeeeeeeeeeeeeeeeeeeeeeeee
mpif90 -O3 -g -fallow-argument-mismatch -cpp -D__DXL_OPENACC -D__DXL_CUBLAS -D__MPI  -fopenacc -I./ -I/m100/home/userexternal/nspallan/src/devicexlib-gnu//include -I../include/  -c devxlib_cublas.f90

in gfc_format_decoder, at fortran/error.c:970
0x1027d33f gfc_format_decoder
	../../gnu-11.2.0/gcc/fortran/error.c:970
0x116cc843 pp_format(pretty_printer*, text_info*)
	../../gnu-11.2.0/gcc/pretty-print.c:1475
0x116bae87 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
	../../gnu-11.2.0/gcc/diagnostic.c:1244
0x1027cfb7 gfc_report_diagnostic
	../../gnu-11.2.0/gcc/fortran/error.c:782
0x1027cfb7 gfc_warning
	../../gnu-11.2.0/gcc/fortran/error.c:815
0x1027d59b gfc_error_opt
	../../gnu-11.2.0/gcc/fortran/error.c:1319
0x1027f2cf gfc_error(char const*, ...)
	../../gnu-11.2.0/gcc/fortran/error.c:1381
0x1035facb ambiguous_symbol
	../../gnu-11.2.0/gcc/fortran/symbol.c:3159
0x1036b28f gfc_find_sym_tree(char const*, gfc_namespace*, int, gfc_symtree**)
	../../gnu-11.2.0/gcc/fortran/symbol.c:3232
0x1036b2e3 gfc_find_symbol(char const*, gfc_namespace*, int, gfc_symbol**)
	../../gnu-11.2.0/gcc/fortran/symbol.c:3283
0x104344b3 check_against_globals
	../../gnu-11.2.0/gcc/fortran/frontend-passes.c:5809
0x1035f8a3 do_traverse_symtree
	../../gnu-11.2.0/gcc/fortran/symbol.c:4170
0x1043e003 gfc_check_externals(gfc_namespace*)
	../../gnu-11.2.0/gcc/fortran/frontend-passes.c:5855
0x1030d013 gfc_parse_file()
	../../gnu-11.2.0/gcc/fortran/parse.c:6572
0x1037f33f gfc_be_parse_file
	../../gnu-11.2.0/gcc/fortran/f95-lang.c:212
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[1]: *** [../make.inc:16: devxlib_cublas.o] Error 1
make[1]: Leaving directory '/m100/home/userexternal/nspallan/src/devicexlib-gnu/src'
make: *** [Makefile:74: libsrc] Error 2
# eeeeeeeeeeeeeeeeeeeeeeeeeeee


# GCC 12.1.0 OpenACC
spack unload --all
module purge
module load cuda/11.3
spack load gcc@12.1.0 
spack load openblas %gcc@12.1.0 
module load spectrum_mpi/10.4.0--binary 

./configure \
    F90=gfortran MPIF90=mpif90 \
    --enable-parallel \
    --enable-openacc \
    --enable-cublas=yes \
    --with-cuda-cc=70 \
    --with-cuda-runtime=11.3 \
    --with-cuda-path=$CUDA_HOME

