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 -O3 optimization flags for intel compiler (release profile) #964

Merged
merged 3 commits into from
Sep 17, 2023
Merged
Changes from all commits
Commits
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
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
Loading