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

Conversation

@leezu
Copy link
Contributor

@leezu leezu commented Aug 28, 2020

Description

Use GCC 9 for building libmxnet.so in the static build Dockerfiles / on CD:

Of 51 benchmarks ran across these three tested GCC compiler releases, GCC 9.0.0 was the fastest in 23 of the cases while 19 times saw GCC 8.2 the fastest and then nine times saw the two-year-old GCC 7.4.0 winning. Those wishing to dig through all of these compiler benchmark numbers can find them on OpenBenchmarking.org.

https://www.phoronix.com/scan.php?page=article&item=gcc9-eoy-2018

Also fix file exists check in tools/dependencies/protobuf.sh

The build continues to run on CentOS7 and meet the manylinux2014 requirements.

@mxnet-bot
Copy link

Hey @leezu , 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, centos-gpu, unix-cpu, windows-cpu, clang, website, miscellaneous, windows-gpu, centos-cpu, sanity, 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.

@leezu
Copy link
Contributor Author

leezu commented Sep 1, 2020

@mxnet-bot run ci [windows-gpu]

@mxnet-bot
Copy link

Jenkins CI successfully triggered : [windows-gpu]

@leezu
Copy link
Contributor Author

leezu commented Sep 2, 2020

@mxnet-bot run ci [windows-gpu]

@mxnet-bot
Copy link

Jenkins CI successfully triggered : [windows-gpu]

@leezu leezu added the pr-awaiting-review PR is waiting for code review label Sep 3, 2020
Comment on lines 158 to 160
else:
shutil.copy(os.path.join(libdir, 'libgfortran.so.5'), mxdir)
package_data['mxnet'].append('mxnet/libgfortran.so.5')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's possible that user compiled and statically linked libgfortran or this file isn't necessary, so I'd recommend to add the condition check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tools/pip/ is currently coupled with the tools/staticbuild. We should uncouple them but I think it can be part of a separate PR.

Copy link
Member

@szha szha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with addressing the comment in a separate PR if author prefers.

Co-authored-by: Sheng Zha <szha@users.noreply.github.com>
@leezu
Copy link
Contributor Author

leezu commented Sep 16, 2020

@mxnet-bot run ci [unix-cpu]

@mxnet-bot
Copy link

Jenkins CI successfully triggered : [unix-cpu]

@leezu
Copy link
Contributor Author

leezu commented Sep 17, 2020

@mxnet-bot run ci [unix-cpu]

@mxnet-bot
Copy link

Jenkins CI successfully triggered : [unix-cpu]

@leezu leezu merged commit adbc17b into apache:master Sep 17, 2020
@leezu leezu deleted the gcc9 branch September 18, 2020 18:36
leezu added a commit that referenced this pull request Sep 18, 2020
leezu added a commit that referenced this pull request Sep 19, 2020
This reverts commit adbc17b as there is an incompatibility with oneDNN v1.6.
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.

4 participants