Sign inSign up

baip/compiler

By baip

Updated about 4 years ago

GCC, Intel OneAPI, Nvidia HPC compiler images for MCCCS Topmon CI/CD

Image
0

3.0K

baip/compiler repository overview

Versions

  • latest/gcc: gcc-9.3.0
  • nvhpc: nvhpc-21.1-0
  • intel: intel-2021.1.2

Usage

Run one of the compiler images and mount the code directory:

docker run -it --rm=true -v /path/to/code:/code baip/mcworker:gcc bash  # GCC gfortran OR
docker run -it --rm=true -v /path/to/code:/code baip/mcworker:nvhpc bash  # NVHPC (PGI) nvfortran/pgfortran OR
docker run -it --rm=true -v /path/to/code:/code baip/mcworker:intel bash  # Intel OneAPI ifort or ifx

Inside the container you can call cmake to generate the build configuration:

FC=gfortran cmake -DCMAKE_BUILD_TYPE=TESTING ../code  # OR
FC=pgfortran cmake -DCMAKE_BUILD_TYPE=TESTING ../code  # OR
FC=ifort cmake -DCMAKE_BUILD_TYPE=TESTING ../code  # OR

And build the code and API documentation, run tests, and generate coverage report (only for gfortran).

make
make api-doc
ctest -R TEST*
make gcovr

Tag summary

Content type

Image

Digest

Size

221.6 MB

Last updated

over 5 years ago

docker pull baip/compiler