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

[FEATURE] Add option to build with shared c runtime on windows #19409

Merged
merged 1 commit into from
Oct 26, 2020

Conversation

vladoovtcharov
Copy link
Contributor

Description

Often it is desirable to use a shared c runtime when build a shared lib on windows. Third party dependencies DMLC and GTEST support this so adding support to mxnet is now easier

Changes

Changed cmake file to not replace 'MD' flags with 'MT' flags if MXNET_FORCE_SHARED_CRT is enabled.
MXNET_FORCE_SHARED_CRT is enabled by default if building a shared lib
Fixed linking for some Debug (which linked to MD instead of MDd)
Added missing RelWithDebinfo and MinSizeRel configurations which were missing in parts.

Comments

Not sure if this should be the default when building a shared lib on windows or just an option?

@mxnet-bot
Copy link

Hey @vladoovtcharov , Thanks for submitting the PR
All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands:

  • To trigger all jobs: @mxnet-bot run ci [all]
  • To trigger specific jobs: @mxnet-bot run ci [job1, job2]

CI supported jobs: [unix-gpu, website, sanity, centos-gpu, windows-cpu, centos-cpu, clang, windows-gpu, miscellaneous, unix-cpu, edge]


Note:
Only following 3 categories can trigger CI :PR Author, MXNet Committer, Jenkins Admin.
All CI tests must pass before the PR can be merged.

@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress and removed pr-awaiting-testing PR is reviewed and waiting CI build and test labels Oct 22, 2020
@vladoovtcharov
Copy link
Contributor Author

@mxnet-bot run ci [greeting, centos-cpu]

@mxnet-bot
Copy link

Jenkins CI successfully triggered : [centos-cpu]

@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-awaiting-review PR is waiting for code review and removed pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test labels Oct 23, 2020
@leezu leezu requested review from yajiedesign and removed request for leezu October 24, 2020 01:51
@szha szha merged commit 8dc3652 into apache:master Oct 26, 2020
@access2rohit access2rohit mentioned this pull request Feb 17, 2021
13 tasks
access2rohit pushed a commit to access2rohit/incubator-mxnet that referenced this pull request Feb 19, 2021
Co-authored-by: vlado <vlado@indicalab.com>
szha pushed a commit that referenced this pull request Feb 23, 2021
Co-authored-by: vlado <vlado@indicalab.com>

Co-authored-by: vlado <vladoovtcharov@gmail.com>
Co-authored-by: vlado <vlado@indicalab.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr-awaiting-review PR is waiting for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants