I apologise for the esoteric request here but I am struggling to make the daal libraries work in Windows 10 and R 3.4.3. I have installed Parallel Studio 2018 and am running a Xeon Phi 3120A.
I am basing my code on the following link: https://www.codeproject.com/Articles/1151606/Lightning-Fast-R-Machine-Learning-Algorithms and have installed RTools, Rcpp and inline packages, however as they have written the code in Linux, I am coming up with errors that (I believe) relate to the #include daal.h command:
# Create and register a Rcpp plugin plug <- Rcpp:::Rcpp.plugin.maker( include.before = , libs = paste( , , sep= )) registerPlugin( , plug)
When i run this, it says "fatal error: daal.h: No such file or directory". When I then pasted the windows version of daal.h into the R/Include folder, it started complaining about "daal_defines.h" not found (and persists even when I copy that one into the Include folder).
Am I missing something in the syntax for "#include.<daal.h> ", or is it something else fundamental? I noted that the syntax on the Intel website is #include "daal.h" - is my mistake as simple as that?
Any help would be desperately welcomed!
in that case you need to take and copy all daal header files from the daal\include folder. If you look in daal.h, you may see the list of all header files needed for compilation, for example this one - #include "services/daal_defines.h" and all others.
Really appreciate your help Gennady,
I have managed to copy those across but am now getting the following error - would you mind providing me a steer?:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from file66814997eba.cpp:3:0:
C:/PROGRA~1/R/R-34~1.3/include/daal.h:18:0: warning: ignoring #pragma warning [-Wunknown-pragmas]
In file included from C:/PROGRA~1/R/R-34~1.3/include/data_management/data/data_dictionary.h:28:0,
C:/PROGRA~1/R/R-34~1.3/include/data_management/data/data_archive.h: In constructor 'daal::data_management::interface1::DataArchive::DataArchive()':
C:/PROGRA~1/R/R-34~1.3/include/data_management/data/data_archive.h:450:13: warning: 'daal::data_management::interface1::DataArchive::minBlockSize' will be initialized after [-Wreorder]
my previous answer was not too completely correct - instead of copying header folder, you need to set all needed daal's environment variables by using daalvars.bat file. Please refer to the DAAL User's guide for more details.
Thanks Gennady - certainly tried that; i ran the daalvars.bat file that is in the
It doesn't seem to have fixed the problem however...is there anything else I can try?