Intel® oneAPI Data Analytics Library
Community support for building compute-intensive applications that run fast on Intel® architecture.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Issues Compiling Intel DAAL Example Code

Al-Heji__Ali
Beginner
317 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
317 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.

 

Al-Heji__Ali
Beginner
317 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
Reply