From 35174d79179aeb5871e448f8fe811c34e3c22dcf Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Wed, 9 Oct 2024 16:35:07 +0200 Subject: [PATCH] Remove useless code We don't use CUDA (see previous commit). Further, the variables referenced in this piece of code are not used later. --- nfapi/oai_integration/aerial/fapi_nvIPC.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/nfapi/oai_integration/aerial/fapi_nvIPC.c b/nfapi/oai_integration/aerial/fapi_nvIPC.c index 354de62d8f..ca8cd16381 100644 --- a/nfapi/oai_integration/aerial/fapi_nvIPC.c +++ b/nfapi/oai_integration/aerial/fapi_nvIPC.c @@ -79,24 +79,6 @@ static int ipc_handle_rx_msg(nv_ipc_t *ipc, nv_ipc_msg_t *msg) return -1; } - char *p_cpu_data = NULL; - if (msg->data_buf != NULL) { - int gpu; - if (msg->data_pool == NV_IPC_MEMPOOL_CUDA_DATA) { - gpu = 1; - } else { - gpu = 0; - } - - if (gpu) { - p_cpu_data = cpu_buf_recv; - memset(cpu_buf_recv, 0, RECV_BUF_LEN); - ipc->cuda_memcpy_to_host(ipc, p_cpu_data, msg->data_buf, RECV_BUF_LEN); - } else { - p_cpu_data = msg->data_buf; - } - } - uint8_t *pReadPackedMessage = msg->msg_buf; uint8_t *end = msg->msg_buf + msg->msg_len;