Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Updated mkl flags and removed unnecessary FindMKL.cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 18, 2024
1 parent 4111a13 commit 51810a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ ELSE()
# Add in the external dependency libraries
IF (CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
SET(COMPILER_OPTIONS "Intel" CACHE STRING "Compiler identified as Intel")
FIND_PACKAGE(MKL) # Possibly not needed any more due to BLAS and LAPACK being found
ELSEIF (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
SET(COMPILER_OPTIONS "GNU" CACHE STRING "Compiler identified as gfortran")
ELSE ()
Expand Down
17 changes: 0 additions & 17 deletions cmake/Modules/FindMKL.cmake

This file was deleted.

7 changes: 5 additions & 2 deletions cmake/Modules/SetSwiftestFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ELSEIF (COMPILER_OPTIONS STREQUAL "Intel")
)
# Aligns a variable to a specified boundary and offset
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}"
Fortran "/align:all /align:array64byte" # Intel
Fortran "/align:all /align:array64byte" # Intel Windows
)
# Enables changing the variable and array memory layout
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}"
Expand All @@ -117,7 +117,10 @@ ELSEIF (COMPILER_OPTIONS STREQUAL "Intel")
)
# Enables changing the variable and array memory layout
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}"
Fortran "-pad" # Intel Windows
Fortran "-pad" # Intel
)
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}"
Fortran "-mkl" # Intel
)
ENDIF ()
ENDIF ()
Expand Down

0 comments on commit 51810a5

Please sign in to comment.