Skip to content

Commit

Permalink
Only use -O3 flag for intel compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
artemis-beta committed Jan 16, 2025
1 parent cfcacc0 commit b899ddd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/futs_intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.31.x'
- name: Setup Intel ifort compiler
- name: Setup Intel ifx compiler
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/futs_lfortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.31.x'
- name: Setup Intel ifort compiler
- name: Setup lfortran compiler
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/futs_nvfortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.31.x'
- name: Setup Intel ifort compiler
- name: Setup NVidea Fortran compiler
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ endif()
if(BUILD_TESTS)
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
set(CMAKE_Fortran_FLAGS "-Wall -Wextra -Wno-compare-reals -Wno-maybe-uninitialized -Wno-uninitialized -O3 -g -fprofile-arcs -ftest-coverage")
else()
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
set(CMAKE_Fortran_FLAGS "-O3")
endif()
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/fortutf.cmake)
Expand Down

0 comments on commit b899ddd

Please sign in to comment.