Unverified Commit 47826cac authored by ℍ𝕠𝕝𝕝𝕠𝕨 𝕄𝕒𝕟's avatar ℍ𝕠𝕝𝕝𝕠𝕨 𝕄𝕒𝕟 Committed by GitHub
Browse files

[Bugfix] Ignore ray reinit error when current platform is ROCm or XPU (#10375)


Signed-off-by: default avatarHollow Man <hollowman@opensuse.org>
parent c4e46433
......@@ -234,7 +234,7 @@ def initialize_ray_cluster(
if current_platform.is_rocm() or current_platform.is_xpu():
# Try to connect existing ray instance and create a new one if not found
try:
ray.init("auto")
ray.init("auto", ignore_reinit_error=True)
except ConnectionError:
logger.warning(
"No existing RAY instance detected. "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment