From 2e71a765eafd0f63a096a6b074fdb875d9994759 Mon Sep 17 00:00:00 2001 From: serez Date: Tue, 20 Aug 2024 17:14:29 +0300 Subject: [PATCH] Write cuda device id to json file --- src/perftest_parameters.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/perftest_parameters.c b/src/perftest_parameters.c index 469223c0..766adfa4 100755 --- a/src/perftest_parameters.c +++ b/src/perftest_parameters.c @@ -3838,6 +3838,9 @@ static void write_test_info_to_file(int out_json_fds, struct perftest_parameters dprintf(out_json_fds, "\"rdma_cm_QPs\": \"%s\",\n",qp_state[user_param->work_rdma_cm]); + if (user_param->memory_type == MEMORY_CUDA) + dprintf(out_json_fds, "\"cuda_device\": %d,\n",user_param->cuda_device_id); + if (user_param->use_rdma_cm) temp = 1;