From c30043e28dcf3fe4da4973ec3ee461f93a7c4a01 Mon Sep 17 00:00:00 2001 From: yechen3 Date: Wed, 23 Apr 2025 15:49:43 -0700 Subject: Fix for the circular dependency issue (#116) * Update the AccelSim test script to target the repo specified by the user. * Change the warning for a missing ACCELSIM_REPO environment variable to an error and update workflow file to point to a temperory fix for circular dependency issue * fix the repo name * Change back to use dev branch --- short-tests-accelsim.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'short-tests-accelsim.sh') diff --git a/short-tests-accelsim.sh b/short-tests-accelsim.sh index 5cb4d2c..b404d4e 100755 --- a/short-tests-accelsim.sh +++ b/short-tests-accelsim.sh @@ -8,6 +8,11 @@ if [ ! -n "$ACCELSIM_BRANCH" ]; then exit 1; fi +if [ ! -n "$ACCELSIM_REPO" ]; then + echo "ERROR ** set the ACCELSIM_REPO env variable"; + exit 1; +fi + if [ ! -n "$GPUAPPS_ROOT" ]; then echo "ERROR ** GPUAPPS_ROOT to a location where the apps have been compiled"; exit 1; @@ -19,10 +24,12 @@ export PATH=$CUDA_INSTALL_PATH/bin:$PATH source ./setup_environment make -j -git clone https://github.com/accel-sim/accel-sim-framework.git +git clone $ACCELSIM_REPO +basename=$(basename $ACCELSIM_REPO) +filename=${basename%.*} # Build accel-sim -cd accel-sim-framework +cd $filename git checkout $ACCELSIM_BRANCH source ./gpu-simulator/setup_environment.sh make -j -C ./gpu-simulator -- cgit v1.3