如何使这个R / rcpp / Intel daal代码在windows10中工作? [英] How to make this R/ rcpp / Intel daal code work in windows10?

查看:109
本文介绍了如何使这个R / rcpp / Intel daal代码在windows10中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



过去两周我一直在努力让以下codeproject.com文章中包含的代码在Windows 10环境中运行:< br $> b $ b

Lightning-Fast R机器学习算法 [ ^ ]



在我看来,我没有正确设置幕后(例如编译器的选择,进出的链接) daal包,无论是RTools还是兼容编译,修改PATH变量)。



因此,我无法获得编译代码 - 我目前得到的错误示例(使用英特尔编译器)复制如下: br $> b $ b

Hello,

I have struggled for the past 2 weeks to make the code contained in the following codeproject.com article to work in the Windows 10 environment:

Lightning-Fast R Machine Learning Algorithms[^]

It seems to me that I am not correctly setting up behind the scenes (e.g. choice of compiler, the linkages in and out of the daal package, whether RTools is even compatible with compiling this, amendments to PATH variable).

As a result, I cant get the code to compile at all - an example of the errors I am currently getting (using the Intel compiler) are copied below:

C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/xmmintrin.h(61): error #2277: invalid definition of __m128; use #include "xmmintrin.h" instead
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/xlocale(341): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/xlocale(367): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/internal/NAComparator.h(62): error: expected a ")"
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/r_cast.h(32): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/module/Module_generated_CppFunction.h(53): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/module/Module_generated_CppFunction.h(93): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/api/meat/module/Module.h(40): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Users/Documents/R/win-library/3.3/Rcpp/include/Rcpp/api/meat/module/Module.h(40): warning #583: C++ exception handler found but /EHsc option was not specified
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/xstring(2195): warning #583: C++ exception handler found but /EHsc option was not specified







Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.3.210 Build 20180410
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.

icl: NOTE: The evaluation period for this product ends on 4-aug-2018 UTC.
compilation aborted for file35d0134c2a9d.cpp (code 2)
make: *** [file35d0134c2a9d.o] Error 2
Warning message:
running command 'make -f "C:/R/R-33~1.1/etc/x64/Makeconf" -f "C:/R/R-33~1.1/share/make/winshlib.mk" -f "C:/Users/Rashmi/Documents/.R/Makevars.win" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="file35d0134c2a9d.dll" WIN=64 TCLBIN=64 OBJECTS="file35d0134c2a9d.o"' had status 2 

ERROR(s) during compilation: source code errors or compiler configuration errors!





什么我试过了:



我复制了包工具箱然而,根据网站,现在已经使用英特尔XE 2018,因为它的先前版本没有正确安装(并且基于英特尔论坛,事实上mingw可能无法与daal库很好地配合)。



有没有一个善良的灵魂可以一步一步分享,以便我可以复制这篇文章?



非常感谢,

Keyur



What I have tried:

I have replicated the package toolchain as per the website however have now resorted to Intel XE 2018 as it sesms that previous versions were not installing correctly (and based on the intel forums, the fact that mingw may not play nicely with the daal library).

Is there a kind soul that could share a step by step so that I can replicate this article?

Many thanks,
Keyur

推荐答案

(SHLIB_CXXLDFLAGS)' SHLIB_LD ='
(SHLIB_CXXLDFLAGS)' SHLIB_LD='


(SHLIB_CXXLD)' SHLIB =file35d0134c2a9d.dllWIN = 64 TCLBIN = 64 OBJECTS =file35d0134c2a9d.o'的状态为 2

编译期间的错误:源代码错误编译器配置错误!
(SHLIB_CXXLD)' SHLIB="file35d0134c2a9d.dll" WIN=64 TCLBIN=64 OBJECTS="file35d0134c2a9d.o"' had status 2 ERROR(s) during compilation: source code errors or compiler configuration errors!





我尝试了什么:



我复制了根据网站的包工具链现在已经使用了英特尔XE 2018,因为它先前的版本没有正确安装(并且基于英特尔论坛,事实上mingw可能不能很好地与daal库一起使用)。



有没有一个善良的灵魂可以一步一步分享,以便我可以复制这篇文章?



非常感谢,

Keyur



What I have tried:

I have replicated the package toolchain as per the website however have now resorted to Intel XE 2018 as it sesms that previous versions were not installing correctly (and based on the intel forums, the fact that mingw may not play nicely with the daal library).

Is there a kind soul that could share a step by step so that I can replicate this article?

Many thanks,
Keyur


这可能不是最终解决方案,但应修复一些错误并防止出现其他(未来)问题。



您使用的是英特尔编译器,但包含MS Visual C ++头文件。指定英特尔包含文件目录(
This might not be the final solution but should fix some errors and prevent from having other (future) problems.

You are using the Intel compiler but include the MS Visual C++ header files. Specifying the Intel include file directory (


这篇关于如何使这个R / rcpp / Intel daal代码在windows10中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆