From 629a57ac0fb1683b6b6bb0e1228441b900e77614 Mon Sep 17 00:00:00 2001 From: Zeyu Li Date: Tue, 3 Jan 2023 09:53:33 +0800 Subject: [PATCH] [misc] Add macro to control amdgpu-related header file (#7021) Issue: # ### Brief Summary --- taichi/runtime/llvm/llvm_runtime_executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taichi/runtime/llvm/llvm_runtime_executor.cpp b/taichi/runtime/llvm/llvm_runtime_executor.cpp index f4b6f1b75e515..f4323e25d61e0 100644 --- a/taichi/runtime/llvm/llvm_runtime_executor.cpp +++ b/taichi/runtime/llvm/llvm_runtime_executor.cpp @@ -6,14 +6,14 @@ #include "taichi/rhi/cuda/cuda_device.h" #include "taichi/platform/cuda/detect_cuda.h" #include "taichi/rhi/cuda/cuda_driver.h" -#include "taichi/rhi/amdgpu/amdgpu_driver.h" -#include "taichi/rhi/amdgpu/amdgpu_device.h" #if defined(TI_WITH_CUDA) #include "taichi/rhi/cuda/cuda_context.h" #endif #if defined(TI_WITH_AMDGPU) +#include "taichi/rhi/amdgpu/amdgpu_driver.h" +#include "taichi/rhi/amdgpu/amdgpu_device.h" #include "taichi/rhi/amdgpu/amdgpu_context.h" #endif