Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/perftest_parameters.c
Original file line number Diff line number Diff line change
Expand Up @@ -1949,9 +1949,9 @@ static void force_dependecies(struct perftest_parameters *user_param)
exit(1);
}

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

Expand Down
6 changes: 1 addition & 5 deletions src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -5222,7 +5222,6 @@ int run_iter_lat_write_imm(struct pingpong_context *ctx,struct perftest_paramete
uint64_t rcnt = 0;
int ne;
int err = 0;
volatile char *post_buf = NULL;

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

post_buf = (char*)ctx->buf[0] + user_param->size - 1;

/* Duration support in latency tests. */
if (user_param->test_type == DURATION) {
duration_param=user_param;
Expand Down Expand Up @@ -5313,8 +5310,7 @@ int run_iter_lat_write_imm(struct pingpong_context *ctx,struct perftest_paramete
if (user_param->test_type == ITERATIONS)
user_param->tposted[scnt] = get_cycles();

*post_buf = (char)++scnt;

++scnt;
err = post_send_method(ctx, 0, user_param);

if (err) {
Expand Down