File tree 6 files changed +24
-22
lines changed
libsyclinterface/cmake/modules
6 files changed +24
-22
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.21...3.27 FATAL_ERROR)
2
2
3
3
project (dpctl
4
+ VERSION 0.15
4
5
LANGUAGES CXX
5
6
DESCRIPTION "Python interface for XPU programming"
6
7
)
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.21)
1
+ cmake_minimum_required (VERSION 3.21...3.27 FATAL_ERROR )
2
2
3
- project (external_usm_allocation LANGUAGES CXX)
3
+ project (external_usm_allocation VERSION 0.1 LANGUAGES CXX
4
+ DESCRIPTION "Example of passing external C++ USM allocation to Python" )
4
5
5
6
set (DPCTL_CMAKE_MODULES_PATH "${CMAKE_SOURCE_DIR} /../../../cmake" )
6
7
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DPCTL_CMAKE_MODULES_PATH} )
@@ -13,14 +14,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
13
14
include (FetchContent)
14
15
FetchContent_Declare(
15
16
pybind11
16
- URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.2 .tar.gz
17
- URL_HASH SHA256=93bd1e625e43e03028a3ea7389bba5d3f9f2596abc074b068e70f4ef9b1314ae
17
+ URL https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1 .tar.gz
18
+ URL_HASH SHA256=d475978da0cdc2d43b73f30910786759d593a9d8ee05b1b6846d1eb16c6d2e0c
18
19
)
19
20
FetchContent_MakeAvailable(pybind11)
20
21
21
- find_package (PythonExtensions REQUIRED)
22
+ find_package (Python REQUIRED COMPONENTS Development.Module NumPy )
22
23
find_package (Dpctl REQUIRED)
23
- find_package (NumPy REQUIRED)
24
24
25
25
set (py_module_name _external_usm_alloc)
26
26
pybind11_add_module(${py_module_name}
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.22 FATAL_ERROR)
1
+ cmake_minimum_required (VERSION 3.22...3.27 FATAL_ERROR)
2
2
3
- project (example_use_mkl_gemm LANGUAGES CXX)
3
+ project (example_use_mkl_gemm VERSION 0.1 LANGUAGES CXX
4
+ DESCRIPTION "Example of using Python wrapper to oneMKL function" )
4
5
set (DPCTL_CMAKE_MODULES_PATH "${CMAKE_SOURCE_DIR} /../../../cmake" )
5
6
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DPCTL_CMAKE_MODULES_PATH} )
6
7
find_package (IntelDPCPP REQUIRED PATHS ${DPCTL_CMAKE_MODULES_PATH} NO_DEFAULT_PATH)
@@ -17,12 +18,12 @@ include(GNUInstallDirs)
17
18
include (FetchContent)
18
19
FetchContent_Declare(
19
20
pybind11
20
- URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.2 .tar.gz
21
- URL_HASH SHA256=93bd1e625e43e03028a3ea7389bba5d3f9f2596abc074b068e70f4ef9b1314ae
21
+ URL https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1 .tar.gz
22
+ URL_HASH SHA256=d475978da0cdc2d43b73f30910786759d593a9d8ee05b1b6846d1eb16c6d2e0c
22
23
)
23
24
FetchContent_MakeAvailable(pybind11)
24
25
25
- find_package (PythonExtensions REQUIRED)
26
+ find_package (Python REQUIRED COMPONENTS Development.Module NumPy )
26
27
find_package (Dpctl REQUIRED)
27
28
28
29
find_library (mkl_core NAMES mkl_core PATHS ${MKL_LIBRARY_DIR} REQUIRED)
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.21)
1
+ cmake_minimum_required (VERSION 3.21...3.27 FATAL_ERROR )
2
2
3
- project (use_queue_device LANGUAGES CXX)
3
+ project (use_queue_device VERSION 0.1 LANGUAGES CXX
4
+ DESCRIPTION "Example of using dpctl.program.SyclKernel <-> sycl::kernel type casting" )
4
5
5
6
set (DPCTL_CMAKE_MODULES_PATH "${CMAKE_SOURCE_DIR} /../../../cmake" )
6
7
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DPCTL_CMAKE_MODULES_PATH} )
@@ -19,9 +20,8 @@ FetchContent_Declare(
19
20
)
20
21
FetchContent_MakeAvailable(pybind11)
21
22
22
- find_package (PythonExtensions REQUIRED)
23
+ find_package (Python REQUIRED COMPONENTS Development.Module NumPy )
23
24
find_package (Dpctl REQUIRED)
24
- find_package (NumPy REQUIRED)
25
25
26
26
set (py_module_name _use_kernel)
27
27
pybind11_add_module(${py_module_name}
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.21)
1
+ cmake_minimum_required (VERSION 3.21...3.27 FATAL_ERROR )
2
2
3
- project (use_queue_device LANGUAGES CXX)
3
+ project (use_queue_device VERSION 0.1 LANGUAGES CXX
4
+ DESCRIPTION "Example of using dpctl.SyclQueue <-> sycl::queue type caster" )
4
5
5
6
set (DPCTL_CMAKE_MODULES_PATH "${CMAKE_SOURCE_DIR} /../../../cmake" )
6
7
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DPCTL_CMAKE_MODULES_PATH} )
@@ -13,14 +14,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
13
14
include (FetchContent)
14
15
FetchContent_Declare(
15
16
pybind11
16
- URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.2 .tar.gz
17
- URL_HASH SHA256=93bd1e625e43e03028a3ea7389bba5d3f9f2596abc074b068e70f4ef9b1314ae
17
+ URL https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1 .tar.gz
18
+ URL_HASH SHA256=d475978da0cdc2d43b73f30910786759d593a9d8ee05b1b6846d1eb16c6d2e0c
18
19
)
19
20
FetchContent_MakeAvailable(pybind11)
20
21
21
- find_package (PythonExtensions REQUIRED)
22
+ find_package (Python REQUIRED COMPONENTS Development.Module NumPy )
22
23
find_package (Dpctl REQUIRED)
23
- find_package (NumPy REQUIRED)
24
24
25
25
set (py_module_name _use_queue_device)
26
26
pybind11_add_module(${py_module_name}
Original file line number Diff line number Diff line change 29
29
# VERSION_MINOR
30
30
# VERSION
31
31
# SEMVER
32
- cmake_minimum_required ( VERSION 3.14.0 )
32
+ cmake_minimum_required (VERSION 3.14...3.27 FATAL_ERROR )
33
33
34
34
function (get_version)
35
35
# Use git describe to get latest tag name
You can’t perform that action at this time.
0 commit comments