Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Issue while using new PGI compiler via NVIDIA HPC SDK #411

Description

@pramodk

PGI compilers are no longer available and they are now part of NVIDIA HPC SDK. Compiler names are now changed (nvc, nvc++, nvfortran) and hence CMake no longer detects them:

$ cmake ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /gpfs/bbp.cscs.ch/home/kumbhar/tmp/soft/install/linux-rhel7-x86_64/gcc-8.3.0/nvhpc-20.9-rrs2t4/Linux_x86_64/20.9/compilers/bin/nvc
-- Check for working C compiler: /gpfs/bbp.cscs.ch/home/kumbhar/tmp/soft/install/linux-rhel7-x86_64/gcc-8.3.0/nvhpc-20.9-rrs2t4/Linux_x86_64/20.9/compilers/bin/nvc -- broken
CMake Error at /gpfs/bbp.cscs.ch/ssd/apps/hpc/jenkins/deploy/tools/2020-02-01/linux-rhel7-x86_64/gcc-8.3.0/cmake-3.15.3-cccsbe7omc/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/gpfs/bbp.cscs.ch/home/kumbhar/tmp/soft/install/linux-rhel7-x86_64/gcc-8.3.0/nvhpc-20.9-rrs2t4/Linux_x86_64/20.9/compilers/bin/nvc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /gpfs/bbp.cscs.ch/home/kumbhar/tmp/CoreNeuron/build/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/gmake cmTC_3e5d4/fast && /usr/bin/gmake -f CMakeFiles/cmTC_3e5d4.dir/build.make CMakeFiles/cmTC_3e5d4.dir/build
    gmake[1]: Entering directory `/gpfs/bbp.cscs.ch/home/kumbhar/tmp/CoreNeuron/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_3e5d4.dir/testCCompiler.c.o
    /gpfs/bbp.cscs.ch/home/kumbhar/tmp/soft/install/linux-rhel7-x86_64/gcc-8.3.0/nvhpc-20.9-rrs2t4/Linux_x86_64/20.9/compilers/bin/nvc    -o CMakeFiles/cmTC_3e5d4.dir/testCCompiler.c.o   -c /gpfs/bbp.cscs.ch/home/kumbhar/tmp/CoreNeuron/build/CMakeFiles/CMakeTmp/testCCompiler.c
    nvc-Error-Please run makelocalrc to complete your installation
    gmake[1]: *** [CMakeFiles/cmTC_3e5d4.dir/testCCompiler.c.o] Error 1
    gmake[1]: Leaving directory `/gpfs/bbp.cscs.ch/home/kumbhar/tmp/CoreNeuron/build/CMakeFiles/CMakeTmp'
    gmake: *** [cmTC_3e5d4/fast] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions