Skip to content

Commit

Permalink
ci(Zcb): add zcb extension test (#3853)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKiteRunner24 authored Nov 12, 2024
1 parent e7ab463 commit 393755c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/emu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ jobs:
- name: F16 Test - f16_test
run: |
python3 ./scripts/xiangshan.py --wave-dump ./build --thread 16 --numa --ci f16_test 2> /dev/zero
- name: Zcb Extension Test - zcb-test
run: |
python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --wave-dump $WAVE_HOME --threads 16 --numa --ci zcb-test 2> /dev/zero
emu-chi:
runs-on: bosc
needs: changes
Expand Down
13 changes: 11 additions & 2 deletions scripts/xiangshan.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,13 @@ def __get_ci_F16test(self, name=None):
]
f16_test = map(lambda x: os.path.join(base_dir, x), workloads)
return f16_test
def __get_ci_zcbtest(self, name=None):
base_dir = "/nfs/home/share/ci-workloads/zcb-test"
workloads = [
"zcb-test-riscv64-xs.bin"
]
zcb_test = map(lambda x: os.path.join(base_dir, x), workloads)
return zcb_test

def __get_ci_mc(self, name=None):
base_dir = "/nfs/home/share/ci-workloads"
Expand Down Expand Up @@ -568,7 +575,8 @@ def run_ci(self, test):
"coremark-1-iteration": self.__am_apps_path,
"rvv-bench": self.__get_ci_rvvbench,
"rvv-test": self.__get_ci_rvvtest,
"f16_test": self.__get_ci_F16test
"f16_test": self.__get_ci_F16test,
"zcb-test": self.__get_ci_zcbtest
}
for target in all_tests.get(test, self.__get_ci_workloads)(test):
print(target)
Expand Down Expand Up @@ -596,7 +604,8 @@ def run_ci_vcs(self, test):
"coremark-1-iteration": self.__am_apps_path,
"rvv-bench": self.__get_ci_rvvbench,
"rvv-test": self.__get_ci_rvvtest,
"f16_test": self.__get_ci_F16test
"f16_test": self.__get_ci_F16test,
"zcb-test": self.__get_ci_zcbtest
}
for target in all_tests.get(test, self.__get_ci_workloads)(test):
print(target)
Expand Down

0 comments on commit 393755c

Please sign in to comment.