Developer Reference

  • 0.9
  • 09/09/2020
  • Public Content
Contents

mkl_set_num_stripes

Specifies the number of partitions along the leading dimension of the output matrix for parallel
?gemm
functions.

Syntax

void mkl_set_num_stripes
(
int
ns
)
;
Include Files
  • mkl.h
Input Parameters
Name
Type
Description
ns
int
ns
> 0 - Specifies the number of partitions to use.
ns
= 0 - Instructs
Intel® oneAPI Math Kernel Library
to use the default partitioning algorithm.
ns
< 0 - Invalid value; ignored.
Description
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® oneAPI Math Kernel Library
?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® oneAPI Math Kernel Library
may actually use a smaller number.
This function takes precedence over the
MKL_NUM_STRIPES
environment variable.

Example

#include "mkl.h" … mkl_set_num_stripes(4); dgemm(...); // Intel MKL uses up to 4 stripes for dgemm

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804