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

Function AsyncCopyHostToDevice

cgoutils/memory.go:121–126  ·  view source on GitHub ↗

AsyncCopyHostToDevice asynchronously copies the host buffer to the device buffer on the specified stream.

(
	dst, src unsafe.Pointer, bytes int, stream unsafe.Pointer, device int)

Source from the content-addressed store, hash-verified

119// AsyncCopyHostToDevice asynchronously copies the host buffer to the device
120// buffer on the specified stream.
121func AsyncCopyHostToDevice(
122 dst, src unsafe.Pointer, bytes int, stream unsafe.Pointer, device int) {
123 doCGoCall(func() C.CGoCallResHandle {
124 return C.AsyncCopyHostToDevice(dst, src, C.size_t(bytes), stream, C.int(device))
125 })
126}
127
128// AsyncCopyDeviceToDevice asynchronously copies the src device buffer to the
129// dst device buffer buffer on the specified stream.

Callers 6

prepareForeignTableMethod · 0.92
prepareTimezoneTableMethod · 0.92
copyHostToDeviceFunction · 0.92
memory_test.goFile · 0.85

Calls 1

doCGoCallFunction · 0.70

Tested by

no test coverage detected