Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
6743 Discussions

Where is the value of "CblasRowMajor" set and declared in MKL tutorial sample?

zzzhhh
Beginner
1,018 Views

In the C version of MKL's tutorial, source file dgemm_example.c, line 71:

    cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, 
                m, n, p, alpha, A, p, B, n, beta, C, n);

Where is the varialble `CblasRowMajor` declared and where is the value of this variable set? I couldn't find any clue about it in the source file. Thank you for your help.

0 Kudos
1 Solution
Gennady_F_Intel
Moderator
1,018 Views

These declarations you may see into header files, e.x. - mkl_cblas.h:

typedef enum {CblasRowMajor=101, CblasColMajor=102} CBLAS_LAYOUT;

View solution in original post

2 Replies
Gennady_F_Intel
Moderator
1,019 Views

These declarations you may see into header files, e.x. - mkl_cblas.h:

typedef enum {CblasRowMajor=101, CblasColMajor=102} CBLAS_LAYOUT;

zzzhhh
Beginner
1,018 Views

Thank you, Gennady. I had thought it is a variable; turns out that it is an enum constant ...

Reply