add back per-thread
This commit is contained in:
parent
3752b06550
commit
cd28b9f997
@ -1099,7 +1099,13 @@ inline void CUDAEvent::Record(CUDAStreamView stream) { // NOLINT
|
|||||||
dh::safe_cuda(hipEventRecord(event_, hipStream_t{stream}));
|
dh::safe_cuda(hipEventRecord(event_, hipStream_t{stream}));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline CUDAStreamView DefaultStream() { return CUDAStreamView{hipStreamDefault}; }
|
inline CUDAStreamView DefaultStream() {
|
||||||
|
#ifdef HIP_API_PER_THREAD_DEFAULT_STREAM
|
||||||
|
return CUDAStreamView{hipStreamPerThread};
|
||||||
|
#else
|
||||||
|
return CUDAStreamView{hipStreamDefault};
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
class CUDAStream {
|
class CUDAStream {
|
||||||
hipStream_t stream_;
|
hipStream_t stream_;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user