Skip to content

Commit 0de13b8

Browse files
authored
Merge pull request #59 from Goddard-Fortran-Ecosystem/feature/mathomp4/add-ifx-support
Add preliminary Intel LLVM Support
2 parents 8b8a483 + 60bb868 commit 0de13b8

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cmake_minimum_required(VERSION 3.0)
1212
# the library gftl-shared retain the hyphen (and lower case)
1313

1414
project (GFTL_SHARED
15-
VERSION 1.5.1
15+
VERSION 1.6.0
1616
LANGUAGES Fortran)
1717

1818

ChangeLog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## [Unreleased]
77

8+
## [1.6.0] - 2023-04-13
9+
10+
### Added
11+
12+
- Added `IntelLLVM.cmake` file as a copy of `Intel.cmake` to support the LLVM Intel compiler frontends
13+
14+
### Changed
15+
16+
- Updated gFTL submodule to v1.10.0
17+
818
## [1.5.1] - 2023-01-23
919

1020
### Fixed

cmake/IntelLLVM.cmake

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Compiler specific flags for Intel Fortran compiler
2+
3+
if(WIN32)
4+
set(no_optimize "-Od")
5+
set(check_all "-check:all")
6+
set(cpp "-fpp")
7+
set(save-temps "-Qsave-temps")
8+
set(disable_warning_for_long_names "-Qdiag-disable:5462")
9+
else()
10+
set(no_optimize "-O0")
11+
set(check_all "-check all")
12+
set(cpp "-cpp")
13+
set(save-temps "-save-temps")
14+
set(disable_warning_for_long_names "-diag-disable 5462")
15+
endif()
16+
17+
set(traceback "-traceback")
18+
19+
set(CMAKE_Fortran_Flags_ALL "${cpp} ${disable_warning_for_long_names}")
20+
set(CMAKE_Fortran_FLAGS_DEBUG "${no_optimize} ${check_all} ${save-temps} ${CMAKE_Fortran_Flags_ALL}")
21+
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 ${CMAKE_Fortran_Flags_ALL}")
22+
23+
add_definitions(-D_INTEL)
24+
add_definitions(-D__ifort_18)

0 commit comments

Comments
 (0)