Skip to content

Commit

Permalink
Add -O3 optimization flags for Intel compiler, release profile (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz authored Sep 17, 2023
2 parents 6811dfe + 1a5ffb6 commit 498bc48
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/fpm_compiler.F90
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ module fpm_compiler
flag_intel_warn = " -warn all", &
flag_intel_check = " -check all", &
flag_intel_debug = " -O0 -g", &
flag_intel_opt = " -O3", &
flag_intel_fp = " -fp-model precise -pc64", &
flag_intel_align = " -align all", &
flag_intel_limit = " -error-limit 1", &
Expand All @@ -189,6 +190,7 @@ module fpm_compiler
flag_intel_warn_win = " /warn:all", &
flag_intel_check_win = " /check:all", &
flag_intel_debug_win = " /Od /Z7", &
flag_intel_opt_win = " /O3", &
flag_intel_fp_win = " /fp:precise", &
flag_intel_align_win = " /align:all", &
flag_intel_limit_win = " /error-limit:1", &
Expand Down Expand Up @@ -280,6 +282,7 @@ subroutine get_release_compile_flags(id, flags)

case(id_intel_classic_nix)
flags = &
flag_intel_opt//&
flag_intel_fp//&
flag_intel_align//&
flag_intel_limit//&
Expand All @@ -290,6 +293,7 @@ subroutine get_release_compile_flags(id, flags)

case(id_intel_classic_mac)
flags = &
flag_intel_opt//&
flag_intel_fp//&
flag_intel_align//&
flag_intel_limit//&
Expand All @@ -300,7 +304,8 @@ subroutine get_release_compile_flags(id, flags)

case(id_intel_classic_windows)
flags = &
& flag_intel_fp_win//&
flag_intel_opt_win//&
flag_intel_fp_win//&
flag_intel_align_win//&
flag_intel_limit_win//&
flag_intel_pthread_win//&
Expand All @@ -310,6 +315,7 @@ subroutine get_release_compile_flags(id, flags)

case(id_intel_llvm_nix)
flags = &
flag_intel_opt//&
flag_intel_fp//&
flag_intel_align//&
flag_intel_limit//&
Expand All @@ -320,6 +326,7 @@ subroutine get_release_compile_flags(id, flags)

case(id_intel_llvm_windows)
flags = &
flag_intel_opt_win//&
flag_intel_fp_win//&
flag_intel_align_win//&
flag_intel_limit_win//&
Expand Down

0 comments on commit 498bc48

Please sign in to comment.