feat(isolation): sandbox policy and runtime fencing

This commit is contained in:
John Pollock
2026-04-30 14:51:29 -05:00
parent fbb6be5624
commit c9ebc6aa57
8 changed files with 388 additions and 34 deletions

View File

@@ -92,7 +92,7 @@ if args.cuda_malloc:
env_var = os.environ.get('PYTORCH_CUDA_ALLOC_CONF', None)
if env_var is None:
env_var = "backend:cudaMallocAsync"
else:
elif not args.use_process_isolation:
env_var += ",backend:cudaMallocAsync"
os.environ['PYTORCH_CUDA_ALLOC_CONF'] = env_var