Hi,
I’m trying to resolve Clangd’s intellisense error: threre are some template related errors.e.g.
https://github.com/HPC02/cuda_perf/blob/master/src/cute_gemm/gemm_tile_naive_cute.cu#L24
Project’s .clangd configurations:
CompileFlags:
CompilationDatabase: build
Compiler: clangd
Add:
# Configure CUDA
- --cuda-path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.1
- --no-cuda-version-check
- --cuda-gpu-arch=sm_86
\# CUDA Headers
- -IC:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.1\\include
- -I${workspaceFolder}/3rd/cutlass/include
\# Languages
- -xcuda
- -std=c++20
- -ferror-limit=0
- -D__INTELLISENSE_\_
- -D__CLANGD_\_
- -DCUDA_13_0_SM86_FEATURES_SUPPORTED
- -DCUTLASS_ARCH_MMA_SM86_SUPPORTED=1
- -D_LIBCUDACXX_STD_VER=20
- -D__CUDACC_VER_MAJOR_\_=13
- -D__CUDACC_VER_MINOR_\_=1
- -D__CUDA_ARCH_\_=860
- -D__CUDA_ARCH_FEAT_SM86_ALL
- -D__CUDACC_\_
- -D__NVCC_\_
- -D__NVCC_DIAG_PRAGMA_SUPPORTED_\_
- -DCUTE_HOST_DEVICE=\__host_\_\\ \__device_\_
- -DCUTE_DEVICE=\__device_\_
- -DCUTE_HOST=\__host_\_
- -Wno-unneeded-internal-declaration
- -Wno-invalid-constexpr
- -Wno-unknown-cuda-version
- -Wno-unknown-attributes
- -Wno-unknown-pragmas
Remove:
# strip CUDA fatbin args
- -Xfatbin*
# strip CUDA arch flags
- -gencode*
- --generate-code*
\# strip CUDA flags unknown to clang
- -ccbin\*
- --compiler-options\*
- -Xcompiler\*
- -Xptxas\*
- --expt-extended-lambda
- --expt-relaxed-constexpr
- -forward-unknown-to-host-compiler
- -Werror=cross-execution-space-call
- --use_fast_math
- -allow-unsupported-compiler
- -rdc=\*
- -m64
- --relocatable-device-code=\*
- --options-file
\# strip MSVC specific flags
- /GR\*
- /EHsc\*
- /fp:\*
- /W\*
- /utf-8\*
- /wd\*
InlayHints:
Enabled: true
ParameterHints: true
TypeHints: true
DeducedTypes: true
Diagnostics:
ClangTidy:
Remove: [
modernize-use-trailing-return-type,
readability-identifier-naming,
google-runtime-int,
cppcoreguidelines-avoid-magic-numbers
]
UnusedIncludes: None
MissingIncludes: None
Index:
StandardLibrary: false
Hover:
ShowAKA: true
- -Xptxas=-v
- -Xcompiler=*
- -Xcudafe
- --diag_suppress=
