mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
Merge pull request #25008 from skye:barrier
PiperOrigin-RevId: 698461687
This commit is contained in:
commit
1a3e693ad5
@ -80,7 +80,7 @@ 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')
|
||||
if '--xla_tpu_use_enhanced_launch_barrier' not in os.environ['LIBTPU_INIT_ARGS']:
|
||||
if '--xla_tpu_use_enhanced_launch_barrier' not in os.environ.get('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
|
||||
|
Loading…
x
Reference in New Issue
Block a user