Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[Bug]Cannot compile mxnet on windows #14203

Open
stereomatchingkiss opened this issue Feb 19, 2019 · 4 comments
Open

[Bug]Cannot compile mxnet on windows #14203

stereomatchingkiss opened this issue Feb 19, 2019 · 4 comments

Comments

@stereomatchingkiss
Copy link

stereomatchingkiss commented Feb 19, 2019

os : win10 64bits
compiler : vc2015 64 bits
cuda : cuda92
commit hash: bada8a1

Bug 1 : openMP required int in for loop

line 515, line 580, line 607 of mxnet_op.h should change to

for (int i = 0; i < static_cast<int>(N); ++i)

line 729 of utils.h should change to

for (int i = 0; i < static_cast<int>(size); ++i)

line 315, 203, 218, 252 of broad_cast_reduce_inl.h

line 430 of indexing_op.cc

Bug 2 : std::min cannot find overload version

line 340, line 463 of convolution_v1-inl.h should change to

std::min<index_t>(....)

Bug 3 : C1002 link time code generation

Finding a way to fix it, this link suggest

"Link Time Code Generation" should be set to "Profile Guided Optimization - Optimization (/LTCG:PGOptimize)" instead of being blank.

Bug 4 : Uncheck "BUILD_CPP_EXAMPLES" from cmake-gui, but the cpp examples still include in the project files.

@mxnet-label-bot
Copy link
Contributor

Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: Build

@stereomatchingkiss stereomatchingkiss changed the title Cannot compile mxnet on windows [Bug]Cannot compile mxnet on windows Feb 19, 2019
@stereomatchingkiss
Copy link
Author

stereomatchingkiss commented Feb 20, 2019

The project, always show me the error codes c10002

even I select
Linker->Optimization->Link time code generation->"Profile Guided Optimization - Optimization (/LTCG:PGOptimize)"

Always stuck at the function "RspRspOp" of elemwise_binary_op-inl.h

ps : Could this issue be solved before next version(version after 1.3.1) release?

@NeoZhangJianyu
Copy link
Contributor

@stereomatchingkiss This issue has been fixed totally by #14877.
You could try in latest master branch.

@leleamol
Copy link
Contributor

@mxnet-label-bot add [Pending Requester Info]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants