AsyncCopyDeviceToHost asynchronously copies the device buffer to the host buffer on the specified stream.
( dst, src unsafe.Pointer, bytes int, stream unsafe.Pointer, device int)
| 137 | // AsyncCopyDeviceToHost asynchronously copies the device buffer to the host |
| 138 | // buffer on the specified stream. |
| 139 | func AsyncCopyDeviceToHost( |
| 140 | dst, src unsafe.Pointer, bytes int, stream unsafe.Pointer, device int) { |
| 141 | doCGoCall(func() C.CGoCallResHandle { |
| 142 | return C.AsyncCopyDeviceToHost(dst, src, C.size_t(bytes), stream, C.int(device)) |
| 143 | }) |
| 144 | } |
| 145 | |
| 146 | // GetDeviceCount returns the number of GPU devices |
| 147 | func GetDeviceCount() int { |
no test coverage detected