0

我想mex -setup在 MATLAB 中运行,但首先我必须vl_compilenn从 MatConvNet 版本运行matconvnet-1.0-beta24。当我运行时,vl_compilenn我收到错误:

C:/ProgramData/MATLAB/SupportPackages/R2018b_1/3P.instrset/mingw_w64.instrset/lib/gcc/x86_64-w64-mingw32/6.3.0/include/tmmintrin.h:
In function '__m64 _mm_alignr_pi8(__m64, __m64, int)':
C:/ProgramData/MATLAB/SupportPackages/R2018b_1/3P.instrset/mingw_w64.instrset/lib/gcc/x86_64-w64-mingw32/6.3.0/include/tmmintrin.h:195:27:
error: '__builtin_ia32_palignr' was not declared in this scope
       (__v1di)__Y, __N * 8);
                           ^
C:/ProgramData/MATLAB/SupportPackages/R2018b_1/3P.instrset/mingw_w64.instrset/lib/gcc/x86_64-w64-mingw32/6.3.0/include/tmmintrin.h:
In function '__m64 _mm_abs_pi32(__m64)':
C:/ProgramData/MATLAB/SupportPackages/R2018b_1/3P.instrset/mingw_w64.instrset/lib/gcc/x86_64-w64-mingw32/6.3.0/include/tmmintrin.h:241:51:
error: '__builtin_ia32_pabsd' was not declared in this scope
   return (__m64) __builtin_ia32_pabsd ((__v2si)__X);
                                                   ^


Error in vl_compilenn>mex_compile (line 529)
mex(mopts{:}) ;

Error in vl_compilenn (line 490)
    mex_compile(opts, srcs{i}, objfile, flags.mexcc) ;

关于这个还能做什么?

4

1 回答 1

0

根据gcc intrinsics 的文档,您必须使用标志“-mssse3”进行编译。

我会尝试在编译标志集中添加这个标志flags.mexcc。我不能给你更多的细节,因为大师是从你的版本进化而来的,脚本vl_compilenn也进化了。

于 2019-09-26T15:50:17.513 回答