MCPcopy
hub / github.com/uber/aresdb / AsyncCopyDeviceToHost

Function AsyncCopyDeviceToHost

cgoutils/memory.go:139–144  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

137// AsyncCopyDeviceToHost asynchronously copies the device buffer to the host
138// buffer on the specified stream.
139func 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
147func GetDeviceCount() int {

Callers 4

ProcessQueryMethod · 0.92
SerializeHLLMethod · 0.92
memory_test.goFile · 0.85

Calls 1

doCGoCallFunction · 0.70

Tested by

no test coverage detected