Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@ find_package(oneDPL REQUIRED PATHS ${path_to_cmake_dir})

include(GNUInstallDirs)

if(NOT DEFINED ENV{MKL_ENABLE_INSTRUCTIONS})
set(_UNSET_ENV_VAR_MKL_ENABLE_INSTRUCTIONS YES)
set(ENV{MKL_ENABLE_INSTRUCTIONS} "SSE4_2")
endif()

set(_PYTHON_PREFIX "Python")
execute_process(COMMAND ${${_PYTHON_PREFIX}_EXECUTABLE} -c
"import sys; import numpy; sys.stdout.write(numpy.get_include())"
RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT
OUTPUT_VARIABLE _${_PYTHON_PREFIX}_NumPy_PATH
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)

message(STATUS "NumPy detection result: ${_${_PYTHON_PREFIX}_RESULT}")
message(STATUS "NumPy include path: ${_${_PYTHON_PREFIX}_NumPy_PATH}")

# find Python before enabling pybind11
find_package(Python 3.10...<3.15 REQUIRED COMPONENTS Development.Module NumPy)

Expand Down
Loading