Skip to content

Commit

Permalink
Patch bin/nvprof so it doesn't link outside the conda environment
Browse files Browse the repository at this point in the history
  • Loading branch information
danpetry committed May 9, 2024
1 parent a2f6e89 commit 9e4911d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ for i in `ls`; do
# Leaving bin in PREFIX
mkdir -p ${PREFIX}
cp -rv $i ${PREFIX}
# we also need to patch bin/nvprof, it contains rpaths to system directories
if [[ $i == "bin" ]] && [[ -f "${i}/nvprof" ]]; then
patchelf --set-rpath '$ORIGIN/../lib' --force-rpath ${PREFIX}/$i/nvprof
fi
fi
done

0 comments on commit 9e4911d

Please sign in to comment.