Skip to content

Commit ee4d065

Browse files
committed
test(cuda): add the performance test run in the test of CUDA
1 parent e7b7a34 commit ee4d065

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/cuda.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,27 @@ jobs:
4646
cmake --install build
4747
cmake -B build -DBUILD_TESTING=ON
4848
cmake --build build -j4 --target hsolver_diago
49-
- name: Test
49+
- name: Test e2e
5050
run: |
5151
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda/lib64
5252
cd tests/integrate
5353
echo "ks_solver cusolver" >> ./270_NO_MD_2O/INPUT
54-
./Autotest.sh -r 270_NO_MD_2O
55-
cd ../../source/src_pdiag/test/
54+
./Autotest.sh -r 270_NO_MD_2O
55+
- name: Test UT
56+
run: |
57+
cd source/src_pdiag/test/
5658
cp ../../../build/source/src_pdiag/test/hsolver_diago .
5759
./hsolver_diago
5860
bash diago_parallel_test.sh
61+
- name: Test performance
62+
run: |
63+
cd examples/performance
64+
ls -d P1*lcao* > allcase
65+
sed -i '/ks_solver/d' P1*lcao*/INPUT
66+
sed -i '$a ks_solver cusolver' P1*lcao*/INPUT
67+
bash run.sh
68+
cat sumall.dat
69+
5970
6071
stop-runner:
6172
name: Stop self-hosted EC2 runner

0 commit comments

Comments
 (0)