SWDEV-321511 - Enable device related disabled tests on Nvidia platform (#2518)

Change-Id: I95a62e9562a638cb3525862b9a5d2e640c10882c

[ROCm/hip-tests commit: 4b3f334131]
This commit is contained in:
ROCm CI Service Account authored and GitHub committed 2022-03-10 16:45:54 +05:30
1 orang tua 0a584393c5
melakukan f82011bc66
2 files changed
+2 -8

No files matched your search

@@ -1,5 +1,5 @@
/*
Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -41,8 +41,6 @@ TEST_CASE("Unit_hipChooseDevice_ValidateDevId") {
* Scenario1: Validates if dev = nullptr returns error code
* Scenario2: Validates if prop = nullptr returns error code
*/
#if HT_AMD
// These test scenarios fail on NVIDIA.
TEST_CASE("Unit_hipChooseDevice_NegTst") {
hipDeviceProp_t prop;
int dev = -1;
@@ -57,4 +55,3 @@ TEST_CASE("Unit_hipChooseDevice_NegTst") {
REQUIRE_FALSE(hipSuccess == hipChooseDevice(&dev, nullptr));
}
}
#endif
@@ -1,5 +1,5 @@
/*
Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -182,14 +182,11 @@ TEST_CASE("Unit_hipGetDeviceProperties_ArchPropertiesTst") {
TEST_CASE("Unit_hipGetDeviceProperties_NegTst") {
hipDeviceProp_t prop;
#if HT_AMD
SECTION("props is nullptr") {
int device;
HIP_CHECK(hipGetDevice(&device));
// this test case results in segmentation fault on NVCC
REQUIRE_FALSE(hipSuccess == hipGetDeviceProperties(nullptr, device));
}
#endif
SECTION("device is -1") {
REQUIRE_FALSE(hipSuccess == hipGetDeviceProperties(&prop, -1));