This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
MXNet master branch builds on Windows but fails to import in Python #20707
Unanswered
Tenchumaru
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can successfully build MXNet for Windows -- it takes several hours -- but importing
mxnet
in Python fails.I cloned the
master
branch ofapache/incubator-mxnet
from GitHub. The SHA is5d247f1
. I'm on Windows 10 version 21H1 build 19043.1288 asver
reports. I'm compiling with Visual Studio 2019, version 16.11.5. I'm using Python version 3.7.8, the version included with Visual Studio 2019. My CUDA Toolkit is version 11.4. My GPU is a RTX 2070 Super. This is in an Alienware laptop with an Intel i7 and 32 GiB of RAM. Here are my build commands executed inx64 Native Tools Command Prompt for VS 2019
. I derived thecmake
command line from this discussion.The
cmake
output has this note: You might need to add C:\local\opencv\build\x64\vc15\bin to your PATH to be able to run your applications. Before running Python, I set my path withPATH %PATH%;C:\local\opencv\build\x64\vc15\bin;C:\local\OpenBLAS-0.3.18-x64\bin
.The failure above is in
MXSetFlushDenorms
, a function insrc\c_api\c_api.cc
. Here is the compilation command for that file.Since
SUPPORT_FTZ_DMZ
isn't defined, the function is essentially this.Might this be an ABI violation, such as
__stdcall
versus__cdecl
? Am I missing somecmake
flags?Beta Was this translation helpful? Give feedback.
All reactions