Lines Matching +full:pybind11 +full:- +full:tests

15 check_c_compiler_flag("-Werror=implicit-function-declaration" C_SUPPORTS_WERROR_IMPLICIT_FUNCTION_D…
16 append_if(C_SUPPORTS_WERROR_IMPLICIT_FUNCTION_DECLARATION "-Werror=implicit-function-declaration" C…
20 # mlir-generic-headers are dialect-independent.
21 add_custom_target(mlir-generic-headers)
22 set_target_properties(mlir-generic-headers PROPERTIES FOLDER "Misc")
23 # mlir-headers may be dialect-dependent.
24 add_custom_target(mlir-headers)
25 set_target_properties(mlir-headers PROPERTIES FOLDER "Misc")
26 add_dependencies(mlir-headers mlir-generic-headers)
27 add_custom_target(mlir-doc)
29 # Build the CUDA conversions and run according tests if the NVPTX backend
37 add_definitions(-DMLIR_CUDA_CONVERSIONS_ENABLED=${MLIR_CUDA_CONVERSIONS_ENABLED})
39 # Build the ROCm conversions and run according tests if the AMDGPU backend
46 add_definitions(-DMLIR_ROCM_CONVERSIONS_ENABLED=${MLIR_ROCM_CONVERSIONS_ENABLED})
50 set(MLIR_SPIRV_CPU_RUNNER_ENABLED 0 CACHE BOOL "Enable building the mlir SPIR-V cpu runner")
54 "Generate build targets for the MLIR unit tests."
58 "Generate build targets for the MLIR integration tests.")
60 #-------------------------------------------------------------------------------
63 # The pybind11 library can be found (set with -DPYBIND_DIR=...)
64 # The python executable is correct (set with -DPython3_EXECUTABLE=...)
67 # ---------------
72 # setting -DMLIR_PYTHON_BINDINGS_VERSION_LOCKED=OFF
73 #-------------------------------------------------------------------------------
87 find_package(pybind11 2.6 CONFIG REQUIRED)
88 message(STATUS "Found pybind11 v${pybind11_VERSION}: ${pybind11_INCLUDE_DIR}")
97 # Adding tools/mlir-tblgen here as calling add_tablegen sets some variables like
100 add_subdirectory(tools/mlir-tblgen)
104 # C API needs all dialects for registration, but should be built before tests.
107 add_definitions(-DMLIR_INCLUDE_TESTS)
112 add_definitions(-DMLIR_INCLUDE_INTEGRATION_TESTS)
130 install(DIRECTORY include/mlir include/mlir-c
132 COMPONENT mlir-headers
141 install(DIRECTORY ${MLIR_INCLUDE_DIR}/mlir ${MLIR_INCLUDE_DIR}/mlir-c
143 COMPONENT mlir-headers
155 add_llvm_install_targets(install-mlir-headers
156 DEPENDS mlir-headers
157 COMPONENT mlir-headers)