mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-11 17:00:18 +00:00
20 lines
655 B
Bash
Executable File
20 lines
655 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright © Advanced Micro Devices, Inc., or its affiliates.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# Get list of staged files
|
|
STAGED_FILES=$(git diff --cached --name-only)
|
|
|
|
# Check if any staged file is under include/ck_tile/ or example/ck_tile/
|
|
if echo "$STAGED_FILES" | grep -qE '^(include/ck_tile/|example/ck_tile/)'; then
|
|
echo "Detected changes in ck_tile-related files. Running remod.py..."
|
|
|
|
# Run remod.py in both required locations
|
|
(cd include/ck_tile/ && python3 remod.py)
|
|
(cd example/ck_tile/ && python3 remod.py)
|
|
|
|
echo "remod.py completed."
|
|
else
|
|
echo "No changes in ck_tile-related files. Skipping remod.py."
|
|
fi
|