sanity script, bump radiance
This commit is contained in:
Submodule generators/radiance updated: 34c33278d2...4a0b1c05cd
@@ -18,5 +18,4 @@ make CONFIG=VirgoHopperConfig
|
|||||||
make CONFIG=VirgoHopperConfig debug
|
make CONFIG=VirgoHopperConfig debug
|
||||||
echo -e "\nCompiling flash designs"
|
echo -e "\nCompiling flash designs"
|
||||||
make CONFIG=VirgoFlashConfig
|
make CONFIG=VirgoFlashConfig
|
||||||
make CONFIG=VirgoFlashConfig debug
|
|
||||||
echo -e "\nCompilation completed"
|
echo -e "\nCompilation completed"
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ def main():
|
|||||||
print(translated_line, end='')
|
print(translated_line, end='')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
print("\033[s", end='')
|
print("\033[2J\033[s", end='')
|
||||||
print("\033[" + str(lineno) + "H\033[2K\033[1m" + run_label, "DONE", "\033[0m", end='')
|
print("\033[" + str(lineno) + "H\033[2K\033[1m" + run_label, "DONE", "\033[0m", end='')
|
||||||
print("\033[u", end='', flush=True)
|
print("\033[u", end='', flush=True)
|
||||||
|
|
||||||
|
|||||||
@@ -56,8 +56,8 @@ for dim in "${dims[@]}"; do
|
|||||||
suffix=""
|
suffix=""
|
||||||
done
|
done
|
||||||
|
|
||||||
start_run VirgoFlashConfig flash_attention/kernel.radiance.flash.ampere.seqlen1024.headdim64.elf "ampere" "${suffix}"
|
start_run VirgoFlashConfig flash_attention/kernel.radiance.flash.ampere.seqlen1024.headdim64.elf "flash ampere" ""
|
||||||
start_run VirgoFlashConfig flash_attention/kernel.radiance.flash.virgo.seqlen1024.headdim64.elf "virgo" "${suffix}"
|
start_run VirgoFlashConfig flash_attention/kernel.radiance.flash.virgo.seqlen1024.headdim64.elf "flash virgo " ""
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
|
||||||
|
|||||||
43
sims/vcs/scripts/sanity.sh
Executable file
43
sims/vcs/scripts/sanity.sh
Executable file
@@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echoerr() { echo "$@" 1>&2; }
|
||||||
|
|
||||||
|
CURRENT_DIR="${PWD##*/}"
|
||||||
|
if [[ "$CURRENT_DIR" != "vcs" ]]; then
|
||||||
|
echoerr "Error: This script must be run from chipyard/sims/vcs."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
source ./scripts/env.sh > /dev/null
|
||||||
|
|
||||||
|
check_exists() {
|
||||||
|
if ! [ -f "$1" ]; then
|
||||||
|
echo "Error: looked for file $1 that does not exist."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "Checking if all kernels have been compiled.."
|
||||||
|
|
||||||
|
dims=(256 512 1024)
|
||||||
|
for dim in "${dims[@]}"; do
|
||||||
|
check_exists "$KERNELS_PATH/sgemm_tcore/kernel.radiance.gemm.tcore.volta.dim${dim}.elf"
|
||||||
|
check_exists "$KERNELS_PATH/sgemm_tcore/kernel.radiance.gemm.tcore.ampere.dim${dim}.elf"
|
||||||
|
check_exists "$KERNELS_PATH/sgemm_tcore/kernel.radiance.gemm.tcore.hopper.dim${dim}.elf"
|
||||||
|
check_exists "$KERNELS_PATH/sgemm_gemmini_dma/kernel.radiance.gemm.virgo.hopper.dim${dim}.elf"
|
||||||
|
done
|
||||||
|
|
||||||
|
check_exists "$KERNELS_PATH/flash_attention/kernel.radiance.flash.ampere.seqlen1024.headdim64.elf"
|
||||||
|
check_exists "$KERNELS_PATH/flash_attention/kernel.radiance.flash.virgo.seqlen1024.headdim64.elf"
|
||||||
|
|
||||||
|
echo "Checking if all simulation binaries have been compiled.."
|
||||||
|
|
||||||
|
check_exists "simv-chipyard.harness-VirgoFP16Config"
|
||||||
|
check_exists "simv-chipyard.harness-VirgoFP16Config-debug"
|
||||||
|
check_exists "simv-chipyard.harness-VirgoHopperConfig"
|
||||||
|
check_exists "simv-chipyard.harness-VirgoHopperConfig-debug"
|
||||||
|
check_exists "simv-chipyard.harness-VirgoFlashConfig"
|
||||||
|
|
||||||
|
echo "Sanity check passed!"
|
||||||
Reference in New Issue
Block a user