Git Product home page Git Product logo

Comments (6)

HighCommander4 avatar HighCommander4 commented on September 26, 2024

Can you share logs?

from clangd.

basava70 avatar basava70 commented on September 26, 2024

@HighCommander4 Thanks a lot for the comment!!
Here are the logs for
.clangd file

CompileFlags:
  Remove:
    - -forward-unknown-to-host-compiler
    - --generate-code*
[ERROR][2024-05-24 20:46:40] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:46:40.953] <<< {"id":23,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[]},"range":{"end":{"character":12,"line":1},"start":{"character":12,"line":1}},"textDocument":{"uri":"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu"}}}\n\n'
[ERROR][2024-05-24 20:46:40] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:46:40.953] <-- textDocument/codeAction(23)\n"
[ERROR][2024-05-24 20:46:40] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:40.953] config note at /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/.clangd:1:0: Parsing config fragment\n"
[ERROR][2024-05-24 20:46:40] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:40.953] config note at /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/.clangd:1:0: Parsed 1 fragments from file\nV[20:46:40.953] Config fragment: compiling /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/.clangd:1 -> 0x0000712288951190 (trusted=false)\nI[20:46:40.953] --> textDocument/publishDiagnostics\n"
[ERROR][2024-05-24 20:46:40] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:40.970] Released memory via malloc_trim\n"
[ERROR][2024-05-24 20:46:40] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:46:40.970] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/.clangd"}}\n\nV[20:46:40.970] ASTWorker running codeAction on version 0 of /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\nI[20:46:40.970] --> reply:textDocument/codeAction(23) 17 ms\nV[20:46:40.970] >>> {"id":23,"jsonrpc":"2.0","result":[]}\n\n'
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:46:42.034] <<< {"jsonrpc":"2.0","method":"textDocument/didSave","params":{"textDocument":{"uri":"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu"}}}\n\nI[20:46:42.034] <-- textDocument/didSave\nI[20:46:42.034] File version went from 0 to 0\n'
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:46:42.086] ASTWorker building file /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0 with command \n[/home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/build]\n/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvcc -std=c++17 -x cu -c -o CMakeFiles/run_matrix_multiplication.dir/main.cu.o -resource-dir=/home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18 -- /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.088] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -aux-triple nvptx64-nvidia-cuda -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name main.cu -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/build -fcoverage-compilation-dir=/home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/build -resource-dir /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18 -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include/cuda_wrappers -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++17 -fdeprecated-macro -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -no-round-trip-args -cuid=930992ac385f32b9 -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x cuda /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.088] Rebuilding invalidated preamble for /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0 (previous was version 0)\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.091] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'dim3'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.091] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'dim3'\nV[20:46:42.091] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.091] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.091] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.091] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.091] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.091] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.092] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.092] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.092] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\nV[20:46:42.092] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\nV[20:46:42.092] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\nV[20:46:42.092] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\nV[20:46:42.092] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\nV[20:46:42.092] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\nV[20:46:42.092] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.101] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in template: no member named 'value' in 'std::__static_abs<1000000000>'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.118] indexed file AST for /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0:\n  symbol slab: 2 symbols, 4680 bytes\n  ref slab: 21 symbols, 68 refs, 4992 bytes\n  relations slab: 0 relations, 24 bytes\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.118] Build dynamic index for main-file symbols with estimated memory usage of 14872 bytes\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:46:42.119] --> textDocument/publishDiagnostics\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.119] >>> {\"jsonrpc\":\"2.0\",\"method\":\"textDocument/publishDiagnostics\",\"params\":{\"diagnostics\":[{\"code\":\"drv_no_cuda_installation\",\"message\":\"Cannot find CUDA installation; provide its path via '--cuda-path', or pass '-nocudainc' to build without CUDA includes\",\"range\":{\"end\":{\"character\":0,\"line\":0},\"start\":{\"character\":0,\"line\":0}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"drv_no_cuda_libdevice\",\"message\":\"Cannot find libdevice for sm_35; provide path to different CUDA installation via '--cuda-path', or pass '-nocudalib' to build without linking with libdevice\",\"range\":{\"end\":{\"character\":0,\"line\":0},\"start\":{\"character\":0,\"line\":0}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[17]')\",\"range\":{\"end\":{\"character\":16,\"line\":57},\"start\":{\"character\":14,\"line\":57}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":61},\"start\":{\"character\":12,\"line\":61}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":62},\"start\":{\"character\":12,\"line\":62}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":63},\"start\":{\"character\":12,\"line\":63}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[6]')\",\"range\":{\"end\":{\"character\":14,\"line\":64},\"start\":{\"character\":12,\"line\":64}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[6]')\",\"range\":{\"end\":{\"character\":14,\"line\":65},\"start\":{\"character\":12,\"line\":65}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[6]')\",\"range\":{\"end\":{\"character\":14,\"line\":66},\"start\":{\"character\":12,\"line\":66}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"no_member\",\"message\":\"In template: no member named 'value' in 'std::__static_sign<1000000000>'\",\"range\":{\"end\":{\"character\":22,\"line\":75},\"start\":{\"character\":19,\"line\":75}},\"relatedInformation\":[{\"location\":{\"range\":{\"end\":{\"character\":41,\"line\":273},\"start\":{\"character\":36,\"line\":273}},\"uri\":\"file:///usr/include/c%2B%2B/13/ratio\"},\"message\":\"Error occurred here\"},{\"location\":{\"range\":{\"end\":{\"character\":23,\"line\":278},\"start\":{\"character\":20,\"line\":278}},\"uri\":\"file:///usr/include/c%2B%2B/13/ratio\"},\"message\":\"In instantiation of static data member 'std::ratio<1, 1000000000>::num' requested here\"},{\"location\":{\"range\":{\"end\":{\"character\":22,\"line\":516},\"start\":{\"character\":15,\"line\":516}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"In instantiation of template class 'std::ratio<1, 1000000000>' requested here\"},{\"location\":{\"range\":{\"end\":{\"character\":26,\"line\":929},\"start\":{\"character\":18,\"line\":929}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"In instantiation of template class 'std::chrono::duration<long, std::ratio<1, 1000000000>>' requested here\"},{\"location\":{\"range\":{\"end\":{\"character\":22,\"line\":75},\"start\":{\"character\":19,\"line\":75}},\"uri\":\"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\"},\"message\":\"In instantiation of template class 'std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>' requested here\"}],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[26]')\",\"range\":{\"end\":{\"character\":14,\"line\":79},\"start\":{\"character\":12,\"line\":79}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":91},\"start\":{\"character\":12,\"line\":91}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":105},\"start\":{\"character\":12,\"line\":105}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('time_point' (aka 'time_point<std::chrono::system_clock, duration<long, ratio<1, 1000000000>>>') and 'time_point')\",\"range\":{\"end\":{\"character\":34,\"line\":107},\"start\":{\"character\":33,\"line\":107}},\"relatedInformation\":[{\"location\":{\"range\":{\"end\":{\"character\":12,\"line\":624},\"start\":{\"character\":4,\"line\":624}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/stl_iterator.h\"},\"message\":\"Candidate template ignored: could not match 'reverse_iterator' against 'time_point'\"},{\"location\":{\"range\":{\"end\":{\"character\":12,\"line\":1799},\"start\":{\"character\":4,\"line\":1799}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/stl_iterator.h\"},\"message\":\"Candidate template ignored: could not match 'move_iterator' against 'time_point'\"},{\"location\":{\"range\":{\"end\":{\"character\":14,\"line\":709},\"start\":{\"character\":6,\"line\":709}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"Candidate template ignored: could not match 'duration' against 'time_point'\"},{\"location\":{\"range\":{\"end\":{\"character\":14,\"line\":1128},\"start\":{\"character\":6,\"line\":1128}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"Candidate template ignored: could not match 'duration' against 'time_point'\"},{\"location\":{\"range\":{\"end\":{\"character\":14,\"line\":1140},\"start\":{\"character\":6,\"line\":1140}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"Candidate template ignored: substitution failure [with _Clock = std::chrono::system_clock, _Dur1 = std::chrono::duration<long, std::ratio<1, 1000000000>>, _Dur2 = std::chrono::duration<long, std::ratio<1, 1000000000>>]\"}],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[36]')\",\"range\":{\"end\":{\"character\":14,\"line\":123},\"start\":{\"character\":12,\"line\":123}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[36]')\",\"range\":{\"end\":{\"character\":14,\"line\":124},\"start\":{\"character\":12,\"line\":124}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[36]')\",\"range\":{\"end\":{\"character\":14,\"line\":125},\"start\":{\"character\":12,\"line\":125}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"}],\"uri\":\"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\",\"version\":0}}\n\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.406] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in included file: unknown type name 'size_t'\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:46:42.408] Built preamble of size 3974572 for file /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0 in 0.32 seconds\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:46:42.408] --> workspace/semanticTokens/refresh(4)\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:46:42.408] >>> {"id":4,"jsonrpc":"2.0","method":"workspace/semanticTokens/refresh","params":null}\n\n'
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:46:42.409] <<< {"id":24,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full/delta","params":{"previousResultId":"3","textDocument":{"uri":"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu"}}}\n\nI[20:46:42.409] <-- textDocument/semanticTokens/full/delta(24)\nV[20:46:42.409] <<< {"id":4,"jsonrpc":"2.0","result":null}\n\nI[20:46:42.409] <-- reply(4)\n'
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:46:42.419] Trying to fix unresolved name "__global__" in scopes: []\n'
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.419] Dex query tree: (LIMIT 10000 (& T=bal T=oba T=lob T=glo S= ?=Restricted For Code Completion))\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.419] Dex query tree: (LIMIT 10000 (& T=lob T=bal T=glo T=oba S= ?=Restricted For Code Completion))\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.454] indexed file AST for /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0:\n  symbol slab: 2 symbols, 4680 bytes\n  ref slab: 23 symbols, 109 refs, 4992 bytes\n  relations slab: 0 relations, 24 bytes\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.454] Build dynamic index for main-file symbols with estimated memory usage of 16184 bytes\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:46:42.454] --> textDocument/publishDiagnostics\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.454] >>> {\"jsonrpc\":\"2.0\",\"method\":\"textDocument/publishDiagnostics\",\"params\":{\"diagnostics\":[{\"code\":\"drv_no_cuda_installation\",\"message\":\"Cannot find CUDA installation; provide its path via '--cuda-path', or pass '-nocudainc' to build without CUDA includes\",\"range\":{\"end\":{\"character\":0,\"line\":0},\"start\":{\"character\":0,\"line\":0}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"drv_no_cuda_libdevice\",\"message\":\"Cannot find libdevice for sm_35; provide path to different CUDA installation via '--cuda-path', or pass '-nocudalib' to build without linking with libdevice\",\"range\":{\"end\":{\"character\":0,\"line\":0},\"start\":{\"character\":0,\"line\":0}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"unknown_typename\",\"message\":\"In included file: unknown type name 'cudaError_t'\",\"range\":{\"end\":{\"character\":20,\"line\":33},\"start\":{\"character\":9,\"line\":33}},\"relatedInformation\":[{\"location\":{\"range\":{\"end\":{\"character\":31,\"line\":3},\"start\":{\"character\":20,\"line\":3}},\"uri\":\"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/utility.h\"},\"message\":\"Error occurred here\"}],\"severity\":1,\"source\":\"clang\"},{\"code\":\"unknown_typename\",\"message\":\"Unknown type name '__global__' (fix available)\",\"range\":{\"end\":{\"character\":10,\"line\":39},\"start\":{\"character\":0,\"line\":39}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"undeclared_var_use\",\"message\":\"Use of undeclared identifier cudaConfigureCall\",\"range\":{\"end\":{\"character\":15,\"line\":70},\"start\":{\"character\":12,\"line\":70}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"}],\"uri\":\"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\",\"version\":0}}\n\nV[20:46:42.455] ASTWorker running SemanticHighlights on version 0 of /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\nI[20:46:42.455] --> reply:textDocument/semanticTokens/full/delta(24) 46 ms\nV[20:46:42.455] >>> {\"id\":24,\"jsonrpc\":\"2.0\",\"result\":{\"edits\":[{\"data\":[39,16,10,3,131075,3,4,4,3,131075,3,8,6,18,66048,0,7,5,1,16403,0,14,5,1,16403,0,14,5,1,16403,0,14,5,1,16403,5,7,1,1,16387,0,4,1,1,16387,0,4,5,1,16387,0,8,5,1,16387,1,2,1,1,16384,0,2,1,21,0,0,18,1,22,0,0,6,1,22,0,0,2,6,3,131584,0,7,5,1,16400,0,6,1,21,0,0,2,5,1,16400,0,6,1,21,0,1,2,1,1,16384,0,2,1,21,0,0,18,1,22,0,0,6,1,22,0,0,2,6,3,131584,0,7,5,1,16400,0,6,1,21,0,0,2,5,1,16400,0,6,1,21,0,1,2,5,1,16384,0,6,1,21,0,0,18,1,22,0,0,6,1,22,0,0,2,6,3,131584,0,7,5,1,16400,0,6,1,21,0,0,2,5,1,16400,0,6,1,21,0,1,2,5,1,16384,0,6,1,21,0,0,18,1,22,0,0,6,1,22,0,0,2,6,3,131584,0,7,5,1,16400,0,6,1,21,0,0,2,5,1,16400,0,6,1,21,0,2,6,5,1,16400,0,6,2,21,0,0,3,5,1,16400,1,4,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,22,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,4,4,3,131584,3,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,37,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,37,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,37,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,11,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,9,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,11,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,9,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,11,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,9,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,6,2,15,3,131072,0,16,1,1,18432,0,3,1,1,18432,0,3,5,1,18432,0,7,5,1,18432,0,7,5,1,16400,0,7,5,1,16400,0,7,5,1,16400,3,2,4,8,131592,0,5,9,1,16387,0,12,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,1,2,23,3,131072,0,24,1,1,16384,0,3,1,1,16384,0,3,5,1,18432,0,7,5,1,16400,0,7,5,1,16400,0,7,5,1,16400,1,2,4,8,131592,0,5,7,1,16387,0,10,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,2,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,1,12,2,21,8192,0,3,3,15,131584,0,5,6,15,131584,0,8,13,3,131584,0,13,1,22,0,0,1,3,15,131584,0,5,6,15,131584,0,8,12,8,66048,0,12,1,22,0,0,2,7,1,16384,0,8,1,21,8192,1,69,9,1,16384,1,24,5,4,33296,0,8,1,21,0,2,12,2,21,8192,0,15,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,3,2,4,8,131592,0,5,9,1,16387,0,12,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,1,2,23,3,131072,0,24,1,1,16384,0,3,1,1,16384,0,3,5,1,18432,0,7,5,1,16400,0,7,5,1,16400,0,7,5,1,16400,1,2,4,8,131592,0,5,7,1,16387,0,10,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,2,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,1,12,2,21,8192,0,3,3,15,131584,0,5,6,15,131584,0,8,13,3,131584,0,13,1,22,0,0,1,3,15,131584,0,5,6,15,131584,0,8,12,8,66048,0,12,1,22,0,0,2,7,1,16384,0,8,1,21,8192,1,69,9,1,16384,1,24,5,4,33296,0,8,1,21,0,2,12,2,21,8192,0,15,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,2,2,11,3,131072,0,12,5,1,16384,0,7,5,1,16384,0,7,5,1,16400,0,7,5,1,16400,3,2,4,8,131592,0,5,15,1,16387,0,18,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,1,2,28,3,131072,0,29,1,1,16384,0,3,1,1,16384,0,3,5,1,18432,0,7,5,1,16400,0,7,5,1,16400,0,7,5,1,16400,1,2,4,8,131592,0,5,13,1,16387,0,16,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,2,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,1,12,2,21,8192,0,3,3,15,131584,0,5,6,15,131584,0,8,13,3,131584,0,13,1,22,0,0,1,3,15,131584,0,5,6,15,131584,0,8,12,8,66048,0,12,1,22,0,1,19,13,1,16384,0,14,1,21,8192,0,2,15,1,16384,1,24,5,4,33296,0,8,1,21,0,2,12,2,21,8192,0,15,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,11,2,11,3,131072,0,12,5,1,16384,0,7,5,1,16384,0,7,5,1,16400,0,7,5,1,16400,2,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,41,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,41,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,0,41,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,3,2,4,3,131584,0,5,1,1,18432,1,2,4,3,131584,0,5,1,1,18432,1,2,4,3,131584,0,5,5,1,18432,1,2,4,3,131584],\"deleteCount\":1290,\"start\":0}],\"resultId\":\"4\"}}\n\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.482] indexed preamble AST for /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0:\n  symbol slab: 5968 symbols, 1822968 bytes\n  ref slab: 0 symbols, 0 refs, 128 bytes\n  relations slab: 325 relations, 8728 bytes\n"
[ERROR][2024-05-24 20:46:42] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:46:42.527] Build dynamic index for header symbols with estimated memory usage of 14650217 bytes\n"

If I change .clangd to

CompileFlags:
  Add:
    - --cuda-path=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/
    - --cuda-gpu-arch=sm_86
    - -L/usr/local/cuda-12.2/lib64
    - -I/usr/local/cuda-12.2/include
  Remove:
    - -forward-unknown-to-host-compiler
    - --generate-code*

I get the following errors

[ERROR][2024-05-24 20:48:32] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:48:32.237] config note at /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/.clangd:1:0: Parsed 1 fragments from file\nV[20:48:32.237] Config fragment: compiling /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/.clangd:1 -> 0x00007122884F7350 (trusted=false)\nI[20:48:32.237] --> textDocument/publishDiagnostics\nV[20:48:32.237] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/.clangd"}}\n\nV[20:48:32.237] ASTWorker running codeAction on version 0 of /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\n'
[ERROR][2024-05-24 20:48:32] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'I[20:48:32.237] --> reply:textDocument/codeAction(30) 0 ms\nV[20:48:32.237] >>> {"id":30,"jsonrpc":"2.0","result":[]}\n\n'
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:48:33.030] <<< {"jsonrpc":"2.0","method":"textDocument/didSave","params":{"textDocument":{"uri":"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu"}}}\n\nI[20:48:33.030] <-- textDocument/didSave\nI[20:48:33.030] File version went from 0 to 0\n'
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:48:33.082] ASTWorker building file /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0 with command \n[/home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/build]\n/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvcc -std=c++17 -x cu -c -o CMakeFiles/run_matrix_multiplication.dir/main.cu.o --cuda-path=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/ --cuda-gpu-arch=sm_86 -L/usr/local/cuda-12.2/lib64 -I/usr/local/cuda-12.2/include -resource-dir=/home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18 -- /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.084] Ignored diagnostic. argument unused during compilation: '-L/usr/local/cuda-12.2/lib64'\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.085] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -target-sdk-version=12.2 -fcuda-allow-variadic-functions -aux-triple nvptx64-nvidia-cuda -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name main.cu -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/build -fcoverage-compilation-dir=/home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/build -resource-dir /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18 -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include/cuda_wrappers -include __clang_cuda_runtime_wrapper.h -I /usr/local/cuda-12.2/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2//include -std=c++17 -fdeprecated-macro -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -no-round-trip-args -cuid=8136481bb63c9f41 -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x cuda /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.085] Rebuilding invalidated preamble for /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0 (previous was version 0)\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.485] Dropped diagnostic: /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include/__clang_cuda_runtime_wrapper.h: 'curand_mtgp32_kernel.h' file not found\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.486] indexed file AST for /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0:\n  symbol slab: 2 symbols, 4680 bytes\n  ref slab: 22 symbols, 89 refs, 4992 bytes\n  relations slab: 0 relations, 24 bytes\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.486] Build dynamic index for main-file symbols with estimated memory usage of 15544 bytes\nI[20:48:33.486] --> textDocument/publishDiagnostics\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.486] >>> {\"jsonrpc\":\"2.0\",\"method\":\"textDocument/publishDiagnostics\",\"params\":{\"diagnostics\":[{\"code\":\"unknown_typename\",\"message\":\"In included file: unknown type name 'cudaError_t'\",\"range\":{\"end\":{\"character\":20,\"line\":33},\"start\":{\"character\":9,\"line\":33}},\"relatedInformation\":[{\"location\":{\"range\":{\"end\":{\"character\":31,\"line\":3},\"start\":{\"character\":20,\"line\":3}},\"uri\":\"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/utility.h\"},\"message\":\"Error occurred here\"}],\"severity\":1,\"source\":\"clang\"}],\"uri\":\"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\",\"version\":0}}\n\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.561] Dropped diagnostic: /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include/__clang_cuda_runtime_wrapper.h: 'curand_mtgp32_kernel.h' file not found\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:48:33.563] Built preamble of size 6596656 for file /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0 in 0.48 seconds\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:48:33.563] --> workspace/semanticTokens/refresh(6)\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:48:33.563] >>> {"id":6,"jsonrpc":"2.0","method":"workspace/semanticTokens/refresh","params":null}\n\n'
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[20:48:33.564] <<< {"id":31,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full/delta","params":{"previousResultId":"5","textDocument":{"uri":"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu"}}}\n\n'
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'I[20:48:33.564] <-- textDocument/semanticTokens/full/delta(31)\nV[20:48:33.564] <<< {"id":6,"jsonrpc":"2.0","result":null}\n\nI[20:48:33.564] <-- reply(6)\n'
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.574] Dropped diagnostic: /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu: in template: no member named 'value' in 'std::__static_abs<1000000000>'\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.582] indexed file AST for /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0:\n  symbol slab: 2 symbols, 4680 bytes\n  ref slab: 21 symbols, 68 refs, 4992 bytes\n  relations slab: 0 relations, 24 bytes\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.582] Build dynamic index for main-file symbols with estimated memory usage of 14872 bytes\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[20:48:33.583] --> textDocument/publishDiagnostics\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.583] >>> {\"jsonrpc\":\"2.0\",\"method\":\"textDocument/publishDiagnostics\",\"params\":{\"diagnostics\":[{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[17]')\",\"range\":{\"end\":{\"character\":16,\"line\":57},\"start\":{\"character\":14,\"line\":57}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":61},\"start\":{\"character\":12,\"line\":61}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":62},\"start\":{\"character\":12,\"line\":62}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":63},\"start\":{\"character\":12,\"line\":63}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[6]')\",\"range\":{\"end\":{\"character\":14,\"line\":64},\"start\":{\"character\":12,\"line\":64}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[6]')\",\"range\":{\"end\":{\"character\":14,\"line\":65},\"start\":{\"character\":12,\"line\":65}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[6]')\",\"range\":{\"end\":{\"character\":14,\"line\":66},\"start\":{\"character\":12,\"line\":66}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"no_member\",\"message\":\"In template: no member named 'value' in 'std::__static_sign<1000000000>'\",\"range\":{\"end\":{\"character\":22,\"line\":75},\"start\":{\"character\":19,\"line\":75}},\"relatedInformation\":[{\"location\":{\"range\":{\"end\":{\"character\":41,\"line\":273},\"start\":{\"character\":36,\"line\":273}},\"uri\":\"file:///usr/include/c%2B%2B/13/ratio\"},\"message\":\"Error occurred here\"},{\"location\":{\"range\":{\"end\":{\"character\":23,\"line\":278},\"start\":{\"character\":20,\"line\":278}},\"uri\":\"file:///usr/include/c%2B%2B/13/ratio\"},\"message\":\"In instantiation of static data member 'std::ratio<1, 1000000000>::num' requested here\"},{\"location\":{\"range\":{\"end\":{\"character\":22,\"line\":516},\"start\":{\"character\":15,\"line\":516}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"In instantiation of template class 'std::ratio<1, 1000000000>' requested here\"},{\"location\":{\"range\":{\"end\":{\"character\":26,\"line\":929},\"start\":{\"character\":18,\"line\":929}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"In instantiation of template class 'std::chrono::duration<long, std::ratio<1, 1000000000>>' requested here\"},{\"location\":{\"range\":{\"end\":{\"character\":22,\"line\":75},\"start\":{\"character\":19,\"line\":75}},\"uri\":\"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\"},\"message\":\"In instantiation of template class 'std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long, std::ratio<1, 1000000000>>>' requested here\"}],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[26]')\",\"range\":{\"end\":{\"character\":14,\"line\":79},\"start\":{\"character\":12,\"line\":79}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":91},\"start\":{\"character\":12,\"line\":91}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[32]')\",\"range\":{\"end\":{\"character\":14,\"line\":105},\"start\":{\"character\":12,\"line\":105}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('time_point' (aka 'time_point<std::chrono::system_clock, duration<long, ratio<1, 1000000000>>>') and 'time_point')\",\"range\":{\"end\":{\"character\":34,\"line\":107},\"start\":{\"character\":33,\"line\":107}},\"relatedInformation\":[{\"location\":{\"range\":{\"end\":{\"character\":12,\"line\":624},\"start\":{\"character\":4,\"line\":624}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/stl_iterator.h\"},\"message\":\"Candidate template ignored: could not match 'reverse_iterator' against 'time_point'\"},{\"location\":{\"range\":{\"end\":{\"character\":12,\"line\":1799},\"start\":{\"character\":4,\"line\":1799}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/stl_iterator.h\"},\"message\":\"Candidate template ignored: could not match 'move_iterator' against 'time_point'\"},{\"location\":{\"range\":{\"end\":{\"character\":14,\"line\":709},\"start\":{\"character\":6,\"line\":709}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"Candidate template ignored: could not match 'duration' against 'time_point'\"},{\"location\":{\"range\":{\"end\":{\"character\":14,\"line\":1128},\"start\":{\"character\":6,\"line\":1128}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"Candidate template ignored: could not match 'duration' against 'time_point'\"},{\"location\":{\"range\":{\"end\":{\"character\":14,\"line\":1140},\"start\":{\"character\":6,\"line\":1140}},\"uri\":\"file:///usr/include/c%2B%2B/13/bits/chrono.h\"},\"message\":\"Candidate template ignored: substitution failure [with _Clock = std::chrono::system_clock, _Dur1 = std::chrono::duration<long, std::ratio<1, 1000000000>>, _Dur2 = std::chrono::duration<long, std::ratio<1, 1000000000>>]\"}],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[36]')\",\"range\":{\"end\":{\"character\":14,\"line\":123},\"start\":{\"character\":12,\"line\":123}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[36]')\",\"range\":{\"end\":{\"character\":14,\"line\":124},\"start\":{\"character\":12,\"line\":124}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"},{\"code\":\"typecheck_invalid_operands\",\"message\":\"Invalid operands to binary expression ('ostream' (aka 'int') and 'const char[36]')\",\"range\":{\"end\":{\"character\":14,\"line\":125},\"start\":{\"character\":12,\"line\":125}},\"relatedInformation\":[],\"severity\":1,\"source\":\"clang\"}],\"uri\":\"file:///home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\",\"version\":0}}\n\nV[20:48:33.583] ASTWorker running SemanticHighlights on version 0 of /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu\nI[20:48:33.583] --> reply:textDocument/semanticTokens/full/delta(31) 19 ms\nV[20:48:33.583] >>> {\"id\":31,\"jsonrpc\":\"2.0\",\"result\":{\"edits\":[{\"data\":[39,0,10,19,131072,0,16,10,3,131075,3,4,4,3,131075,3,8,6,18,66048,0,7,5,1,16403,0,14,5,1,16403,0,14,5,1,16403,0,14,5,1,16403,5,7,1,1,16387,0,4,1,1,16387,0,4,5,1,16387,0,8,5,1,16387,1,2,1,1,16384,0,2,1,21,0,0,18,1,22,0,0,6,1,22,0,0,2,6,3,66048,0,7,5,1,16400,0,6,1,21,0,0,2,5,1,16400,0,6,1,21,0,1,2,1,1,16384,0,2,1,21,0,0,18,1,22,0,0,6,1,22,0,0,2,6,3,66048,0,7,5,1,16400,0,6,1,21,0,0,2,5,1,16400,0,6,1,21,0,1,2,5,1,16384,0,6,1,21,0,0,18,1,22,0,0,6,1,22,0,0,2,6,3,66048,0,7,5,1,16400,0,6,1,21,0,0,2,5,1,16400,0,6,1,21,0,1,2,5,1,16384,0,6,1,21,0,0,18,1,22,0,0,6,1,22,0,0,2,6,3,66048,0,7,5,1,16400,0,6,1,21,0,0,2,5,1,16400,0,6,1,21,0,2,6,5,1,16400,0,6,2,21,0,0,3,5,1,16400,1,4,3,15,131584,0,5,4,0,131584,0,27,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,4,4,3,66048,3,2,3,15,131584,0,5,4,0,131584,0,42,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,42,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,42,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,16,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,9,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,16,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,9,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,16,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,9,2,21,8192,0,3,5,1,16400,0,6,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,4,2,10,3,131072,0,10,3,3,131584,2,2,15,3,131072,0,16,1,1,18432,0,3,1,1,18432,0,3,5,1,18432,0,7,5,1,18432,0,7,5,1,16400,0,7,5,1,16400,0,7,5,1,16400,3,7,9,1,16387,0,12,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,1,2,23,3,131072,0,24,1,1,16384,0,3,1,1,16384,0,3,5,1,18432,0,7,5,1,16400,0,7,5,1,16400,0,7,5,1,16400,1,2,4,8,131592,0,5,7,1,16387,0,10,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,2,2,3,15,131584,0,5,4,0,131584,1,12,2,21,8192,0,3,3,15,131584,0,5,6,15,131584,0,8,13,3,131584,0,13,1,22,0,0,1,3,15,131584,0,5,6,15,131584,0,8,12,8,66048,0,12,1,22,0,0,2,7,1,16384,0,8,1,21,8192,2,24,5,14,33024,0,8,1,21,8192,2,12,2,21,8192,0,15,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,3,2,4,8,131592,0,5,9,1,16387,0,12,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,1,2,23,3,131072,0,24,1,1,16384,0,3,1,1,16384,0,3,5,1,18432,0,7,5,1,16400,0,7,5,1,16400,0,7,5,1,16400,1,2,4,8,131592,0,5,7,1,16387,0,10,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,2,2,3,15,131584,0,5,4,0,131584,1,12,2,21,8192,0,3,3,15,131584,0,5,6,15,131584,0,8,13,3,131584,0,13,1,22,0,0,1,3,15,131584,0,5,6,15,131584,0,8,12,8,66048,0,12,1,22,0,0,2,7,1,16384,0,8,1,21,8192,1,69,9,1,16384,1,24,5,14,33024,0,8,1,21,8192,2,12,2,21,8192,0,15,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,2,2,11,3,131072,0,12,5,1,16384,0,7,5,1,16384,0,7,5,1,16400,0,7,5,1,16400,3,2,4,8,131592,0,5,15,1,16387,0,18,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,1,2,28,3,131072,0,29,1,1,16384,0,3,1,1,16384,0,3,5,1,18432,0,7,5,1,16400,0,7,5,1,16400,0,7,5,1,16400,1,2,4,8,131592,0,5,13,1,16387,0,16,3,15,131584,0,5,6,15,131584,0,8,21,8,66048,0,23,3,5,33312,2,2,3,15,131584,0,5,4,0,131584,1,12,2,21,8192,0,3,3,15,131584,0,5,6,15,131584,0,8,13,3,131584,0,13,1,22,0,0,1,3,15,131584,0,5,6,15,131584,0,8,12,8,66048,0,12,1,22,0,1,19,13,1,16384,0,16,15,1,16384,1,24,5,14,33024,0,8,1,21,8192,2,12,2,21,8192,0,15,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,11,2,11,3,131072,0,12,5,1,16384,0,7,5,1,16384,0,7,5,1,16400,0,7,5,1,16400,2,2,3,15,131584,0,5,4,0,131584,0,46,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,46,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,1,2,3,15,131584,0,5,4,0,131584,0,46,2,21,8192,0,3,3,15,131584,0,5,4,3,131584,3,2,4,3,66048,0,5,1,1,18432,1,2,4,3,66048,0,5,1,1,18432,1,2,4,3,66048,0,5,5,1,18432,1,2,4,3,66048],\"deleteCount\":1355,\"start\":0}],\"resultId\":\"6\"}}\n\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.715] indexed preamble AST for /home/seshu/Documents/CUDA_Multiplication_and_Addition/MatrixMultiplication/main.cu version 0:\n  symbol slab: 12721 symbols, 5001655 bytes\n  ref slab: 0 symbols, 0 refs, 128 bytes\n  relations slab: 271 relations, 8728 bytes\n"
[ERROR][2024-05-24 20:48:33] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[20:48:33.765] Build dynamic index for header symbols with estimated memory usage of 14611403 bytes\n"

from clangd.

HighCommander4 avatar HighCommander4 commented on September 26, 2024

I don't see "unknown type matrix_2D" in the second log, but I do see "unknown type name cudaError_t", in MatrixMultiplication/utility.h.

You'll have to bear with me as I know next to nothing about CUDA... is this a type defined by the CUDA libraries? Or a type defined by your code? Which file contains the definition of this type?

from clangd.

basava70 avatar basava70 commented on September 26, 2024

Ok,
so cudaError_t is a builtin type, in this I didnt define any built in types for CUDA, all the errors, it said, cuda_Error_t, threadIdx.x, blockIdx.x, are all inbuild variables in CUDA.

[ERROR][2024-05-25 13:30:12] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[13:30:12.161] <<< {"id":169,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[]},"range":{"end":{"character":0,"line":96},"start":{"character":0,"line":96}},"textDocument":{"uri":"file:///home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/main.cu"}}}\n\nI[13:30:12.162] <-- textDocument/codeAction(169)\nV[13:30:12.162] ASTWorker running codeAction on version 3 of /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/main.cu\nI[13:30:12.162] --> reply:textDocument/codeAction(169) 0 ms\nV[13:30:12.162] >>> {"id":169,"jsonrpc":"2.0","result":[]}\n\n'

Screenshot from 2024-05-25 13-32-16
This is the screen shot of the error messages, .clangd file for this is

CompileFlags:
  Add:
    - --cuda-path=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/
    - --cuda-gpu-arch=sm_86
    - -L/usr/local/cuda-12.2/lib64
    - -I/usr/local/cuda-12.2/include
  Remove:
    - -forward-unknown-to-host-compiler
    - --generate-code*

I have lib.h included which contains using matrix_2D = std::vector<std::vector<value_type>>;
and lib.h is included in the main file ( which is the pasted picture above)

Just to recap,
if I change .clangd to

CompileFlags:
  Add:
    # - --cuda-path=/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/
    - --cuda-gpu-arch=sm_86
    - -L/usr/local/cuda-12.2/lib64
    - -I/usr/local/cuda-12.2/include
  Remove:
    - -forward-unknown-to-host-compiler
    - --generate-code*

I get the lsp.log

[ERROR][2024-05-25 14:59:28] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'V[14:59:28.855] <<< {"jsonrpc":"2.0","method":"textDocument/didSave","params":{"textDocument":{"uri":"file:///home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/main.cu"}}}\n\nI[14:59:28.855] <-- textDocument/didSave\nI[14:59:28.855] File version went from 5 to 5\nI[14:59:28.855] File version went from 0 to 0\n'
[ERROR][2024-05-25 14:59:28] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[14:59:28.905] config note at /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/.clangd:1:0: Parsing config fragment\nV[14:59:28.905] config note at /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/.clangd:1:0: Parsed 1 fragments from file\nV[14:59:28.905] Config fragment: compiling /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/.clangd:1 -> 0x00007773B4268B90 (trusted=false)\n"
[ERROR][2024-05-25 14:59:28] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	'I[14:59:28.905] --> textDocument/publishDiagnostics\nV[14:59:28.905] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/.clangd"}}\n\nI[14:59:28.906] ASTWorker building file /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/main.cu version 5 with command \n[/home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/build]\n/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvcc -std=c++17 -x cu -c -o CMakeFiles/run_laplace_2D.dir/main.cu.o --cuda-gpu-arch=sm_86 -L/usr/local/cuda-12.2/lib64 -I/usr/local/cuda-12.2/include -resource-dir=/home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18 -- /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/main.cu\n'
[ERROR][2024-05-25 14:59:28] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"I[14:59:28.906] ASTWorker building file /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/lib.h version 0 with command inferred from /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/main.cu\n[/home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/build]\n/opt/nvidia/hpc_sdk/Linux_x86_64/23.9/compilers/bin/nvcc -c --cuda-gpu-arch=sm_86 -L/usr/local/cuda-12.2/lib64 -I/usr/local/cuda-12.2/include -resource-dir=/home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18 -x cuda -std=c++17 -- /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/lib.h\nV[14:59:28.907] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -aux-triple nvptx64-nvidia-cuda -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name main.cu -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/build -fcoverage-compilation-dir=/home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/build -resource-dir /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18 -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include/cuda_wrappers -I /usr/local/cuda-12.2/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++17 -fdeprecated-macro -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -no-round-trip-args -cuid=fba7b27a6176a2f7 -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x cuda /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/main.cu\nV[14:59:28.907] Driver produced command: cc1 -cc1 -triple x86_64-unknown-linux-gnu -aux-triple nvptx64-nvidia-cuda -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name lib.h -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -fdebug-compilation-dir=/home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/build -fcoverage-compilation-dir=/home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/build -resource-dir /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18 -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include/cuda_wrappers -I /usr/local/cuda-12.2/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/backward -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /home/seshu/.local/share/nvim/mason/packages/clangd/clangd_18.1.3/lib/clang/18/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/13/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=c++17 -fdeprecated-macro -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -no-round-trip-args -cuid=839a839815392142 -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -x cuda /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/lib.h\n"
[ERROR][2024-05-25 14:59:28] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[14:59:28.908] Reusing preamble version 5 for version 5 of /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/main.cu\n"
[ERROR][2024-05-25 14:59:28] .../vim/lsp/rpc.lua:770	"rpc"	"/home/seshu/.local/share/nvim/mason/bin/clangd"	"stderr"	"V[14:59:28.909] Reusing preamble version 0 for version 0 of /home/seshu/Documents/StokesInterfaceCUDAPort/CudaLaplace2D/lib.h\n"

Screenshot from 2024-05-25 14-59-11

from clangd.

HighCommander4 avatar HighCommander4 commented on September 26, 2024

Can you post a complete log of a session where you open the file where you get the "unknown type matrix_2D" diagnostic (I take it that's main.cu?), from clangd startup until you see the diagnostic in the opened file?

(Keeping the --cuda-path flag in .clangd, based on the observed behaviour this is clearly important and you don't want to comment it out.)

from clangd.

basava70 avatar basava70 commented on September 26, 2024

I installed cuda12.2 in /usr/local/ (which is the default for cuda toolkit installation) and everything was automatically gone. Earlier, I installed NVIDA HPC SDK (installation folder is /opt/hpc_sdk/......). Now with installing only CUDA toolkit, I dont even have to give cuda path anymore. if I ever encounter the same problem, I will open this again. Thanks a lot for taking valuable time to help me.

from clangd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.