Skip to content

Commit

Permalink
Merge pull request #20 from eth-cscs/cmake_fix
Browse files Browse the repository at this point in the history
Remove mtune=native as it breaks generic x86_64 compilation support
  • Loading branch information
simonpintarelli authored May 5, 2023
2 parents 5e26703 + 8901cff commit bb84528
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cmake_policy(SET CMP0048 NEW)
project(costa
DESCRIPTION "Communication Optimal Shuffle and Transpose Algorithms"
HOMEPAGE_URL "https://github.com/eth-cscs/COSTA"
VERSION 2.2.1
VERSION 2.2.2
LANGUAGES CXX)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
Expand Down Expand Up @@ -58,7 +58,8 @@ adjust_mpiexec_flags()
# OpenMP
find_package(OpenMP COMPONENTS CXX REQUIRED)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -funroll-loops -march=native -DNDEBUG")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -funroll-loops -DNDEBUG")


# Bundled dependencies
#
Expand Down

0 comments on commit bb84528

Please sign in to comment.