mirror of
https://github.com/ROCm/jax.git
synced 2025-04-17 20:36:05 +00:00
Don't override --xla_tpu_use_enhanced_launch_barrier if explicitly set
This commit is contained in:
parent
4a884d4184
commit
94f9a488b1
@ -80,7 +80,8 @@ def cloud_tpu_init() -> None:
|
||||
os.environ.setdefault('TPU_ML_PLATFORM', 'JAX')
|
||||
os.environ.setdefault('TPU_ML_PLATFORM_VERSION', version.__version__)
|
||||
os.environ.setdefault('ENABLE_RUNTIME_UPTIME_TELEMETRY', '1')
|
||||
os.environ["LIBTPU_INIT_ARGS"] = os.environ.get("LIBTPU_INIT_ARGS","") + " --xla_tpu_use_enhanced_launch_barrier=true"
|
||||
if '--xla_tpu_use_enhanced_launch_barrier' not in os.environ['LIBTPU_INIT_ARGS']:
|
||||
os.environ['LIBTPU_INIT_ARGS'] = os.environ.get('LIBTPU_INIT_ARGS','') + ' --xla_tpu_use_enhanced_launch_barrier=true'
|
||||
|
||||
# this makes tensorstore serialization work better on TPU
|
||||
os.environ.setdefault('TENSORSTORE_CURL_LOW_SPEED_TIME_SECONDS', '60')
|
||||
|
Loading…
x
Reference in New Issue
Block a user