LLNL / blt

A streamlined CMake build system foundation for developing HPC software
BSD 3-Clause "New" or "Revised" License
250 stars 59 forks source link

Create Fortran smoke test for OpenMP + Cuda #255

Open kennyweiss opened 5 years ago

kennyweiss commented 5 years ago

Based on user request. Could be exercised by enabling Fortran in our blueos_ray host-config.

Related issues: #251, #163

white238 commented 5 years ago

This may already work if you add the following lines to the host-config:

set(ENABLE_FORTRAN ON CACHE BOOL "")

set(CMAKE_Fortran_COMPILER "/usr/tce/packages/gcc/gcc-4.9.3/bin/gfortran" CACHE PATH "") set(MPI_Fortran_COMPILER "/usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-gcc-4.9.3/bin/mpigfortran" CACHE PATH "")

and also add a smoke test obviously...

kennyweiss commented 5 years ago

Thanks @white238 - I was able to build and test blt on blueos with clang+ gfortran using the llnl-ray host-config with your suggested additions.

More details that I accidentally omitted: The request was specifically for clang + xlf

kennyweiss commented 5 years ago

Is anyone interested in developing the Fortran smoke test for openmp and cuda? (@ltaylor16? @aaroncblack? others?)

The C++ ones can be found here: https://github.com/LLNL/blt/tree/master/tests/smoke

kennyweiss commented 5 years ago

I had a second user request for this set of smoke tests.

aaroncblack commented 5 years ago

@kennyweiss - I can look at your C++ one and write an equivalent FORTRAN one.

kennyweiss commented 5 years ago

Thanks @aaroncblack!