简体   繁体   English

Python的随机森林距离无法建立(g ++)

[英]Random Forest Distance for Python fails to build (g++)

this implementation of RFD http://www.cse.buffalo.edu/~jcorso/r/snippets.metric_learning.html fails to build for me. RFD的此实现http://www.cse.buffalo.edu/~jcorso/r/snippets.metric_learning.html无法为我构建。 Running the setup.py within the python package, when the following appears: 出现以下内容时,在python包中运行setup.py:

Building Swig Modules:
building librf...
/tmp/cctKDjwA.s: Assembler messages:
/tmp/cctKDjwA.s:12665: Error: no such instruction: `vfnmadd312ss 52(%r14),%xmm5,%xmm2'
/tmp/cctKDjwA.s:14338: Error: no such instruction: `vfnmadd312ss 84(%rdx),%xmm5,%xmm2'
/tmp/cctKDjwA.s:18244: Error: no such instruction: `vfnmadd312ss 228(%rsp),%xmm1,%xmm3'
/tmp/cctKDjwA.s:18389: Error: no such instruction: `vfmadd312ss 272(%rsp),%xmm1,%xmm0'

The line where it fails (checked separately): 失败的行(单独检查):

os.system("g++ -march=native -fPIC -O3 -std=c++0x -c src/librf_wrap.cxx src/librf/*.cc src/librf/semaphores/*.cpp -I/usr/include/" + pyver)

I'm running on Ubuntu 12.04 64-bit with i5-4430. 我正在使用i5-4430在64位Ubuntu 12.04上运行。 Apologies, but I'm unsure what additional info I should add, please suggest. 抱歉,但是我不确定应该添加哪些其他信息,请提出建议。

Thanks for your patience. 谢谢你的耐心。

It's possible that '-march=native' is incorrectly determining your CPU and generating instructions that are illegal for it. '-march = native'可能错误地确定了您的CPU并生成了非法的指令。 Could you try without '-march=native' to see if that is the case? 您可以在没有'-march = native'的情况下尝试查看情况吗?

Note that it's possible to see what '-march=native' is choosing exactly, see this website . 请注意,有可能看到'-march = native'的确切选择,请访问此网站

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM