Repository navigation
Labels
state:needs-infoAssessment needs specific evidence or reproduction details
Description
User Story
pytorch fails to work inside sandbox with standard nvcr.io/nvidia/pytorch container out of box.
So trivial torch check fail with scary message which is not clear for majority of non technical people:
openshell sandbox create --name torch-default --gpu \
--from nvcr.io/nvidia/pytorch:26.10-py3 --no-keep -- python3 -c "import torch"
Created sandbox: torch-default
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.12/dist-packages/torch/__init__.py", line 504, in <module>
_load_global_deps()
File "/usr/local/lib/python3.12/dist-packages/torch/__init__.py", line 462, in _load_global_deps
_preload_cuda_deps(err)
File "/usr/local/lib/python3.12/dist-packages/torch/__init__.py", line 388, in _preload_cuda_deps
raise err
File "/usr/local/lib/python3.12/dist-packages/torch/__init__.py", line 433, in _load_global_deps
ctypes.CDLL(global_deps_lib_path, mode=ctypes.RTLD_GLOBAL)
File "/usr/lib/python3.12/ctypes/__init__.py", line 379, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: libmpi.so.40: cannot open shared object file: No such file or directory
✓ Sandbox torch-default deletion accepted; cleanup is pending
Problem Statement
By default openshell sandbox does not allow to access /opt but it is mandatory for torch to load library from /opt/hpcx,
also it restrict access to /sys/, which makes it impossible for container to read system topology like /sys/devices/system/cpu, as result nccl will not able to bind tasks to correct CPUs.
Impact / Why This Matters
Openshell is the only sandbox which allow to use GPU's inside, so we MUST support pytorch containers to attract users.
Acceptance Criteria
- nvcr.io/nvidia/pytorch container works
Reproduction Steps
openshell sandbox create \
--name torch-check \
--gpu \
--from nvcr.io/nvidia/pytorch:25.11-py3 \
--policy policy.yaml \
--no-keep --no-tty \
-- python -c 'import torch; print(torch.__version__, torch.cuda.is_available(), torch.cuda.device_count()); x = torch.ones(1024, device="cuda"); print("sum", (x * 2).sum().item())'Suggested UX (if applicable)
No response
Environment
Issue is environment agnostic
Logs
Metadata
Metadata
Assignees
Labels
state:needs-infoAssessment needs specific evidence or reproduction details
Activity
purp commentedon Dec 3, 2026
Thanks for the report and the example in #6158. The restrictive default policy does not grant
/optor/sys, which is consistent with the reported behavior, but we haven't verified the cause or the proposed policy on a GPU deployment yet.Could you share:
--policy).policy.yamlused in the reproduction and the output of running the same image tag both without that policy and with the policy proposed in docs(examples): add NGC PyTorch GPU sandbox example #6158. The report uses26.10-py3for the failure and25.11-py3for the reproduction; using the same tag would help isolate the difference./systopology or NCCL impact, since the import failure alone does not establish that behavior.These details will help confirm the cause and whether the example policy addresses the reported workload.