-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFC: Add MLIR-TensorRT 'CMakePresets.json' and update build documenta…
…tion (#312) This change adds a CMake presets file to MLIR-TensorRT, which helps to simplify the initial CMake setup considerably. The build documentation is updated to use this feature, and some additional notes are added to describe how to control the TensorRT version that is used for build & test.
- Loading branch information
1 parent
b9a479a
commit c643ec3
Showing
3 changed files
with
101 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"version": 6, | ||
"include": [], | ||
"configurePresets": [ | ||
{ | ||
"name": "base", | ||
"generator": "Ninja", | ||
"binaryDir": "build", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo", | ||
"LLVM_ENABLE_ASSERTIONS": "ON", | ||
"CPM_SOURCE_CACHE": "${sourceDir}/.cache.cpm", | ||
"CPM_USE_NAMED_CACHE_DIRECTORIES": "ON" | ||
} | ||
}, | ||
{ | ||
"name": "ninja-llvm", | ||
"displayName": "Ninja RelWithDebInfo LLVM", | ||
"generator": "Ninja", | ||
"binaryDir": "build", | ||
"inherits": "base", | ||
"cacheVariables": { | ||
"CMAKE_C_COMPILER": "clang", | ||
"CMAKE_CXX_COMPILER": "clang++", | ||
"LLVM_USE_LINKER": "lld" | ||
} | ||
}, | ||
{ | ||
"name": "ninja-llvm-release", | ||
"inherits": "ninja-llvm", | ||
"displayName": "Ninja Release LLVM", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
} | ||
}, | ||
{ | ||
"name": "ninja-llvm-debug", | ||
"inherits": "ninja-llvm", | ||
"displayName": "Ninja Release LLVM", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
}, | ||
{ | ||
"name": "ninja-gcc", | ||
"displayName": "Ninja RelWithDebInfo GCC", | ||
"generator": "Ninja", | ||
"binaryDir": "build-gcc", | ||
"inherits": "base", | ||
"cacheVariables": { | ||
"CMAKE_C_COMPILER": "gcc", | ||
"CMAKE_CXX_COMPILER": "g++" | ||
} | ||
} | ||
] | ||
} |
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