Skip to content

Commit

Permalink
create branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nychiang committed Jan 24, 2025
1 parent 74aab8b commit f9ef443
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cmake_minimum_required (VERSION 3.18)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -lstdc++fs ")

set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_CUDA_SEPARABLE_COMPILATION ON)
Expand Down Expand Up @@ -127,7 +129,7 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

target_compile_features(hiop_options
INTERFACE
cxx_std_14
cxx_std_17
cxx_alignas
cxx_alignof
cxx_attributes
Expand Down Expand Up @@ -237,8 +239,9 @@ if(HIOP_USE_GPU)
check_language(CUDA)

if(NOT DEFINED CMAKE_CUDA_STANDARD)
set(CMAKE_CUDA_STANDARD 14)
set(CMAKE_CUDA_STANDARD 17)
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
set(CUDA_NVCC_FLAGS "-std=c++17")
endif()

if(NOT CMAKE_CUDA_ARCHITECTURES)
Expand Down

0 comments on commit f9ef443

Please sign in to comment.