123456789101112131415161718 |
- #pragma once
- #include <c10/hip/HIPCachingAllocator.h>
- #include <ATen/hip/impl/HIPAllocatorMasqueradingAsCUDA.h>
- #include <ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h>
- namespace c10 {
- // forward declaration
- class DataPtr;
- namespace hip {
- namespace HIPCachingAllocatorMasqueradingAsCUDA {
- C10_HIP_API Allocator* get();
- C10_HIP_API void recordStreamMasqueradingAsCUDA(const DataPtr& ptr, HIPStreamMasqueradingAsCUDA stream);
- } // namespace HIPCachingAllocatorMasqueradingAsCUDA
- } // namespace hip
- } // namespace c10
|