Skip to content

Commit

Permalink
add macro to control amdgpu-related header file
Browse files Browse the repository at this point in the history
  • Loading branch information
galeselee committed Dec 31, 2022
1 parent 96e65ee commit cc46700
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion taichi/rhi/amdgpu/amdgpu_caching_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace taichi {
namespace lang {
namespace amdgpu {

AmdgpuCachingAllocator::AmdgpuCachingAllocator(LlvmDevice *device)
: device_(device) {
}
Expand Down
4 changes: 2 additions & 2 deletions taichi/runtime/llvm/llvm_runtime_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cc46700

Please sign in to comment.