Skip to content

Fix LD_LIBRARY_PATH inside startprefix for native GPU builds so that nvidia-smi works there - #326

Open
casparvl wants to merge 1 commit into
EESSI:mainfrom
casparvl:fix_ld_library_path_in_prefix
Open

casparvl wants to merge 1 commit into
EESSI:mainfrom
casparvl:fix_ld_library_path_in_prefix

Conversation

@casparvl

Copy link
Copy Markdown
Contributor

Make sure /.singularity.d/libs gets added to the LD_LIBRARY_PATH inside the startprefix environment, so that nvidia-smi also works there

…de the startprefix environment, so that nvidia-smi also works there
laraPPr added a commit to laraPPr/software-layer that referenced this pull request Oct 15, 2026
laraPPr added a commit to laraPPr/software-layer that referenced this pull request Oct 15, 2026
Comment thread bot/build.sh
BUILD_STEP_ARGS_ACCEL+=("--nvidia" "all")
# Make sure that LD_LIBRARY_PATH gets set correctly in the startprefix environment
# See https://github.com/EESSI/software-layer/pull/1461#issuecomment-6194230190
export EESSI_PROPAGATE_INTO_PREFIX_LD_LIBRARY_PATH=/.singularity.d/libs/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@casparvl We is this suddenly required, and it wasn't before?

Or was nvidia-smi simply always broken in the build container, and this only surfaces now because EasyBuild's get_gpu_info function relies on nvidia-smi working correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants