Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
7234 Discussions

compile mkl example under qt creator 4.2.1 linux 64

agks
Novice
1,431 Views

Hi,

I am trying to compile the example cblas_caxpy example in the following environment

qt creator 4.2.1

qt 5.8.0

compiler : g++

os: linux debian 8.0 64 bits

I linked with lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 and added I guess proper include path but I get the following compile error:

in function 'main':

undefined reference to GetIntegerParameters

undefined reference to GetScalarC

etc..

What did I miss ?

Thanks

Agks

0 Kudos
1 Solution
Zhen_Z_Intel
Employee
1,431 Views

Hi agks,

Are you compiling the sample in MKL examples folder? If so, please notice there's one more source file need to be compiled, common_func.c

Actually, we provided makefile in the directory examples/cblas for building samples, you could use refer to use.

Best regards,
Fiona

View solution in original post

0 Kudos
3 Replies
Zhen_Z_Intel
Employee
1,432 Views

Hi agks,

Are you compiling the sample in MKL examples folder? If so, please notice there's one more source file need to be compiled, common_func.c

Actually, we provided makefile in the directory examples/cblas for building samples, you could use refer to use.

Best regards,
Fiona

0 Kudos
Gennady_F_Intel
Moderator
1,431 Views

GetIntegerParameters and GetScalarC are declared in mkl_example.h file mklroot/examples/cblas/source ). you just need to include this header.

0 Kudos
agks
Novice
1,431 Views

Fiona, you are right I forgot this common_func.c file

Thanks a lot

agks

0 Kudos
Reply