From 2eaabeed100225aca81db469e50a8871636727f8 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Thu, 19 Aug 2021 22:38:18 +0200 Subject: Added a note on clock frequencies for tuning --- doc/tuning.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'doc') diff --git a/doc/tuning.md b/doc/tuning.md index 200cb7cc..96c6bc1f 100644 --- a/doc/tuning.md +++ b/doc/tuning.md @@ -247,3 +247,27 @@ To find out which tuners to run for which routines, you can use the table below. | GEMM HEMM HER2K HERK SYMM SYR2K SYRK TRMM GEMMBATCHED GEMMSTRIDEDBATCHED | Xgemm XgemmDirect Copy Pad Transpose Padtranspose | | TRSM | Xgemm XgemmDirect Copy Pad Transpose Padtranspose Invert | | IM2COL COL2IM | Copy | + + +A note on clock frequencies for tuning +------------- + +You should consider limiting the clock speeds of your processors before performing the tuning. Some examples are given below. + +To set the CPU frequency on a Linux machine: +``` +sudo cpupower frequency-set -g performance +sudo cpupower frequency-set -u 3100 +``` + +To set the NVIDIA GPU frequency on a Linux machine: +``` +sudo nvidia-smi -i -lgc +``` + +You can get the possible frequencies for your NVIDIA GPU using the following command: +``` +sudo nvidia-smi -i --query-supported-clocks=gr --format=csv +``` + +The suggestion is to pick a clock speed that would be stable. Somewhere in the middle of the range of frequencies listed above. -- cgit v1.2.3