urbanjost / M_CLI2

Fortran commandline-interface using a simple prototype command
The Unlicense
20 stars 4 forks source link

Fails to compile with PGI #2

Closed awvwgk closed 3 years ago

awvwgk commented 4 years ago

Tried to compile this project with the PGI compilers. This didn't work, in case it is helpful I will share my workflow for the setup and test to reproduce the compiler errors.

NVHPC 20.7:

  1. Install with
    wget https://developer.download.nvidia.com/hpc-sdk/nvhpc_2020_207_Linux_x86_64_cuda_11.0.tar.gz
    tar xpzf nvhpc_2020_207_Linux_x86_64_cuda_11.0.tar.gz
    NVHPC_SILENT=true NVHPC_INSTALL_DIR=/opt/nvidia/hpc_sdk NVHPC_INSTALL_TYPE=single sudo nvhpc_2020_207_Linux_x86_64_cuda_11.0/install
  2. Load the PGI compilers with
    module use /opt/nvidia/hpc_sdk/modulefiles
    module load nvhpc
  3. Adjust compiler from gfortran to nvfortran
  4. make -C src
    NVFORTRAN-S-0000-Internal compiler error. size_of: attempt to get size of assumed size character       0  (M_CLI2.f90: 2012)
    0 inform,   0 warnings,   1 severes, 0 fatal for get_anyarray_cc
    NVFORTRAN-S-0000-Internal compiler error. size_of: attempt to get size of assumed size character       0  (M_CLI2.f90: 2043)
    NVFORTRAN-S-0000-Internal compiler error. size_of: attempt to get size of assumed size character       0  (M_CLI2.f90: 2043)
    0 inform,   0 warnings,   2 severes, 0 fatal for get_args_fixed_length_a_array
    NVFORTRAN-S-0081-Illegal selector - KIND value must be non-negative  (M_CLI2.f90: 2493)
    NVFORTRAN-S-0155-Duplicate TYPE IS real (M_CLI2.f90: 2493)
    0 inform,   0 warnings,   2 severes, 0 fatal for print_generic
    NVFORTRAN-S-0081-Illegal selector - KIND value must be non-negative  (M_CLI2.f90: 2555)
    NVFORTRAN-S-0155-Duplicate TYPE IS real (M_CLI2.f90: 2555)
    0 inform,   0 warnings,   2 severes, 0 fatal for print_generic

NVHPC 20.9:

  1. Install with
    wget https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc_2020_209_Linux_x86_64_cuda_11.0.tar.gz
    tar xpzf nvhpc_2020_209_Linux_x86_64_cuda_11.0.tar.gz
    NVHPC_SILENT=true NVHPC_INSTALL_DIR=/opt/nvidia/hpc_sdk NVHPC_INSTALL_TYPE=single sudo nvhpc_2020_209_Linux_x86_64_cuda_11.0/install
  2. Load the PGI compilers with
    module use /opt/nvidia/hpc_sdk/modulefiles
    module load nvhpc
  3. Adjust compiler from gfortran to nvfortran
  4. make -C src
    NVFORTRAN-S-0155-ALLOCATE Type-Specification is incompatible with type of object  strings (M_CLI2.f90: 1836)
    NVFORTRAN-S-0155-ALLOCATE Type-Specification is incompatible with type of object  strings (M_CLI2.f90: 1841)
    0 inform,   0 warnings,   2 severes, 0 fatal for get_fixed_length_any_size_cxxxx
    NVFORTRAN-S-0081-Illegal selector - KIND value must be non-negative  (M_CLI2.f90: 2293)
    NVFORTRAN-S-0155-Duplicate TYPE IS real (M_CLI2.f90: 2293)
    0 inform,   0 warnings,   2 severes, 0 fatal for print_generic
    NVFORTRAN-S-0081-Illegal selector - KIND value must be non-negative  (M_CLI2.f90: 2355)
    NVFORTRAN-S-0155-Duplicate TYPE IS real (M_CLI2.f90: 2355)
    0 inform,   0 warnings,   2 severes, 0 fatal for print_generic
awvwgk commented 3 years ago

Fixed with 598e44164eee383b8a0775aa75b7d1bb100481c3.