Skip to content

Commit

Permalink
enable legacy stream (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
hliuca authored Dec 19, 2024
1 parent 40f7c5d commit f788af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocprim/include/rocprim/device/config_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f788af6

Please sign in to comment.