From f788af6526ab050913e83f9b98f324b47f153b59 Mon Sep 17 00:00:00 2001 From: Hui Liu <96135754+hliuca@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:32:51 -0800 Subject: [PATCH] enable legacy stream (#666) --- rocprim/include/rocprim/device/config_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocprim/include/rocprim/device/config_types.hpp b/rocprim/include/rocprim/device/config_types.hpp index a27993345..7dfe5e740 100644 --- a/rocprim/include/rocprim/device/config_types.hpp +++ b/rocprim/include/rocprim/device/config_types.hpp @@ -340,7 +340,7 @@ inline hipError_t get_device_arch(int device_id, target_arch& arch) inline hipError_t get_device_from_stream(const hipStream_t stream, int& device_id) { static constexpr hipStream_t default_stream = 0; - if(stream == default_stream || stream == hipStreamPerThread) + if(stream == default_stream || stream == hipStreamPerThread || stream == hipStreamLegacy) { const hipError_t result = hipGetDevice(&device_id); if(result != hipSuccess)