-
Notifications
You must be signed in to change notification settings - Fork 118
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
Support IntelLLVM compiler #353
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e587b0e
Add support for IntelLLVM compiler
DusanJovic-NOAA 6fa85b8
Merge remote-tracking branch 'origin/dev/emc' into support_intelllvm
DusanJovic-NOAA 55756ab
Update cmake/compiler_flags_IntelLLVM_Fortran.cmake
DusanJovic-NOAA 980a750
Workaround in driver/fvGFS/atmosphere.F90 for ifx ICE is not needed a…
DusanJovic-NOAA 1a8820f
Initialize Atm%q_con to zero.
DusanJovic-NOAA f6f83c8
Move initialization of q_con if USE_COND is not defined
DusanJovic-NOAA 9eaf2c2
Merge remote-tracking branch 'origin/dev/emc' into support_intelllvm
DusanJovic-NOAA 6b451f1
Merge remote-tracking branch 'origin/dev/emc' into support_intelllvm
DusanJovic-NOAA b947391
Use one set of OMP directives for both Intel and GNU compilers
DusanJovic-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Precision-based Fortran compiler flags | ||
set(R4_flags "-real-size 32") # Fortran flags for 32BIT precision | ||
set(R8_flags "-real-size 64") # Fortran flags for 64BIT precision | ||
set(R8_flags "${R8_flags} -no-prec-div") | ||
|
||
# Intel Fortran | ||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -traceback -fpp -fno-alias -auto -safe-cray-ptr -ftz -assume byterecl -nowarn -align array64byte -qno-opt-dynamic-align ${${kind}_flags}") | ||
|
||
set(CMAKE_Fortran_FLAGS_REPRO "-O2 -debug minimal -fp-model consistent -qoverride-limits") | ||
|
||
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -debug minimal -fp-model strict -qoverride-limits") | ||
|
||
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv -init=snan,arrays") | ||
|
||
set(CMAKE_Fortran_LINK_FLAGS "") | ||
|
||
if(NOT CMAKE_BUILD_TYPE MATCHES "^(Debug|Repro)$") | ||
if(AVX2) | ||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -march=core-avx2") | ||
elseif(SIMDMULTIARCH) | ||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -axSSE4.2,CORE-AVX2") | ||
endif() | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding another ifndef block here, you can safely put the
Atm%q_con=0
, along with proper documentation, where it is allocated at line 1555. In this case, you are not initializing the memory in an OpenMP region.