From 48a9d9759f1e20bc4fcf449069f6fa3f7926b240 Mon Sep 17 00:00:00 2001 From: Harsha HS Date: Wed, 25 Sep 2024 08:24:21 -0500 Subject: [PATCH] [ROCm] Include clang-19 and clang-20 headers --- third_party/tsl/third_party/gpus/rocm_configure.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/third_party/tsl/third_party/gpus/rocm_configure.bzl b/third_party/tsl/third_party/gpus/rocm_configure.bzl index b122d8f2b17ea..32092ddc6e2eb 100644 --- a/third_party/tsl/third_party/gpus/rocm_configure.bzl +++ b/third_party/tsl/third_party/gpus/rocm_configure.bzl @@ -207,6 +207,9 @@ def _rocm_include_path(repository_ctx, rocm_config, bash_bin): inc_dirs.append(rocm_toolkit_path + "/llvm/lib/clang/18/include") if int(rocm_config.rocm_version_number) >= 60200: inc_dirs.append(rocm_toolkit_path + "/lib/llvm/lib/clang/18/include") + inc_dirs.append(rocm_toolkit_path + "/lib/llvm/lib/clang/19/include") + inc_dirs.append(rocm_toolkit_path + "/lib/llvm/lib/clang/20/include") + # Support hcc based off clang 10.0.0 (for ROCm 3.3) inc_dirs.append(rocm_toolkit_path + "/hcc/compiler/lib/clang/10.0.0/include/") inc_dirs.append(rocm_toolkit_path + "/hcc/lib/clang/10.0.0/include")