-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
[libcxx] Add cache file for the GPU build #99348
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Configuration options for libcxx. | ||
set(LIBCXX_ABI_VERSION 2 CACHE STRING "") | ||
set(LIBCXX_CXX_ABI libcxxabi CACHE STRING "") | ||
set(LIBCXX_ENABLE_EXCEPTIONS OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_LOCALIZATION OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_MONOTONIC_CLOCK ON CACHE BOOL "") | ||
set(LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS ON CACHE BOOL "") | ||
set(LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_RTTI OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_SHARED OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "") | ||
set(LIBCXX_ENABLE_STATIC ON CACHE BOOL "") | ||
set(LIBCXX_ENABLE_THREADS OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_UNICODE OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_WIDE_CHARACTERS OFF CACHE BOOL "") | ||
set(LIBCXX_HAS_TERMINAL_AVAILABLE OFF CACHE BOOL "") | ||
set(LIBCXX_INSTALL_LIBRARY ON CACHE BOOL "") | ||
set(LIBCXX_LIBC "llvm-libc" CACHE STRING "") | ||
set(LIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY ON CACHE BOOL "") | ||
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "") | ||
|
||
# Configuration options for libcxxabi. | ||
set(LIBCXXABI_BAREMETAL ON CACHE BOOL "") | ||
set(LIBCXXABI_ENABLE_EXCEPTIONS OFF CACHE BOOL "") | ||
set(LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS OFF CACHE BOOL "") | ||
set(LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "") | ||
set(LIBCXXABI_ENABLE_THREADS OFF CACHE BOOL "") | ||
set(LIBCXXABI_USE_LLVM_UNWINDER OFF CACHE BOOL "") | ||
|
||
# Necessary compile flags for AMDGPU. | ||
set(LIBCXX_ADDITIONAL_COMPILE_FLAGS | ||
"-nogpulib;-flto;-fconvergent-functions;-Xclang;-mcode-object-version=none" CACHE STRING "") | ||
set(LIBCXXABI_ADDITIONAL_COMPILE_FLAGS | ||
"-nogpulib;-flto;-fconvergent-functions;-Xclang;-mcode-object-version=none" CACHE STRING "") | ||
set(CMAKE_REQUIRED_FLAGS "-nogpulib -nodefaultlibs" CACHE STRING "") |
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,36 @@ | ||
# Configuration options for libcxx. | ||
set(LIBCXX_ABI_VERSION 2 CACHE STRING "") | ||
set(LIBCXX_CXX_ABI libcxxabi CACHE STRING "") | ||
set(LIBCXX_ENABLE_EXCEPTIONS OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_LOCALIZATION OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_MONOTONIC_CLOCK ON CACHE BOOL "") | ||
set(LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS ON CACHE BOOL "") | ||
set(LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_RTTI OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_SHARED OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "") | ||
set(LIBCXX_ENABLE_STATIC ON CACHE BOOL "") | ||
set(LIBCXX_ENABLE_THREADS OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_UNICODE OFF CACHE BOOL "") | ||
set(LIBCXX_ENABLE_WIDE_CHARACTERS OFF CACHE BOOL "") | ||
set(LIBCXX_HAS_TERMINAL_AVAILABLE OFF CACHE BOOL "") | ||
set(LIBCXX_INSTALL_LIBRARY ON CACHE BOOL "") | ||
set(LIBCXX_LIBC "llvm-libc" CACHE STRING "") | ||
set(LIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY ON CACHE BOOL "") | ||
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "") | ||
|
||
# Configuration options for libcxxabi. | ||
set(LIBCXXABI_BAREMETAL ON CACHE BOOL "") | ||
set(LIBCXXABI_ENABLE_EXCEPTIONS OFF CACHE BOOL "") | ||
set(LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS OFF CACHE BOOL "") | ||
set(LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "") | ||
set(LIBCXXABI_ENABLE_THREADS OFF CACHE BOOL "") | ||
set(LIBCXXABI_USE_LLVM_UNWINDER OFF CACHE BOOL "") | ||
|
||
# Necessary compile flags for NVPTX. | ||
set(LIBCXX_ADDITIONAL_COMPILE_FLAGS | ||
"-nogpulib;-flto;-fconvergent-functions;--cuda-feature=+ptx63" CACHE STRING "") | ||
set(LIBCXXABI_ADDITIONAL_COMPILE_FLAGS | ||
"-nogpulib;-flto;-fconvergent-functions;--cuda-feature=+ptx63" CACHE STRING "") | ||
set(CMAKE_REQUIRED_FLAGS "-nogpulib -nodefaultlibs -flto -c" CACHE STRING "") |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you sort the entries? Same in the other file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'm guessing sorted alphabetically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes