From e3c8d19e2d9eec83073ef846a43c36ddf3b992d1 Mon Sep 17 00:00:00 2001 From: Alfio Lazzaro Date: Thu, 2 Jun 2022 10:20:58 +0200 Subject: [PATCH] Add C++ tests and fix corresponding links --- DBCSR.md | 3 +++ docs/guide/2-user-guide/2-tests/index.md | 9 ++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/DBCSR.md b/DBCSR.md index ffe8929b215..fa26d64242f 100644 --- a/DBCSR.md +++ b/DBCSR.md @@ -10,6 +10,7 @@ github: https://github.com/cp2k/dbcsr/blob/master/AUTHORS fpp_extensions: F fixed_extensions: extensions: F +preprocessor: cpp -traditional-cpp -E -Wno-invalid-pp-token include: ../src predocmark: > media_dir: @CMAKE_SOURCE_DIR@/docs/media @@ -29,6 +30,8 @@ graph: false search: false favicon: @CMAKE_SOURCE_DIR@/docs/media/logo/logo.png version: @dbcsr_VERSION@ +exclude: Makefile +extra_filetypes: cpp # --- -------------------- diff --git a/docs/guide/2-user-guide/2-tests/index.md b/docs/guide/2-user-guide/2-tests/index.md index 3980073254b..0346c35279c 100644 --- a/docs/guide/2-user-guide/2-tests/index.md +++ b/docs/guide/2-user-guide/2-tests/index.md @@ -9,13 +9,13 @@ title: Tests - [[dbcsr_test_csr_conversions(program)]] (fortran) : test DBCSR to CSR conversion with random matrices - [[dbcsr_tas_unittest(program)]] (fortran) : unit test for tall-and-skinny matrices - [[dbcsr_tensor_unittest(program)]] (fortran) : unit test for tensor functionalities -- [dbcsr_tensor_test](../../../../tests/dbcsr_tensor_test.cpp) (c++) : test the tensor contraction (13|2)x(54|21)=(3|45) 31 and other functions +- [dbcsr_tensor_test](../../../sourcefile/dbcsr_tensor_test.cpp.html) (c++) : test the tensor contraction (13|2)x(54|21)=(3|45) 31 and other functions ### GPU-backend correctness tests: - [[dbcsr_unittest_3(program)]] (fortran) : test matrix-multiply with various block sizes that are run by the libsmm_acc GPU backend if DBCSR is compiled with GPU support -- [libsmm_acc_unittest_multiply](../../../../tests/libsmm_acc_unittest_multiply.cpp) (c++) : tests all libsmm_acc transpose kernels -- [libsmm_acc_unittest_transpose](../../../../tests/libsmm_acc_unittest_transpose.cpp) (c++) : tests all libsmm_acc batch-multiplication kernels +- [libsmm_acc_unittest_multiply](../../../sourcefile/libsmm_acc_unittest_multiply.cpp.html) (c++) : tests all libsmm_acc transpose kernels +- [libsmm_acc_unittest_transpose](../../../sourcefile/libsmm_acc_unittest_transpose.cpp.html) (c++) : tests all libsmm_acc batch-multiplication kernels ## Performance tests @@ -25,7 +25,7 @@ DBCSR performance tests: ### GPU backend performance tests: -- [libsmm_acc_timer_multiply](../../../../tests/libsmm_acc_timer_multiply.cpp) (c++) : time all libsmm_acc batch-multiplication kernels +- [libsmm_acc_timer_multiply](../../../sourcefile/libsmm_acc_timer_multiply.cpp.html) (c++) : time all libsmm_acc batch-multiplication kernels ## Running Tests @@ -68,4 +68,3 @@ export OMP_NUM_THREADS=[t]; mpirun -np [n] ./build/tests/dbcsr_perf tests/input. Examples of input files can be found in `tests/inputs` for different sizes of matrices and different block sizes. You can also write custom input files: for more information, follow the template in `tests/input.perf`. -