mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-01 20:21:23 +00:00
* experiment with config file * experiment with version.h config * add more info to version.h * minor updates * minor updates * fix case where DTYPE is not used * large amount of files but minor changes * remove white space * minor changes to add more MACROs * fix cmakedefine01 * fix issue with CK internal conflict * fix define and define value * fix clang-format * fix formatting issue * experiment with cmake * clang format v12 to be consistent with miopen * avoid clang-format for config file
21 lines
449 B
Bash
Executable File
21 lines
449 B
Bash
Executable File
#!/bin/bash
|
|
|
|
run_and_check() {
|
|
"$@"
|
|
status=$?
|
|
if [ $status -ne 0 ]; then
|
|
echo "Error with \"$@\": Exited with status $status"
|
|
exit $status
|
|
fi
|
|
return $status
|
|
}
|
|
|
|
echo "I: Installing tools required for pre-commit checks..."
|
|
run_and_check apt install clang-format-12
|
|
|
|
echo "I: Installing pre-commit itself..."
|
|
run_and_check pip3 install pre-commit
|
|
run_and_check pre-commit install
|
|
|
|
echo "I: Installation successful."
|