mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
fix(frontend-python): raise error when dataflow is enabled in macOS instead of crashing
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
Declaration of `Configuration` class.
|
||||
"""
|
||||
|
||||
import platform
|
||||
from copy import deepcopy
|
||||
from enum import Enum
|
||||
from pathlib import Path
|
||||
@@ -204,6 +205,10 @@ class Configuration:
|
||||
message = "Insecure key cache cannot be enabled without specifying its location"
|
||||
raise RuntimeError(message)
|
||||
|
||||
if platform.system() == "Darwin" and self.dataflow_parallelize: # pragma: no cover
|
||||
message = "Dataflow parallelism is not available in macOS"
|
||||
raise RuntimeError(message)
|
||||
|
||||
|
||||
def __check_fork_consistency():
|
||||
hints_init = get_type_hints(Configuration.__init__)
|
||||
|
||||
Reference in New Issue
Block a user