1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright (c) 2021 NVIDIA Corporation & Affiliates
6 reason = 'only supported on Linux'
9 if not cc.has_header('cuda.h')
11 reason = 'missing dependency, "cuda.h"'
14 if not cc.has_header('cudaTypedefs.h')
16 reason = 'missing dependency, "cudaTypedefs.h"'
20 if cc.has_header('gdrapi.h')
21 dpdk_conf.set('DRIVERS_GPU_CUDA_GDRCOPY_H', 1)
24 deps += ['gpudev', 'pci', 'bus_pci']
25 sources = files('cuda.c', 'gdrcopy.c')