Update version to 0.3.21
[platform/upstream/openblas.git] / GotoBLAS_06WeirdPerformance.txt
1         Weird Performance
2
3 1. If you see serious performance loss (extremely low performance),
4    probably you created too many threads or process. Basically GotoBLAS
5    assumes that available cores that you specify are exclusively for
6    BLAS computation. Even one small thread/process conflicts with BLAS
7    threads, performance will become worse.
8
9    The best solution is to reduce your number of threads or insert
10    some synchronization mechanism and suspend your threads until BLAS
11    operation is finished.
12
13
14 2. Simlar problem may happen under virtual machine. If supervisor
15    allocates different cores for each scheduling, BLAS performnace
16    will be bad. This is because BLAS also utilizes all cache,
17    unexpected re-schedule for different core may result of heavy
18    performance loss.
19
20
21 Anyway, if you see any weird performance loss, it means your code or
22 algorithm is not optimal.