mirror of
https://github.com/wassname/ray.git
synced 2026-09-11 12:43:20 +08:00
Allow numpy arrays to be passed by value into tasks (and inlined in the task spec). (#1816)
* Allow numpy arrays and larger objects to be passed by value in task specifications. * Fix bug. * Fix bug. Inline all bug numpy object arrays. * Increase size limit for inlining args in task spec. * Give numpy init different signatures in Python 2 and Python 3. * Simplify code. * Fix test. * Use import_array1 instead of import_array.
This commit is contained in:
committed by
Philipp Moritz
parent
6bd944ae0d
commit
6ca2c2a609
@@ -39,6 +39,7 @@ set(CMAKE_C_FLAGS "-g -Wall -Wextra -Werror=implicit-function-declaration -Wno-s
|
||||
|
||||
# Code for finding Python
|
||||
find_package(PythonInterp REQUIRED)
|
||||
find_package(NumPy REQUIRED)
|
||||
|
||||
# Now find the Python include directories.
|
||||
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import *; print(get_python_inc())"
|
||||
|
||||
Reference in New Issue
Block a user