Sleep.h 319 B

12345678910111213
  1. #pragma once
  2. #include <c10/macros/Export.h>
  3. #include <cstdint>
  4. namespace at::cuda {
  5. // enqueues a kernel that spins for the specified number of cycles
  6. TORCH_CUDA_CU_API void sleep(int64_t cycles);
  7. // flushes instruction cache for ROCm; no-op for CUDA
  8. TORCH_CUDA_CU_API void flush_icache();
  9. } // namespace at::cuda