File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
offload/plugins-nextgen/amdgpu/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1225,8 +1225,7 @@ struct AMDGPUStreamTy {
12251225 auto BasePtr = Args->Dst ;
12261226 for (size_t I = 0 ; I < Args->NumTimes ; I++) {
12271227 std::memcpy (BasePtr, Args->Src , Args->Size );
1228- BasePtr = reinterpret_cast <void *>(reinterpret_cast <uintptr_t >(BasePtr) +
1229- Args->Size );
1228+ BasePtr = reinterpret_cast <uint8_t *>(BasePtr) + Args->Size ;
12301229 }
12311230
12321231 return Plugin::success ();
@@ -1480,8 +1479,7 @@ struct AMDGPUStreamTy {
14801479 auto *InterPtr = Inter;
14811480 for (size_t I = 0 ; I < NumTimes; I++) {
14821481 std::memcpy (InterPtr, Src, CopySize);
1483- InterPtr = reinterpret_cast <void *>(
1484- reinterpret_cast <uintptr_t >(InterPtr) + CopySize);
1482+ InterPtr = reinterpret_cast <uint8_t *>(InterPtr) + CopySize;
14851483 }
14861484
14871485 // Return the second signal because it will not be used.
You can’t perform that action at this time.
0 commit comments