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 preliminary Intel LLVM Support #62

Merged
merged 4 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
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
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)