Files
ROCm/scripts/amd/cache_print.sh
Michael Melesse 34f95bc7d9 update scripts
2022-12-22 18:47:42 -06:00

23 lines
433 B
Bash
Executable File

#!/bin/bash
CACHED_FILES=$(find /root/.triton/cache/ -type f -name "*.*")
rm -rf triton_cache
mkdir -p triton_cache
for file in ${CACHED_FILES[@]}; do
echo "$file"
if [[ $file == *.so ]]; then
echo "Skipping printing .so file"
elif [[ $file == *.cubin ]]; then
echo "Skipping printing .cubin file"
else
sed -i -e '$a\' $file
cat $file
cp $file triton_cache
fi
done
cp /tmp/* triton_cache
chmod -R 777 triton_cache