Skip to content

Commit

Permalink
Enable get_device_from_stream for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sbalint98 authored and Naraenda committed Nov 1, 2023
1 parent 31f12a4 commit 8c66863
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions rocprim/include/rocprim/device/config_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ inline hipError_t get_device_arch(int device_id, target_arch& arch)
return hipSuccess;
}

#ifndef _WIN32
inline hipError_t get_device_from_stream(const hipStream_t stream, int& device_id)
{
static constexpr hipStream_t default_stream = 0;
Expand All @@ -342,15 +341,9 @@ inline hipError_t get_device_from_stream(const hipStream_t stream, int& device_i
#endif
return hipSuccess;
}
#endif

inline hipError_t host_target_arch(const hipStream_t stream, target_arch& arch)
{
#ifdef _WIN32
(void)stream;
arch = target_arch::unknown;
return hipSuccess;
#else
int device_id;
const hipError_t result = get_device_from_stream(stream, device_id);
if(result != hipSuccess)
Expand All @@ -359,7 +352,6 @@ inline hipError_t host_target_arch(const hipStream_t stream, target_arch& arch)
}

return get_device_arch(device_id, arch);
#endif
}

} // end namespace detail
Expand Down

0 comments on commit 8c66863

Please sign in to comment.