Skip to content

Commit

Permalink
- not remove unused libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcocenza committed Sep 16, 2024
1 parent 338272e commit e8fa48c
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions snap/local/scripts/remove_dcgmproftester.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
#!/bin/bash


LIBS_TO_REMOVE=(
FILES_TO_REMOVE=(
"dcgmproftester*"
"libdcgm_cublas_proxy*"
# libs that library linter warn that is unused
# see https://snapcraft.io/docs/linters-library
"libnvperf_dcgm_host.so"
"libnvml_injection.so.1.0"
"libdcgmmodulesysmon.so.*"
"libdcgmmoduleprofiling.so.*"
"libdcgmmodulepolicy.so.*"
"libdcgmmodulenvswitch.so.*"
"libdcgmmoduleintrospect.so.*"
"libdcgmmodulehealth.so.*"
"libdcgmmodulediag.so.*"
"libdcgmmoduleconfig.so.*"
)


echo "Removing dcgmproftester libs"


for lib in "${LIBS_TO_REMOVE[@]}"; do
for lib in "${FILES_TO_REMOVE[@]}"; do
find "$SNAPCRAFT_PRIME" -type f -name "$lib" | while read -r file; do
echo "Removing file $file"
rm -f "$file"
Expand Down

0 comments on commit e8fa48c

Please sign in to comment.