-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
152 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 10) | ||
add_compile_definitions(USE_CXX17=1) | ||
message("Test is using C++17 because GCC Version is less than 10") | ||
set(CMAKE_CXX_STANDARD 17) | ||
elseif (USE_CUDA AND CMAKE_CUDA_COMPILER AND CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 12) | ||
add_compile_definitions(USE_CXX17=1) | ||
message("Test is using C++17 Because CUDA Version is less than 12") | ||
set(CMAKE_CXX_STANDARD 17) | ||
else () | ||
message("Test is using C++20") | ||
set(CMAKE_CXX_STANDARD 20) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"version": 6, | ||
"include": [ | ||
"CMakeMacOSConfigPresets.json" | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "macos_cpu_release", | ||
"configurePreset": "macos_cpu_release" | ||
}, | ||
{ | ||
"name": "macos_cpu_debug", | ||
"configurePreset": "macos_cpu_debug" | ||
}, | ||
{ | ||
"name": "macos_cpu_relwithdebinfo", | ||
"configurePreset": "macos_cpu_relwithdebinfo" | ||
}, | ||
{ | ||
"name": "macos_cpu_minsizerel", | ||
"configurePreset": "macos_cpu_minsizerel" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"version": 6, | ||
"include": [ | ||
"CMakeLinuxDefaultConfigPresets.json" | ||
], | ||
"configurePresets": [ | ||
{ | ||
"name": "macos_default", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/build/cpu", | ||
"cacheVariables": { | ||
"CMAKE_POSITION_INDEPENDENT_CODE": "ON", | ||
"CMAKE_OSX_ARCHITECTURES": "arm64", | ||
"USE_CUDA": "OFF" | ||
}, | ||
"environment": { | ||
"CC": "clang", | ||
"CXX": "clang++" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
} | ||
}, | ||
{ | ||
"name": "macos_release_default", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release", | ||
"CMAKE_C_FLAGS": " -O3 -pipe", | ||
"CMAKE_CXX_FLAGS": " -O3 -pipe" | ||
} | ||
}, | ||
{ | ||
"name": "macos_relwithdebinfo_default", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo", | ||
"CMAKE_C_FLAGS": "-O3 -pipe -ggdb3", | ||
"CMAKE_CXX_FLAGS": "-O3 -pipe -ggdb3" | ||
} | ||
}, | ||
{ | ||
"name": "macos_debug_default", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug", | ||
"CMAKE_C_FLAGS": "-ggdb3 -O0", | ||
"CMAKE_CXX_FLAGS": "-ggdb3 -O0 -D_GLIBCXX_DEBUG" | ||
} | ||
}, | ||
{ | ||
"name": "macos_minsizerel_default", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "MinSizeRel", | ||
"CMAKE_C_FLAGS": "-Os -pipe -ggdb3", | ||
"CMAKE_CXX_FLAGS": "-Os -pipe -ggdb3" | ||
} | ||
}, | ||
{ | ||
"name": "macos_cpu_release", | ||
"displayName": "macos cpu release", | ||
"inherits": [ | ||
"macos_default", | ||
"macos_release_default" | ||
] | ||
}, | ||
{ | ||
"name": "macos_cpu_debug", | ||
"displayName": "macos cpu debug", | ||
"inherits": [ | ||
"macos_default", | ||
"macos_debug_default" | ||
] | ||
}, | ||
{ | ||
"name": "macos_cpu_relwithdebinfo", | ||
"displayName": "macos cpu relwithdebinfo", | ||
"inherits": [ | ||
"macos_default", | ||
"macos_relwithdebinfo_default" | ||
] | ||
}, | ||
{ | ||
"name": "macos_cpu_minsizerel", | ||
"displayName": "macos cpu minsizerel", | ||
"inherits": [ | ||
"macos_default", | ||
"macos_minsizerel_default" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters