Is Clang 18 unsupported for compiling with CUDA 12.6?

I saw on NVIDIA’s official CUDA 12.6 website that CUDA 12.6.3 supports Clang 18 as a host compiler:

CUDA 12.6 Update 3 Release Notes

However, in my actual environment, when I use Clang 18 to compile CUDA programs—whether compiling only the host side, or having Clang handle the compilation of both the host and device sides—the compilation fails.

But when I switch to Clang 15 and compile it together with NVCC, it works fine.
My device is Jetson AGX Orin, with JetPack 6.1 (CUDA 12.6 + cuDNN 9.3).

Hello @ricemaker1!

Based on the title and content of your topic, it looks like it may receive better visibility and feedback in a different category. We took the liberty of moving it for you.

If this was an incorrect assessment, please send me a direct message.

Disclaimer: this moderation suggestion and message were generated with AI assistance.

Hi,

JetPack 6 uses the Ubuntu 22.04 release.
Based on the table listed below, it supports clang up to 15.

Thanks.