This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #586 from senior-zero/rdc_without_cdp
Add option to opt out CDP
- Loading branch information
Showing
2 changed files
with
68 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# https://clangd.llvm.org/config | ||
|
||
# Apply a config conditionally to all C files | ||
If: | ||
PathMatch: .*\.(c|h)$ | ||
|
||
--- | ||
|
||
# Apply a config conditionally to all C++ files | ||
If: | ||
PathMatch: .*\.(c|h)pp | ||
|
||
--- | ||
|
||
# Apply a config conditionally to all CUDA files | ||
If: | ||
PathMatch: .*\.cuh? | ||
CompileFlags: | ||
Add: | ||
# Allow variadic CUDA functions | ||
- "-Xclang=-fcuda-allow-variadic-functions" | ||
|
||
--- | ||
|
||
# Tweak the clangd parse settings for all files | ||
CompileFlags: | ||
Compiler: clang++ | ||
CompilationDatabase: . | ||
Add: | ||
- -x | ||
- cuda | ||
# report all errors | ||
- "-ferror-limit=0" | ||
- "-ftemplate-backtrace-limit=0" | ||
Remove: | ||
- -stdpar | ||
# strip CUDA fatbin args | ||
- "-Xfatbin*" | ||
- "-gpu=*" | ||
- "--diag_suppress*" | ||
# strip CUDA arch flags | ||
- "-gencode*" | ||
- "--generate-code*" | ||
# strip gcc's -fcoroutines | ||
- -fcoroutines | ||
# strip CUDA flags unknown to clang | ||
- "-ccbin*" | ||
- "--compiler-options*" | ||
- "--expt-extended-lambda" | ||
- "--expt-relaxed-constexpr" | ||
- "-forward-unknown-to-host-compiler" | ||
- "-Werror=cross-execution-space-call" | ||
Diagnostics: | ||
Suppress: | ||
- "variadic_device_fn" | ||
- "attributes_not_allowed" | ||
# The NVHPC version of _NVCXX_EXPAND_PACK macro triggers this clang error. | ||
# Temporarily suppressing it, but should probably fix | ||
- "template_param_shadow" |
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