Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

matrix_multiply sample for MKL error #4

Open
pqLee opened this issue Nov 28, 2019 · 1 comment
Open

matrix_multiply sample for MKL error #4

pqLee opened this issue Nov 28, 2019 · 1 comment

Comments

@pqLee
Copy link

pqLee commented Nov 28, 2019

I want to compare the performance for different version of matrix_multiply. It works well for "matrix.icc/matrix.gcc/matrix.clang/matrix.dpcpp". But when I run "matrix.mkl", I got an error below:
'''
===== Error: Change matrix kernel to 'multiply5' for compilation with MKL =====
'''
How to change matrix kernel? Thanks

@pqLee pqLee closed this as completed Nov 29, 2019
@pqLee pqLee reopened this Nov 29, 2019
@Abhishek-Intel
Copy link

Abhishek-Intel commented Dec 5, 2019

multiply.h file is defining a global micro MULTIPLY which is used in file thrmodel.cpp, in thrmodel.cpp function(kernel) call for mkl is there.

MULTIPLY micro is set to multiply1, and calling multiply1 function for all versions(gcc, icc, clang, mkl, mic) of executions, but the function(kernel) call for mkl should be multiply5
Update multiply.h:
remove the line “#define MULTIPLY multiply1
add the following lines:
#ifdef USE_MKL
#define MULTIPLY multiply5
#else
#define MULTIPLY multiply1
#endif

Now, you can run for all versions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants