From 2ff732731eb61befb5f079d5225019cdaf7b2fa4 Mon Sep 17 00:00:00 2001 From: rraminen Date: Wed, 6 Aug 2025 19:33:00 +0000 Subject: [PATCH] Define datatypes when ROCM_VERSION >= 70000 --- torch/csrc/jit/codegen/fuser/cuda/resource_strings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch/csrc/jit/codegen/fuser/cuda/resource_strings.h b/torch/csrc/jit/codegen/fuser/cuda/resource_strings.h index d40ac15f132cf..0ac2c79d1e98a 100644 --- a/torch/csrc/jit/codegen/fuser/cuda/resource_strings.h +++ b/torch/csrc/jit/codegen/fuser/cuda/resource_strings.h @@ -12,7 +12,7 @@ cases*/ static constexpr auto bfloat16_type_string = "__nv_bfloat16"; -#if defined(USE_ROCM) +#if defined(USE_ROCM) && ROCM_VERSION < 70000 static auto type_declarations_template = at::jit::CodeTemplate(R"( ${HalfHeader} ${BFloat16Header}