diff --git a/projects/hip-tests/catch/unit/device/hipChooseDevice.cc b/projects/hip-tests/catch/unit/device/hipChooseDevice.cc index fa5e5089f7..0cbcc68a4a 100644 --- a/projects/hip-tests/catch/unit/device/hipChooseDevice.cc +++ b/projects/hip-tests/catch/unit/device/hipChooseDevice.cc @@ -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 diff --git a/projects/hip-tests/catch/unit/device/hipGetDeviceProperties.cc b/projects/hip-tests/catch/unit/device/hipGetDeviceProperties.cc index e644f3d397..fe5ba6ffd6 100644 --- a/projects/hip-tests/catch/unit/device/hipGetDeviceProperties.cc +++ b/projects/hip-tests/catch/unit/device/hipGetDeviceProperties.cc @@ -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));