adjust number of threads for sgemv and dgemv