6b8aae3796
* draft testing fix for no copyright file and no changelog * test fix no-changelog no-copyright * changelog copyright fixt * remove utils.cmake * rocr lintian * lintian overrides, copyright, changelog install * fix lintian overrides install * comp_type static fix and remove debug logs * syntax error * update static build check * update file permissions to 0755 to fix error control-file-has-bad-permissions 0664 != 0755 * fix lintian errors in rdc and remove logs from roctracer * lintian error fix rocprofiler * fix lintian error * mmove lintian overrides install * lintian errors fix * move lintian overrides install * use changelog already provided by rdc * fix formatting use existing changelog if provided * fix formatting use changelog in rocprofiler * draft testing fix for no copyright file and no changelog * test fix no-changelog no-copyright * changelog copyright fixt * lintian overrides, copyright, changelog install * fix lintian overrides install * comp_type static fix and remove debug logs * fix lintian errors in rdc and remove logs from roctracer * lintian error fix rocprofiler * fix lintian error * mmove lintian overrides install * lintian errors fix * move lintian overrides install * use changelog already provided by rdc * fix formatting use existing changelog if provided * fix formatting use changelog in rocprofiler * remove overrides. Use existing changelog and copyright * resolve merge conflict * update license for hsa-rocr. Use NCSA license * install license * install license
24 line
757 B
Bash
Executable File
24 line
757 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Pre-install check for ROCr."
|
|
|
|
# Check for old installations...
|
|
if ls /usr/lib/libhsa-runtime* 1> /dev/null 2>&1; then
|
|
echo "An old version of libhsa-runtime was found in /usr/lib."
|
|
echo "This must be uninstalled before proceeding with the installation"
|
|
echo "to avoid potential incompatibilities."
|
|
|
|
read -r -p "Do you want to uninstall the old version? [y/N] " response
|
|
if [ "$response" = "y" ]; then
|
|
if ! rm -rf /usr/lib/libhsa-runtime*; then
|
|
echo "Failed to remove /usr/lib/libhsa-runtime* files."
|
|
echo "Try to uninstall these files manually."
|
|
exit 1
|
|
fi
|
|
echo "Old version uninstalled."
|
|
else
|
|
echo "The old and new versions of ROCm are incompatible. Installation aborted."
|
|
exit 1
|
|
fi
|
|
fi
|