Skip to content

Commit 0490645

Browse files
author
hancheng
committed
Perftest supports MLU latency tests with read/send verbs only
Signed-off-by: hancheng <[email protected]>
1 parent 0bdfc10 commit 0490645

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/perftest_parameters.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,6 +1903,18 @@ static void force_dependecies(struct perftest_parameters *user_param)
19031903
exit(1);
19041904
}
19051905

1906+
if (user_param->memory_type == MEMORY_MLU && user_param->tst == LAT && (user_param->verb == WRITE || user_param->verb == WRITE_IMM)) {
1907+
printf(RESULT_LINE);
1908+
fprintf(stderr,"Perftest supports MLU latency tests with read/send verbs only\n");
1909+
exit(1);
1910+
}
1911+
1912+
if (user_param->memory_type == MEMORY_MLU && (int)user_param->size <= user_param->inline_size) {
1913+
printf(RESULT_LINE);
1914+
fprintf(stderr,"Perftest doesn't support MLU tests with inline messages\n");
1915+
exit(1);
1916+
}
1917+
19061918
if (user_param->use_data_direct) {
19071919
user_param->use_cuda_pcie_mapping = 1;
19081920
}
@@ -2339,6 +2351,12 @@ static void ctx_set_max_inline(struct ibv_context *context,struct perftest_param
23392351
return;
23402352
}
23412353

2354+
if (user_param->memory_type == MEMORY_MLU){
2355+
user_param->inline_size = 0;
2356+
printf("Perftest doesn't supports MLU tests with inline messages: inline size set to 0\n");
2357+
return;
2358+
}
2359+
23422360
if (user_param->tst == LAT) {
23432361
switch(user_param->verb) {
23442362
case WRITE_IMM:

0 commit comments

Comments
 (0)