Skip to content

Commit

Permalink
[HIP] Do not use USM memcpy 2D direction workaround from HIP 6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeWeb committed Oct 30, 2024
1 parent 884b646 commit 938b0d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/adapters/hip/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1561,8 +1561,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMMemcpy2D(
// which makes the HIP runtime not correctly derive the copy kind
// (direction) for the copies since ROCm 5.6.0+. See:
// https://github.com/ROCm/clr/issues/40
// TODO: Add maximum HIP_VERSION when bug has been fixed.
#if HIP_VERSION >= 50600000
// Fixed by commit
// https://github.com/ROCm/clr/commit/d3bfb55d7a934355257a72fab538a0a634b43cad
// included in releases starting from ROCm 6.1.0.
#if HIP_VERSION >= 50600000 && HIP_VERSION < 60100000
hipPointerAttribute_t srcAttribs{};
hipPointerAttribute_t dstAttribs{};

Expand Down

0 comments on commit 938b0d5

Please sign in to comment.