Intel® Math Kernel Library 2018 Developer Reference - C
Specifies the number of partitions along the leading dimension of the output matrix for parallel ?gemm functions.
void mkl_set_num_stripes( int ns );
Name |
Type |
Description |
---|---|---|
ns |
int |
ns > 0 - Specifies the number of partitions to use. ns = 0 - Instructs Intel MKL to use the default partitioning algorithm. ns < 0 - Invalid value; ignored. |
This function enables you to specify the number of stripes, or partitions along the leading dimension of the output matrix, for parallel ?gemm functions. If this number is not set (default) or if it is set to zero, Intel MKL ?gemm functions use the default partitioning algorithm. The specified number of partitions only applies to ?gemm functions.
The number specified is a hint, and Intel MKL may actually use a smaller number.
This function takes precedence over the MKL_NUM_STRIPES environment variable.
#include "mkl.h" … mkl_set_num_stripes(4); dgemm(...); // Intel MKL uses up to 4 stripes for dgemm