PeerToPeerAccess.h 362 B

12345678910111213
  1. #include <c10/macros/Macros.h>
  2. #include <c10/core/Device.h>
  3. #include <cstdint>
  4. namespace at::cuda {
  5. namespace detail {
  6. void init_p2p_access_cache(int64_t num_devices);
  7. }
  8. TORCH_CUDA_CPP_API bool get_p2p_access(c10::DeviceIndex source_dev, c10::DeviceIndex dest_dev);
  9. TORCH_CUDA_CPP_API bool get_fabric_access(c10::DeviceIndex device);
  10. } // namespace at::cuda