sru
sru copied to clipboard
build error
who can helps?
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86/link.exe" sru_cpu_impl.o /nologo /DLL caffe2.lib _C.lib /LIBPATH:E:\python370\libs /LIBPATH:E:\python370\lib\site-packages\torch\lib /out:sru_cpu_impl.pyd
python37.lib(python37.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' ninja: build stopped: subcommand failed.
my build.ninja file:
ninja_required_version = 1.3 cxx = c++
cflags = -DTORCH_EXTENSION_NAME=sru_cpu_impl -IE:\python370\lib\site-packages\torch\lib\include -IE:\python370\lib\site-packages\torch\lib\include\TH -IE:\python370\lib\site-packages\torch\lib\include\THC -IE:\python370\Include -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 ldflags = /DLL caffe2.lib _C.lib /LIBPATH:E:\python370\libs /LIBPATH:E:\python370\lib\site-packages\torch\lib
rule compile command = cl /showIncludes $cflags -c $in /Fo$out deps = msvc
rule link command = "C$:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86/link.exe" $in /nologo $ldflags /out:$out
build sru_cpu_impl.o: compile E$:\python370\Lib\site-packages\sru\sru_cpu_impl.cpp
build sru_cpu_impl.pyd: link sru_cpu_impl.o
default sru_cpu_impl.pyd
It seems a lot people are having issues compiling the cpp code using ninja
.
This is only needed for inference on CPU. I'll release version that makes this optional..
It seems a lot people are having issues compiling the cpp code using
ninja
. This is only needed for inference on CPU. I'll release version that makes this optional..
thanks for your reply I manually complied sru_cpu_impl.pyd and I can run sru_functional.py without any error.
but when I import sru in other py script, still got error:
Traceback (most recent call last):
File "E:\python370\Scripts\sru.py", line 3, in
Have a PR open to address the issue: https://github.com/taolei87/sru/pull/76