| 1 |
Due to licensing restrictions, we've added a simple testing framework instead of |
| 2 |
leveraging https://github.com/google/benchmark. |
| 3 |
# To add a blas3 routine to this directory |
| 4 |
1. Create `KokkosBlas3_ROUTINE_perf_test.hpp` |
| 5 |
2. Populate `KokkosBlas3_ROUTINE_perf_test.hpp` with: |
| 6 |
```bash |
| 7 |
// Forward declarations |
| 8 |
void do_ROUTINE_serial_blas(options_t options); |
| 9 |
void do_ROUTINE_serial_batched(options_t options); |
| 10 |
void do_ROUTINE_parallel_blas(options_t options); |
| 11 |
void do_ROUTINE_parallel_batched(options_t options); |
| 12 |
|
| 13 |
// ROUTINE invoke table |
| 14 |
void (*do_ROUTINE_invoke[LOOP_N][TEST_N])(options_t) = { |
| 15 |
do_ROUTINE_serial_blas, |
| 16 |
do_ROUTINE_serial_batched, |
| 17 |
do_ROUTINE_parallel_blas, |
| 18 |
do_ROUTINE_parallel_batched |
| 19 |
}; |
| 20 |
``` |
| 21 |
3. Update the definitions in `KokkosBlas3_common.hpp`, where the comment `//ADD MORE BLAS3 ROUTINES HERE` is. |
| 22 |
4. Add the `do_ROUTINE_invoke` table to the `routine_table` in |
| 23 |
`KokkosBlas3_perf_test.cpp`, where the comment `//ADD MORE BLAS3 ROUTINES HERE` is. |
| 24 |
5. Update the commandline argument processing in |
| 25 |
`KokkosBlas3_perf_test.cpp` to specify how to run ROUTINE. |
| 26 |
6. To run the new routine by default, append `ROUTINE,` to `#define DEFAULT_BLAS_ROUTINES` in `KokkosBlas3_common.hpp`. |