Skip to content

Commit

Permalink
Merge pull request #62 from Goddard-Fortran-Ecosystem/feature/mathomp…
Browse files Browse the repository at this point in the history
…4/add-ifx-support

Add preliminary Intel LLVM Support
  • Loading branch information
tclune authored Apr 17, 2023
2 parents f608019 + 1dc97c8 commit ffae609
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12)

project (YAFYAML
VERSION 1.0.7
VERSION 1.1.0
LANGUAGES Fortran)

# Most users of this software do not (should not?) have permissions to
Expand All @@ -21,11 +21,11 @@ endif()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if (NOT TARGET GFTL::gftl)
find_package (GFTL REQUIRED VERSION 1.7.2)
find_package (GFTL REQUIRED VERSION 1.10.0)
endif ()

if (NOT TARGET GFTL_SHARED::gftl-shared)
find_package (GFTL_SHARED REQUIRED VERSION 1.4.1)
find_package (GFTL_SHARED REQUIRED VERSION 1.6.0)
endif ()
find_package (PFUNIT 4.2 QUIET)

Expand Down
11 changes: 11 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.0] - 2023-04-17

### Added

- Added `IntelLLVM.cmake` file as a copy of `Intel.cmake` to support the LLVM Intel compiler frontends

### Changed

- Updated required gFTL version to v1.10.0
- Updated required gFTL-shared version to v1.6.0

## [1.0.7] - 2023-02-07

### Fixed
Expand Down
23 changes: 23 additions & 0 deletions cmake/IntelLLVM.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Compiler specific flags for Intel Fortran compiler

if(WIN32)
set(no_optimize "-Od")
set(check_all "-check:all")
else()
set(no_optimize "-O0")
set(check_all "-check all")
endif()


set(disable_warning_for_long_names "-diag-disable 5462")
set(traceback "-traceback")
set(cpp "-cpp")


set(CMAKE_Fortran_FLAGS_DEBUG "${no_optimize}")
set(CMAKE_Fortran_FLAGS_RELEASE "-O3")
set(CMAKE_Fortran_FLAGS "-g ${cpp} ${traceback} ${check_all} ${disable_warning_for_long_names} -save-temps")
#set(CMAKE_Fortran_FLAGS "-g ${cpp} ${traceback} ${check_all} ${disable_warning_for_long_names}")

add_definitions(-D_INTEL)
add_definitions(-D__ifort_18)

0 comments on commit ffae609

Please sign in to comment.