You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m running Kallichore inside a Singularity container and trying to use GPU/CUDA functionality via the cupy Python library. After a frustrating few hours of debugging, I discovered that $LD_LIBRARY_PATH—which the CUDA runtime relies on to locate the drivers—was not being propagated correctly to spawned kernels.
Specifically:
$LD_LIBRARY_PATH inside the container differs from what kernels launched from the container see.
I had to manually define it in .bashrc and enable Kernel Supervisor: Run in Shell to make things work.
Interestingly, some environment variables, like $SINGULARITY_NAME, are propagated correctly, but $LD_LIBRARY_PATH is reset.
I’ve seen a few related issues but nothing directly addressing this, so I’m not opening a bug report straightaway.
Question: Why are certain environment variables propagated correctly while $LD_LIBRARY_PATH is not?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I’m running Kallichore inside a Singularity container and trying to use GPU/CUDA functionality via the
cupy
Python library. After a frustrating few hours of debugging, I discovered that$LD_LIBRARY_PATH
—which the CUDA runtime relies on to locate the drivers—was not being propagated correctly to spawned kernels.Specifically:
.bashrc
and enableKernel Supervisor: Run in Shell
to make things work.$SINGULARITY_NAME
, are propagated correctly, but$LD_LIBRARY_PATH
is reset.I’ve seen a few related issues but nothing directly addressing this, so I’m not opening a bug report straightaway.
Question: Why are certain environment variables propagated correctly while $LD_LIBRARY_PATH is not?
Thanks in advance for any insights!
Beta Was this translation helpful? Give feedback.
All reactions