Skip to content

Commit ce4f20c

Browse files
authored
Merge pull request #330 from iyangsj/master
Added TCU support
2 parents 4d645d4 + ae68798 commit ce4f20c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/perftest_parameters.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,6 +2063,11 @@ enum ctx_device ib_dev_name(struct ibv_context *context)
20632063
case 5522 : dev_fname = INTEL_GEN2; break;
20642064
default : dev_fname = INTEL_GEN2; break;
20652065
}
2066+
} else if (attr.vendor_id == 0x209b) {
2067+
switch (attr.vendor_part_id) {
2068+
case 0x1000: dev_fname = TCU1; break;
2069+
default : dev_fname = UNKNOWN; break;
2070+
}
20662071
} else {
20672072

20682073
//coverity[uninit_use]

src/perftest_parameters.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ enum ctx_device {
387387
CONNECTX8 = 31,
388388
INTEL_GEN2 = 32,
389389
CONNECTX9 = 33,
390+
TCU1 = 34,
390391
};
391392

392393
/* Units for rate limiter */

0 commit comments

Comments
 (0)