Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for cmake build system. #11

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove cmake/configure_theia.*. set AVX2 to OFF in cmake/configure_li…
…nux.gnu
  • Loading branch information
DusanJovic-NOAA committed Nov 23, 2019
commit 82412ab82bde39660e54b22f6d9cbee01dec75a4
1 change: 0 additions & 1 deletion cmake/GNU.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ else()
message("OPENMP is disabled")
endif()


if(AVX2)
DusanJovic-NOAA marked this conversation as resolved.
Show resolved Hide resolved
message("AVX2 is ENABLED")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}")
Expand Down
8 changes: 4 additions & 4 deletions cmake/Intel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ else()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -xCORE-AVX2 -qno-opt-dynamic-align")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -xCORE-AVX2 -qno-opt-dynamic-align")
else()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -xHOST -qno-opt-dynamic-align")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -xHOST -qno-opt-dynamic-align")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -qno-opt-dynamic-align")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -qno-opt-dynamic-align")
endif()
endif()

Expand Down Expand Up @@ -79,12 +79,12 @@ else()
message("OPENMP is disabled")
endif()


if(AVX2)
message("AVX2 is ENABLED")
else()
message("AVX2 is disabled")
endif()


if(INLINE_POST)
message("INLINE_POST is ENABLED")
else()
Expand Down
5 changes: 3 additions & 2 deletions cmake/configure_linux.gnu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ option(REPRO "Enable REPRO mode" OFF)
option(VERBOSE "Enable VERBOSE mode" OFF)
option(32BIT "Enable 32BIT (single precision arithmetic in dycore)" OFF)
option(OPENMP "Enable OpenMP threading" ON)
option(AVX2 "Enable AVX2 instruction set" ON)
option(AVX2 "Enable AVX2 instruction set" OFF)

option(INLINE_POST "Enable inline post" OFF)

include( cmake/${CMAKE_Fortran_COMPILER_ID}.cmake )

set(NEMSIO_INC $ENV{NEMSIO_INC})
set(NCEP_LIBS $ENV{NEMSIO_LIB} $ENV{BACIO_LIB4} $ENV{SP_LIBd} $ENV{W3EMC_LIBd} $ENV{W3NCO_LIBd})
set(POST_INC $ENV{POST_INC})
set(NCEP_LIBS $ENV{POST_LIB} $ENV{NEMSIO_LIB} $ENV{G2_LIB4} $ENV{G2TMPL_LIB} $ENV{BACIO_LIB4} $ENV{SP_LIBd} $ENV{W3EMC_LIBd} $ENV{W3NCO_LIBd} $ENV{CRTM_LIB} $ENV{PNG_LIB} $ENV{JASPER_LIB} $ENV{Z_LIB})

set(ESMF_MOD ${ESMF_F90COMPILEPATHS})
set(ESMF_LIBS "${ESMF_F90ESMFLINKRPATHS} ${ESMF_F90ESMFLINKPATHS} ${ESMF_F90ESMFLINKLIBS}")
Expand Down
32 changes: 0 additions & 32 deletions cmake/configure_theia.gnu.cmake

This file was deleted.

32 changes: 0 additions & 32 deletions cmake/configure_theia.intel.cmake

This file was deleted.

32 changes: 0 additions & 32 deletions cmake/configure_theia.pgi.cmake

This file was deleted.