remove original file

This commit is contained in:
zhengzuohe 2024-04-22 16:26:51 +08:00
parent f9f0ef7f16
commit 092f7f467c
3 changed files with 27 additions and 29 deletions

1
.gitattributes vendored
View File

@ -1,3 +1,2 @@
mindspore/ccsrc/plugin/device/ascend/kernel/dvm/prebuild/aarch64/libdvm.a filter=lfs diff=lfs merge=lfs -text
mindspore/ccsrc/plugin/device/ascend/kernel/dvm/prebuild/x86_64/libdvm.a filter=lfs diff=lfs merge=lfs -text
mindspore/ccsrc/plugin/device/ascend/kernel/internal/prebuild/ms_kernels_internal.tar.gz filter=lfs diff=lfs merge=lfs -text

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4997c83144ba095c5ef85a55274a102789f2795c903135ac36e3a0f61aa3a388
size 34965262

View File

@ -14,29 +14,31 @@
# limitations under the License.
# ============================================================================
if [ "$(uname)" == Linux ]; then
if [ -n "${MS_INTERNAL_KERNEL_HOME}" ]; then
echo "Use local MS_INTERNAL_KERNEL_HOME : ${MS_INTERNAL_KERNEL_HOME}"
# else
# file_path=${BASEPATH}/mindspore/ccsrc/plugin/device/ascend/kernel/internal/prebuild
# lib_file=${file_path}/ms_kernels_internal.tar.gz
# if [ -f "${lib_file}" ]; then
# file_lines=`cat "${lib_file}" | wc -l`
# if [ ${file_lines} -ne 3 ]; then
# tar -zxf ${lib_file} -C ${file_path}
# if [ $? -eq 0 ]; then
# echo "Unzip ms_kernel_internal.tar.gz SUCCESS!"
# export MS_INTERNAL_KERNEL_HOME="${file_path}/ms_kernels_internal"
# echo "MS_INTERNAL_KERNEL_HOME = ${MS_INTERNAL_KERNEL_HOME}"
# else
# echo "[WARNING] Unzip ms_kernel_internal.tar.gz FAILED!"
# fi
# else
# echo "[WARNING] The file ms_kernel_internal.tar.gz is not pulled. Please ensure git-lfs is installed by"
# echo "[WARNING] 'git lfs install' and retry downloading using 'git lfs pull'."
# fi
# else
# echo "[WARNING] The file ms_kernel_internal.tar.gz does NOT EXIST."
# fi
fi
if [[ -n "${MS_INTERNAL_KERNEL_HOME}" ]]; then
echo "Use local MS_INTERNAL_KERNEL_HOME : ${MS_INTERNAL_KERNEL_HOME}"
return
fi
if [[ "$(uname)" != Linux || ("$(arch)" != x86_64 && "$(arch)" != aarch64) ]]; then
echo "[WARNING] Internal kernels only supports linux system, x86_64 or aarch64 CPU arch."
return
fi
file_path=${BASEPATH}/mindspore/ccsrc/plugin/device/ascend/kernel/internal/prebuild/$(arch)
file_name=${file_path}/ms_kernels_internal.tar.gz
if [[ ! -f "${file_name}" ]]; then
echo "[WARNING] The file ${file_name} does NOT EXIST."
return
fi
file_lines=`cat "${file_name}" | wc -l`
if [[ ${file_lines} -eq 3 ]]; then
echo "[WARNING] The file ms_kernel_internal.tar.gz is not pulled. Please ensure git-lfs is installed by"
echo "[WARNING] 'git lfs install' and retry downloading using 'git lfs pull'."
return
fi
tar -zxf ${file_name} -C ${file_path}
if [[ $? -ne 0 ]]; then
echo "[WARNING] Unzip ms_kernel_internal.tar.gz FAILED!"
return
fi
echo "Unzip ms_kernel_internal.tar.gz SUCCESS!"
export MS_INTERNAL_KERNEL_HOME="${file_path}/ms_kernels_internal"
echo "MS_INTERNAL_KERNEL_HOME = ${MS_INTERNAL_KERNEL_HOME}"