SWDEV-479807 - Skip if peer access is not supported.
Change-Id: I2a40976e7e1a4c86c41ea86e87359c7d4b85c6d8
Этот коммит содержится в:
коммит произвёл
Rakesh Roy
родитель
d1d8b1e08e
Коммит
2f067487d2
@@ -55,7 +55,8 @@ static void RunBenchmark(size_t width, size_t height, hipMemcpyKind kind,
|
||||
// hipMemcpyDeviceToDevice
|
||||
int src_device = std::get<0>(GetDeviceIds(enable_peer_access));
|
||||
int dst_device = std::get<1>(GetDeviceIds(enable_peer_access));
|
||||
|
||||
if (src_device == -1 && dst_device == -1) { return; }
|
||||
|
||||
LinearAllocGuard2D<int> device_allocation(width, height);
|
||||
HIP_CHECK(hipSetDevice(dst_device));
|
||||
ArrayAllocGuard<int> array_allocation(make_hipExtent(width, height, 0), hipArrayDefault);
|
||||
|
||||
Ссылка в новой задаче
Block a user