Home
last modified time | relevance | path

Searched refs:ptr_gpu (Results 1 – 1 of 1) sorted by relevance

/dpdk/app/test-gpudev/
H A Dmain.c191 void *ptr_gpu = NULL; in gpu_mem_cpu_map() local
200 ptr_gpu = rte_gpu_mem_alloc(gpu_id, buf_bytes, align); in gpu_mem_cpu_map()
201 if (ptr_gpu == NULL) { in gpu_mem_cpu_map()
206 ptr_gpu, buf_bytes); in gpu_mem_cpu_map()
208 ptr_cpu = rte_gpu_mem_cpu_map(gpu_id, buf_bytes, ptr_gpu); in gpu_mem_cpu_map()
224 ret = rte_gpu_mem_cpu_unmap(gpu_id, ptr_gpu); in gpu_mem_cpu_map()
231 ret = rte_gpu_mem_free(gpu_id, ptr_gpu); in gpu_mem_cpu_map()
236 printf("GPU memory 0x%p freed\n", ptr_gpu); in gpu_mem_cpu_map()
243 rte_gpu_mem_cpu_unmap(gpu_id, ptr_gpu); in gpu_mem_cpu_map()
244 rte_gpu_mem_free(gpu_id, ptr_gpu); in gpu_mem_cpu_map()