Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6972 Discussions

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

zzzhhh
Beginner
1,413 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,413 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

0 Kudos
2 Replies
Gennady_F_Intel
Moderator
1,414 Views

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

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

0 Kudos
zzzhhh
Beginner
1,413 Views

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

0 Kudos
Reply