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

[Bug]Cannot compile mxnet on windows #14203

@stereomatchingkiss

Description

@stereomatchingkiss

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions