Skip to content

Commit 828f57b

Browse files
committed
resolve test build faild
1 parent de813e1 commit 828f57b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unittest/adaptor/test_device_adaptor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ TEST_F(DeviceAdaptorTest, GetDeviceByPciBusId) {
588588
for (int dev = 0; dev < numDevices; dev++) {
589589
// Get PCI bus ID string directly from runtime (independent of getDevicePciBusId)
590590
char pciBusId[FLAGCX_DEVICE_PCI_BUSID_BUFFER_SIZE] = {};
591-
ASSERT_EQ(cudaDeviceGetPCIBusId(pciBusId, sizeof(pciBusId), dev), cudaSuccess)
592-
<< "cudaDeviceGetPCIBusId failed for dev=" << dev;
591+
ASSERT_EQ(deviceAdaptor->getDevicePciBusId(pciBusId, sizeof(pciBusId), dev), flagcxSuccess)
592+
<< "getDevicePciBusId failed for dev=" << dev;
593593

594594
// Reverse lookup: string -> device index
595595
int result = -1;

0 commit comments

Comments
 (0)