Skip to content

Commit ce086f1

Browse files
authored
Fix typo (#719)
* Fix typo * Remove old version-specific directive
1 parent d5266c1 commit ce086f1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

rocprim/include/rocprim/detail/various.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -302,17 +302,7 @@ using bool_constant = std::integral_constant<bool, Value>;
302302
inline hipError_t memcpy_and_sync(
303303
void* dst, const void* src, size_t size_bytes, hipMemcpyKind kind, hipStream_t stream)
304304
{
305-
// hipMemcpyWithStream is only supported on rocm 3.1 and above
306-
#if(HIP_VERSION_MAJOR == 3 && HIP_VERSION_MINOR >= 1) || HIP_VERSION_MAJOR > 3
307305
return hipMemcpyWithStream(dst, src, size_bytes, kind, stream);
308-
#else
309-
const hipError_t result = hipMemcpyAsync(dst src, size_bytes, kind, stream);
310-
if(hipSuccess != result)
311-
{
312-
return result;
313-
}
314-
return hipStreamSynchronize(stream);
315-
#endif
316306
}
317307

318308
#if __cpp_lib_as_const >= 201510L

0 commit comments

Comments
 (0)