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

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

zzzhhh
Beginner
692 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
692 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
693 Views

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

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

zzzhhh
Beginner
692 Views

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

Reply