-
Notifications
You must be signed in to change notification settings - Fork 33
/
CMakeLists.txt
30 lines (22 loc) · 945 Bytes
/
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
#[=======================================================================[.rst:
numba_dpex
-----------
A cmake file to compile the ``_dpexrt_python`` Python C extension for
``numba_dpex``. You can build this component locally in-place by invoking these
commands:
.. code-block:: cmake
~$ cmake .
~$ cmake --build . --verbose
Once compiled, the _dpexrt_python library will be in ``numba_dpex/core/runtime``
folder.
This ``CMakeLists.txt`` file will be used by ``setup.py``.
#]=======================================================================]
cmake_minimum_required(VERSION 3.21...3.27 FATAL_ERROR)
project(numba-dpex
VERSION ${NUMBA_DPEX_VERSION}
DESCRIPTION "An extension for Numba to add data-parallel offload capability"
)
# Help conda build find path from both host and build env.
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
add_subdirectory(numba_dpex/core/runtime)