SWDEV-522333 - hipDeviceGetPCIBusId relax format sizes (#33)

This commit is contained in:
GunaShekar, Ajay authored and GitHub committed 2025-05-12 12:50:34 -07:00
1 orang tua 8abcd95564
melakukan fd8833cc83
2 files changed
+5 -4

No files matched your search

@@ -28,7 +28,7 @@
* Returns a handle to a compute device.
*/
#define SIZE 13
#define SIZE 20
/**
* Test Description
@@ -53,9 +53,10 @@ TEST_CASE("Unit_hipDeviceGetByPCIBusId_Functional") {
int pciDomainID = -1;
int tempPciBusId = -1;
int tempDeviceId = -1;
int pciFunction = -1;
HIP_CHECK(hipDeviceGetPCIBusId(&pciBusId[0], SIZE, i));
sscanf(pciBusId, "%04x:%02x:%02x", &pciDomainID,
&pciBusID, &pciDeviceID);
REQUIRE(sscanf(pciBusId, "%x:%x:%x.%x", &pciDomainID,
&pciBusID, &pciDeviceID, &pciFunction) == 4);
HIP_CHECK(hipDeviceGetAttribute(&tempPciBusId,
hipDeviceAttributePciBusId, i));
@@ -29,7 +29,7 @@ THE SOFTWARE.
hipDriverProcAddressQueryResult* symbolStatus);` -
* Gets the symbol's function address.
*/
constexpr int size = 13;
constexpr int size = 20;
constexpr size_t len = 256;
void CreateMemPool(int device, hipMemPool_t &mem_pool) {
hipMemPoolProps kPoolProps;