From 0e50876f81d2f1b9dab00209dafec35bc81377c4 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Mon, 30 Sep 2024 21:22:30 -0700 Subject: [PATCH] Enable cleanup of CUDA RPM leftovers --- scripts/run_commands | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/run_commands b/scripts/run_commands index c64b208..2a93478 100755 --- a/scripts/run_commands +++ b/scripts/run_commands @@ -21,10 +21,13 @@ fi # give sudo permission for conda user to run yum (user creation is postponed # to the entrypoint, so we can create a user with the same id as the host) echo 'conda ALL=NOPASSWD: /usr/bin/yum' >> /etc/sudoers -# give sudo permission to copy the cuda headers and libraries for cross compilation +# give sudo permission to copy the cuda headers and libraries for cross compilation & cleanup after echo 'conda ALL=NOPASSWD: /usr/bin/cp -r /opt/conda/targets/x86_64-linux /usr/local/cuda/targets/x86_64-linux' >> /etc/sudoers echo 'conda ALL=NOPASSWD: /usr/bin/cp -r /opt/conda/targets/ppc64le-linux /usr/local/cuda/targets/ppc64le-linux' >> /etc/sudoers echo 'conda ALL=NOPASSWD: /usr/bin/cp -r /opt/conda/targets/sbsa-linux /usr/local/cuda/targets/sbsa-linux' >> /etc/sudoers +echo 'conda ALL=NOPASSWD: /usr/bin/rm -rf /opt/conda/targets/x86_64-linux' >> /etc/sudoers +echo 'conda ALL=NOPASSWD: /usr/bin/rm -rf /opt/conda/targets/ppc64le-linux' >> /etc/sudoers +echo 'conda ALL=NOPASSWD: /usr/bin/rm -rf /opt/conda/targets/sbsa-linux' >> /etc/sudoers # Install the latest Miniconda with Python 3 and update everything. curl -s -L $condapkg > miniconda.sh