HIPCachingAllocatorMasqueradingAsCUDA.h 517 B

123456789101112131415161718
  1. #pragma once
  2. #include <c10/hip/HIPCachingAllocator.h>
  3. #include <ATen/hip/impl/HIPAllocatorMasqueradingAsCUDA.h>
  4. #include <ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h>
  5. namespace c10 {
  6. // forward declaration
  7. class DataPtr;
  8. namespace hip {
  9. namespace HIPCachingAllocatorMasqueradingAsCUDA {
  10. C10_HIP_API Allocator* get();
  11. C10_HIP_API void recordStreamMasqueradingAsCUDA(const DataPtr& ptr, HIPStreamMasqueradingAsCUDA stream);
  12. } // namespace HIPCachingAllocatorMasqueradingAsCUDA
  13. } // namespace hip
  14. } // namespace c10