NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
gpunetio_dma_common.h File Reference
#include <stdio.h>
#include <stdint.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <doca_dev.h>
#include <doca_gpunetio.h>
#include <doca_error.h>
#include <doca_buf_array.h>
#include <doca_dma.h>
#include "common.h"
Include dependency graph for gpunetio_dma_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gpu_dma_config
 

Macros

#define DMA_MEMCPY_SIZE   1024
 

Functions

doca_error_t gpunetio_dma_memcpy (struct gpu_dma_config *gpu_dma_cfg)
 
doca_error_t gpunetio_dma_memcpy_common_launch_kernel (cudaStream_t stream, uintptr_t gpu_buffer_addr, struct doca_gpu_dma *dma_gpu, struct doca_gpu_buf_arr *src_gpu_buf_arr, struct doca_gpu_buf_arr *dst_gpu_buf_arr)
 

Macro Definition Documentation

◆ DMA_MEMCPY_SIZE

#define DMA_MEMCPY_SIZE   1024

Definition at line 43 of file gpunetio_dma_common.h.

Function Documentation

◆ gpunetio_dma_memcpy()

doca_error_t gpunetio_dma_memcpy ( struct gpu_dma_config gpu_dma_cfg)

Definition at line 604 of file gpunetio_dma_memcpy_sample.c.

◆ gpunetio_dma_memcpy_common_launch_kernel()

doca_error_t gpunetio_dma_memcpy_common_launch_kernel ( cudaStream_t  stream,
uintptr_t  gpu_buffer_addr,
struct doca_gpu_dma *  dma_gpu,
struct doca_gpu_buf_arr *  src_gpu_buf_arr,
struct doca_gpu_buf_arr *  dst_gpu_buf_arr 
)