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 deps += ['gpudev', 'pci', 'bus_pci']
21 sources = files('cuda.c')