SWDEV-415965 - [catch2][dtest] Added test for newly added member of hipDeviceProp_t

Move the test of AMD specific attribute into proper section

Change-Id: Id35e604e68123eee623a616ba6cd680097f6556d
This commit is contained in:
mbhiutra
2023-10-03 10:59:14 +05:30
committed by Rakesh Roy
parent f44b862cd9
commit cc35feba07
2 changed files with 216 additions and 88 deletions
+3 -3
View File
@@ -162,9 +162,6 @@ TEST_CASE("Unit_hipGetDeviceAttribute_CheckAttrValues") {
HIP_CHECK(test_hipDeviceGetAttribute(deviceId,
hipDeviceAttributePciDeviceId,
props.pciDeviceID));
HIP_CHECK(test_hipDeviceGetAttribute(deviceId,
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor,
props.maxSharedMemoryPerMultiProcessor));
HIP_CHECK(test_hipDeviceGetAttribute(deviceId,
hipDeviceAttributeIntegrated,
props.integrated));
@@ -194,6 +191,9 @@ TEST_CASE("Unit_hipGetDeviceAttribute_CheckAttrValues") {
props.cooperativeMultiDeviceLaunch));
#if HT_AMD
HIP_CHECK(test_hipDeviceGetAttribute(deviceId,
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor,
props.maxSharedMemoryPerMultiProcessor));
HIP_CHECK(test_hipDeviceGetHdpAddress(deviceId,
hipDeviceAttributeHdpMemFlushCntl,
props.hdpMemFlushCntl));