SWDEV-446760 - add image check and skip failing tests
Change-Id: If4a135222ab755c23a4c0d00c29bea33744528a5
This commit is contained in:
کامیت شده توسط
Jatin Jaikishan Chaudhary
والد
3a072b6d9b
کامیت
d0088ee34f
@@ -83,6 +83,7 @@ static void RunBenchmark(size_t width, size_t height, hipMemcpyKind kind,
|
||||
*/
|
||||
TEST_CASE("Performance_hipMemcpy2DToArrayAsync_HostToDevice") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
const auto width = GENERATE(4_KB, 8_KB, 16_KB);
|
||||
RunBenchmark(width, 32, hipMemcpyHostToDevice);
|
||||
}
|
||||
@@ -104,6 +105,7 @@ TEST_CASE("Performance_hipMemcpy2DToArrayAsync_HostToDevice") {
|
||||
*/
|
||||
TEST_CASE("Performance_hipMemcpy2DToArrayAsync_DeviceToDevice_DisablePeerAccess") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
const auto width = GENERATE(4_KB, 8_KB, 16_KB);
|
||||
RunBenchmark(width, 32, hipMemcpyDeviceToDevice);
|
||||
}
|
||||
@@ -127,6 +129,7 @@ TEST_CASE("Performance_hipMemcpy2DToArrayAsync_DeviceToDevice_DisablePeerAccess"
|
||||
*/
|
||||
TEST_CASE("Performance_hipMemcpy2DToArrayAsync_DeviceToDevice_EnablePeerAccess") {
|
||||
CHECK_IMAGE_SUPPORT
|
||||
|
||||
if (HipTest::getDeviceCount() < 2) {
|
||||
HipTest::HIP_SKIP_TEST("This test requires 2 GPUs. Skipping.");
|
||||
return;
|
||||
|
||||
مرجع در شماره جدید
Block a user