-
Notifications
You must be signed in to change notification settings - Fork 654
/
CMakeLists.txt
59 lines (53 loc) · 1.04 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2019, Mellanox Technologies. All rights reserved. See COPYING file
# Copyright (c) 2020, Intel Corporation. All rights reserved. See COPYING file
publish_internal_headers(""
dmabuf_alloc.h
)
if (DRM_INCLUDE_DIRS)
set(DMABUF_ALLOC dmabuf_alloc.c)
else()
set(DMABUF_ALLOC dmabuf_alloc_stub.c)
endif()
if (HAVE_COHERENT_DMA)
set(DMA_UTIL dma_util.pyx)
else()
set(DMA_UTIL "")
endif()
rdma_cython_module(pyverbs ""
addr.pyx
base.pyx
cm_enums.pyx
cmid.pyx
cq.pyx
device.pyx
${DMA_UTIL}
dmabuf.pyx
${DMABUF_ALLOC}
enums.pyx
flow.pyx
fork.pyx
libibverbs.pyx
libibverbs_enums.pyx
librdmacm.pyx
librdmacm_enums.pyx
mem_alloc.pyx
mr.pyx
pd.pyx
qp.pyx
spec.pyx
srq.pyx
wq.pyx
wr.pyx
xrcd.pyx
)
rdma_python_module(pyverbs
__init__.py
pyverbs_error.py
utils.py
)
# mlx5 and efa providers are not built without coherent DMA, e.g. ARM32 build.
if (HAVE_COHERENT_DMA)
add_subdirectory(providers/mlx5)
add_subdirectory(providers/efa)
endif()