Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

mkl_get_num_stripes

Gets the number of partitions along the leading dimension of the output matrix for parallel ?GEMM functions.

Syntax

ns = mkl_get_num_stripes( )

Fortran Include Files/Modules

  • Include file: mkl.fi
  • Module (compiled): mkl_service.mod
  • Module (source): mkl_service.f90

Description

This function returns the number of stripes, that is, partitions along the leading dimension of the output matrix, for parallel ?GEMM functions. The number of partitions only applies to ?GEMM functions.

The number returned is a hint, and Intel® oneAPI Math Kernel Library (oneMKL) may actually use a smaller number.

Return Values

Name

Type

Description

ns

INTEGER*4

The number of stripes for Intel® oneAPI Math Kernel Library (oneMKL)?GEMM functions to use.

Example

use mkl_service
…
INTEGER*4 ns = mkl_get_num_stripes()
if (ns .GT. 0) print *, 'Intel MKL uses', ns, 'number of stripes'