Skip to content

Commit 2f9d2df

Browse files
authored
Merge pull request #996 from pxlxingliang/develop
test(cusolver): add the running of hsolver_diago in CUDA TEST
2 parents d295d5d + 9fce1a0 commit 2f9d2df

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/cuda.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,20 @@ jobs:
4242
run: |
4343
nvidia-smi
4444
cmake -B build -DUSE_CUSOLVER_LCAO=ON
45-
cmake --build build -j4
45+
cmake --build build -j4
4646
cmake --install build
47+
cmake -B build -DBUILD_TESTING=ON
48+
cmake --build build -j4 --target hsolver_diago
4749
- name: Test
4850
run: |
4951
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda/lib64
5052
cd tests/integrate
5153
echo "ks_solver cusolver" >> ./270_NO_MD_2O/INPUT
5254
./Autotest.sh -r 270_NO_MD_2O
55+
cd ../../source/src_pdiag/test/
56+
cp ../../../build/source/src_pdiag/test/hsolver_diago .
57+
./hsolver_diago
58+
bash diago_parallel_test.sh
5359
5460
stop-runner:
5561
name: Stop self-hosted EC2 runner

examples/performance/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ check_out() {
3737
cal=$(grep "$key" $outfile | awk '{printf "%.'$ca'f\n",$2}')
3838
ref=$(grep "$key" result.ref | awk '{printf "%.'$ca'f\n",$2}')
3939
deviation=$(awk 'BEGIN {x='$ref';y='$cal';if (x<y) {a=y-x} else {a=x-y};printf "%.'$ca'f\n",a}')
40-
deviation1=$(awk 'BEGIN{print '$deviation'*(10**'$ca')}')
41-
40+
deviation1=$(awk 'BEGIN{print '$deviation'*(10^'$ca')}')
41+
4242
if [ $key == "totaltimeref" ]; then
4343
break
4444
fi

0 commit comments

Comments
 (0)