MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / ThrustArrayFirePolicy>

Method ThrustArrayFirePolicy>

src/backend/cuda/ThrustArrayFirePolicy.hpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45namespace cuda_cub {
46template<>
47__DH__ inline cudaStream_t get_stream<arrayfire::cuda::ThrustArrayFirePolicy>(
48 execution_policy<arrayfire::cuda::ThrustArrayFirePolicy> &) {
49#if defined(__CUDA_ARCH__)
50 return 0;
51#else
52 return arrayfire::cuda::getActiveStream();
53#endif
54}
55
56__DH__
57inline cudaError_t synchronize_stream(

Callers

nothing calls this directly

Calls 1

getActiveStreamFunction · 0.85

Tested by

no test coverage detected