Function c10::xpu::getStreamFromExternal¶
Defined in File XPUStream.h
Function Documentation¶
-
XPUStream c10::xpu::getStreamFromExternal(sycl::queue *ext_stream, DeviceIndex device_index)¶
Get a XPUStream from a externally allocated one.
This is mainly for interoperability with different libraries where we want to operate on a non-torch allocated stream for data exchange or similar purposes