Intel® oneAPI Data Analytics Library
Learn from community members on how to build compute-intensive applications that run efficiently on Intel® architecture.

Issues Compiling Intel DAAL Example Code

Al-Heji__Ali
Beginner
695 Views

Hello everyone, 

I have been trying to compile one of the example source codes using "icl". I have never had issues compiling Intel MKL code by linking to the MKL libraries: icl mkl_code.cpp  mkl_intel_lp64.lib mkl_tbb_thread.lib mkl_core.lib tbb.lib.

The DAAL example code builds perfectly from VS2017, but whenever I tried to compile the code using Intel Compiler in the command line:

 icl lin_reg_qr_dense_batch.cpp daal_core.lib daal_thread.lib tbb.lib

I get the following error: 

lin_reg_qr_dense_batch.cpp
lin_reg_qr_dense_batch.cpp(31): catastrophic error: cannot open source file "service.h"
  #include <service.h>
                                   ^
compilation aborted for lin_reg_qr_dense_batch.cpp (code 4)
 
Any help would be appreciated.  
Thank you,
Ali
0 Kudos
2 Replies
Gennady_F_Intel
Moderator
695 Views

This header file you may find out into daalroot\examples\cpp\source\utils\  directory. Please add the paths to this directory or copy both of these header files (error_handling.h service.h ) to the working directory and recompile the code.

 

0 Kudos
Al-Heji__Ali
Beginner
695 Views

Thanks for the reply, Gennady. I have added error_handling.h service.h to the code directory.

Now, the new error that I get is:

"

lin_reg_qr_dense_batch.cpp

icl: error #10036: unable to run 'link
"
 
Again, thanks for the help.
Ali
0 Kudos
Reply