File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -830,21 +830,6 @@ struct MultiPlanItem
830830 return 0 ;
831831 }
832832
833- // Utility function to check HIP memcpy accessibility between two
834- // devices. Throws std::runtime_error if access is not possible.
835- static void CheckAccess (rocfft_deviceid_t src, rocfft_deviceid_t dest)
836- {
837- // allow same device, since we'll do normal memcpy instead of
838- // peer memcpy in that case
839- if (src == dest)
840- return ;
841- int canAccessPeer = 0 ;
842- if (hipDeviceCanAccessPeer (&canAccessPeer, src, dest) != hipSuccess)
843- throw std::runtime_error (" hipDeviceCanAccessPeer failed" );
844- if (!canAccessPeer)
845- throw std::runtime_error (" Unable to perform peer-to-peer GPU-direct copies" );
846- }
847-
848833 // print a description of this item to the plan log
849834 virtual void Print (rocfft_ostream& os, const int indent) const = 0;
850835
Original file line number Diff line number Diff line change @@ -434,8 +434,6 @@ void CommScatter::ExecuteAsync(const rocfft_plan plan,
434434
435435 for (const auto & op : ops)
436436 {
437- CheckAccess (srcDeviceID, op.destDeviceID );
438-
439437 auto memSize = op.numElems * element_size (precision, arrayType);
440438
441439 auto srcWithOffset
@@ -505,8 +503,6 @@ void CommGather::ExecuteAsync(const rocfft_plan plan,
505503 auto & stream = streams[i];
506504 auto & event = events[i];
507505
508- CheckAccess (op.srcDeviceID , destDeviceID);
509-
510506 rocfft_scoped_device dev (op.srcDeviceID );
511507 stream.alloc ();
512508 event.alloc ();
You can’t perform that action at this time.
0 commit comments