MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getStream

Function getStream

src/backend/cuda/platform.cpp:397–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397cudaStream_t getStream(int device) {
398 static once_flag streamInitFlags[DeviceManager::MAX_DEVICES];
399
400 call_once(streamInitFlags[device], [device]() {
401 DeviceManager &inst = DeviceManager::getInstance();
402 CUDA_CHECK(cudaStreamCreate(&(inst.streams[device])));
403 });
404
405 return DeviceManager::getInstance().streams[device];
406}
407
408cudaStream_t getActiveStream() { return getStream(getActiveDeviceId()); }
409

Callers 9

cublasManagerFunction · 0.70
nnManagerFunction · 0.70
cusolverManagerFunction · 0.70
cusparseManagerFunction · 0.70
getActiveStreamFunction · 0.70
getQueueHandleFunction · 0.70
afcu_get_streamFunction · 0.70
mean_all_weightedFunction · 0.50
mean_allFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected