Skip to content

Commit 279d92e

Browse files
shaulerezsshaulnv
authored andcommitted
Write cuda device id to json file
1 parent d7989b2 commit 279d92e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/perftest_parameters.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3838,6 +3838,9 @@ static void write_test_info_to_file(int out_json_fds, struct perftest_parameters
38383838

38393839
dprintf(out_json_fds, "\"rdma_cm_QPs\": \"%s\",\n",qp_state[user_param->work_rdma_cm]);
38403840

3841+
if (user_param->memory_type == MEMORY_CUDA)
3842+
dprintf(out_json_fds, "\"cuda_device\": %d,\n",user_param->cuda_device_id);
3843+
38413844
if (user_param->use_rdma_cm)
38423845
temp = 1;
38433846

0 commit comments

Comments
 (0)