mirror of
https://github.com/wassname/ray.git
synced 2026-07-03 06:36:36 +08:00
[xlang] Cross language Python support (#6709)
This commit is contained in:
@@ -36,6 +36,7 @@ from ray import (
|
||||
ActorID,
|
||||
JobID,
|
||||
ObjectID,
|
||||
Language,
|
||||
)
|
||||
from ray import import_thread
|
||||
from ray import profiling
|
||||
@@ -553,6 +554,7 @@ def init(address=None,
|
||||
redis_password=ray_constants.REDIS_DEFAULT_PASSWORD,
|
||||
plasma_directory=None,
|
||||
huge_pages=False,
|
||||
include_java=False,
|
||||
include_webui=None,
|
||||
webui_host="localhost",
|
||||
job_id=None,
|
||||
@@ -632,6 +634,7 @@ def init(address=None,
|
||||
be created.
|
||||
huge_pages: Boolean flag indicating whether to start the Object
|
||||
Store with hugetlbfs support. Requires plasma_directory.
|
||||
include_java: Boolean flag indicating whether to enable java worker.
|
||||
include_webui: Boolean flag indicating whether to start the web
|
||||
UI, which displays the status of the Ray cluster. If this argument
|
||||
is None, then the UI will be started if the relevant dependencies
|
||||
@@ -725,6 +728,7 @@ def init(address=None,
|
||||
redis_password=redis_password,
|
||||
plasma_directory=plasma_directory,
|
||||
huge_pages=huge_pages,
|
||||
include_java=include_java,
|
||||
include_webui=include_webui,
|
||||
webui_host=webui_host,
|
||||
memory=memory,
|
||||
@@ -1684,9 +1688,9 @@ def make_decorator(num_return_vals=None,
|
||||
"allowed for remote functions.")
|
||||
|
||||
return ray.remote_function.RemoteFunction(
|
||||
function_or_class, num_cpus, num_gpus, memory,
|
||||
object_store_memory, resources, num_return_vals, max_calls,
|
||||
max_retries)
|
||||
Language.PYTHON, function_or_class, None, num_cpus, num_gpus,
|
||||
memory, object_store_memory, resources, num_return_vals,
|
||||
max_calls, max_retries)
|
||||
|
||||
if inspect.isclass(function_or_class):
|
||||
if num_return_vals is not None:
|
||||
|
||||
Reference in New Issue
Block a user