SWDEV-465215 - fixes for hipFuncGetAttribute tests

Fixes SWDEV-465215, SWDEV-465213, SWDEV-465212

Change-Id: I08b114bf647366abcf900d6b2a17f77ca608fc46
Этот коммит содержится в:
Ajay
2024-06-24 14:13:29 -07:00
коммит произвёл Ajay GunaShekar
родитель 58d4bd27a3
Коммит 6059eaa7c1
7 изменённых файлов: 1 добавлений и 26 удалений
-4
Просмотреть файл
@@ -39,13 +39,9 @@ TEST_CASE("Unit_hipFuncGetAttribute_Positive_Basic") {
SECTION("binaryVersion") {
HIP_CHECK(hipFuncGetAttribute(&value, HIP_FUNC_ATTRIBUTE_BINARY_VERSION, kernel));
#if HT_NVIDIA
const auto major = GetDeviceAttribute(hipDeviceAttributeComputeCapabilityMajor, 0);
const auto minor = GetDeviceAttribute(hipDeviceAttributeComputeCapabilityMinor, 0);
REQUIRE(value == major * 10 + minor);
#elif HT_AMD
REQUIRE(value > 0);
#endif
}
SECTION("cacheModeCA") {