Skip to content

Commit 039c5d1

Browse files
authored
Merge pull request #2268 from GeorgeWeb/georgi/hip-max-version-for-usmmemcpy2d-workaround
[HIP] Do not use USM memcpy 2D direction workaround from HIP 6.1.0
2 parents 8b8ab0f + 39d3dde commit 039c5d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/adapters/hip/enqueue.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,8 +1561,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMMemcpy2D(
15611561
// which makes the HIP runtime not correctly derive the copy kind
15621562
// (direction) for the copies since ROCm 5.6.0+. See:
15631563
// https://github.com/ROCm/clr/issues/40
1564-
// TODO: Add maximum HIP_VERSION when bug has been fixed.
1565-
#if HIP_VERSION >= 50600000
1564+
// Fixed by commit
1565+
// https://github.com/ROCm/clr/commit/d3bfb55d7a934355257a72fab538a0a634b43cad
1566+
// included in releases starting from ROCm 6.1.0.
1567+
#if HIP_VERSION >= 50600000 && HIP_VERSION < 60100000
15661568
hipPointerAttribute_t srcAttribs{};
15671569
hipPointerAttribute_t dstAttribs{};
15681570

0 commit comments

Comments
 (0)