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

Function WaitForCudaStream

cgoutils/memory.go:85–91  ·  view source on GitHub ↗

WaitForCudaStream block waits until all pending operations are finished on the specified Cuda stream.

(stream unsafe.Pointer, device int)

Source from the content-addressed store, hash-verified

83// WaitForCudaStream block waits until all pending operations are finished on
84// the specified Cuda stream.
85func WaitForCudaStream(stream unsafe.Pointer, device int) {
86 if stream != nil {
87 doCGoCall(func() C.CGoCallResHandle {
88 return C.WaitForCudaStream(stream, C.int(device))
89 })
90 }
91}
92
93// DestroyCudaStream destroys the specified Cuda stream.
94func DestroyCudaStream(stream unsafe.Pointer, device int) {

Callers 11

projectMethod · 0.92
postExecMethod · 0.92
reportTimingMethod · 0.92
ProcessQueryMethod · 0.92
prepareForeignTableMethod · 0.92
doProfileMethod · 0.92
processBatchMethod · 0.92
SerializeHLLMethod · 0.92
projectMethod · 0.92
reduceMethod · 0.92

Calls 1

doCGoCallFunction · 0.70

Tested by

no test coverage detected