1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright (c) 2021 NVIDIA Corporation & Affiliates 3 4if not is_linux 5 build = false 6 reason = 'only supported on Linux' 7 subdir_done() 8endif 9if not cc.has_header('cuda.h') 10 build = false 11 reason = 'missing dependency, "cuda.h"' 12 subdir_done() 13endif 14if not cc.has_header('cudaTypedefs.h') 15 build = false 16 reason = 'missing dependency, "cudaTypedefs.h"' 17 subdir_done() 18endif 19 20if cc.has_header('gdrapi.h') 21 dpdk_conf.set('DRIVERS_GPU_CUDA_GDRCOPY_H', 1) 22endif 23 24deps += ['pci', 'bus_pci'] 25sources = files('cuda.c', 'gdrcopy.c') 26