Skip to content

Commit 4e4f662

Browse files
authored
Merge pull request #362 from firasj/cuda_write_imm
Support CUDA latency test with write w/ immediate verb
2 parents c3c6099 + 54bd47d commit 4e4f662

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/perftest_parameters.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,9 +1955,9 @@ static void force_dependecies(struct perftest_parameters *user_param)
19551955
exit(1);
19561956
}
19571957

1958-
if (user_param->memory_type == MEMORY_CUDA && user_param->tst == LAT && (user_param->verb == WRITE || user_param->verb == WRITE_IMM)) {
1958+
if (user_param->memory_type == MEMORY_CUDA && user_param->tst == LAT && user_param->verb == WRITE) {
19591959
printf(RESULT_LINE);
1960-
fprintf(stderr,"Perftest supports CUDA latency tests with read/send verbs only\n");
1960+
fprintf(stderr, "Perftest doesn't support CUDA latency test with write (without immediate) verb\n");
19611961
exit(1);
19621962
}
19631963

src/perftest_resources.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5222,7 +5222,6 @@ int run_iter_lat_write_imm(struct pingpong_context *ctx,struct perftest_paramete
52225222
uint64_t rcnt = 0;
52235223
int ne = 0;
52245224
int err = 0;
5225-
volatile char *post_buf = NULL;
52265225

52275226
int size_per_qp = (user_param->use_srq) ?
52285227
user_param->rx_depth/user_param->num_of_qps : user_param->rx_depth;
@@ -5246,8 +5245,6 @@ int run_iter_lat_write_imm(struct pingpong_context *ctx,struct perftest_paramete
52465245
ctx->wr[0].send_flags |= IBV_SEND_INLINE;
52475246
}
52485247

5249-
post_buf = (char*)ctx->buf[0] + user_param->size - 1;
5250-
52515248
/* Duration support in latency tests. */
52525249
if (user_param->test_type == DURATION) {
52535250
duration_param=user_param;
@@ -5320,8 +5317,7 @@ int run_iter_lat_write_imm(struct pingpong_context *ctx,struct perftest_paramete
53205317
if (user_param->test_type == ITERATIONS)
53215318
user_param->tposted[scnt] = get_cycles();
53225319

5323-
*post_buf = (char)++scnt;
5324-
5320+
++scnt;
53255321
err = post_send_method(ctx, 0, user_param);
53265322

53275323
if (err) {

0 commit comments

Comments
 (0)