Skip to content

[RF] Follow up on RooFit multiprocessing developments#9345

Merged
guitargeek merged 4 commits into
root-project:masterfrom
guitargeek:multiprocess_followup_1
Nov 26, 2021
Merged

[RF] Follow up on RooFit multiprocessing developments#9345
guitargeek merged 4 commits into
root-project:masterfrom
guitargeek:multiprocess_followup_1

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

This PR contains some follow-up changes to #8700 and #9078:

Returning a `std::shared_ptr` is unnessecarily restrictive. One should
return `std::unique_ptr`, which can be implicitely moved to
`std::shared_ptr`.
This changes was motivated by an unused variable warning when building
not in debug mode.
THe ZeroMQ headers are only a build-time dependency for RooFit and they
should not be installed.
@guitargeek guitargeek force-pushed the multiprocess_followup_1 branch from 1319a98 to c1a186d Compare November 26, 2021 11:37
@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@guitargeek guitargeek requested a review from egpbos November 26, 2021 11:38
@root-project root-project deleted a comment from phsft-bot Nov 26, 2021
@phsft-bot

Copy link
Copy Markdown

Build failed on ROOT-performance-centos8-multicore/default.
Running on olbdw-01.cern.ch:/data/sftnight/workspace/root-pullrequests-build
See console output.

Warnings:

  • [2021-11-26T11:41:03.857Z] /data/sftnight/workspace/root-pullrequests-build/root/graf2d/mathtext/src/table/adobeglyphlist.h:128:44: warning: unpaired UTF-8 bidirectional character detected [-Wbidirectional=]
  • [2021-11-26T11:41:03.857Z] /data/sftnight/workspace/root-pullrequests-build/root/graf2d/mathtext/src/table/adobeglyphlist.h:128:55: warning: unpaired UTF-8 bidirectional character detected [-Wbidirectional=]
  • [2021-11-26T11:46:12.764Z] /data/sftnight/workspace/root-pullrequests-build/root/graf2d/postscript/src/AdobeGlyphList.h:110:44: warning: unpaired UTF-8 bidirectional character detected [-Wbidirectional=]
  • [2021-11-26T11:46:12.764Z] /data/sftnight/workspace/root-pullrequests-build/root/graf2d/postscript/src/AdobeGlyphList.h:110:55: warning: unpaired UTF-8 bidirectional character detected [-Wbidirectional=]

if (set_hwm) {
auto rc = zmq_setsockopt(*pusher, ZMQ_SNDHWM, &hwm, sizeof hwm);
assert(rc == 0);
EXPECT_EQ(zmq_setsockopt(*pusher, ZMQ_SNDHWM, &hwm, sizeof hwm), 0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah yes, very good, I just copy pasted this from a libzmq test which didn't use GoogleTest, this makes more sense here!

@egpbos egpbos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me, and thanks for taking this up!

Would it be possible to change Jenkins configuration to build with -Droofit_multiprocess=ON -Dbuiltin_zeromq=ON -Dbuiltin_cppzmq=ON? Otherwise it has to be tested manually each time.

@guitargeek

Copy link
Copy Markdown
Contributor Author

Thanks Patrick! I'll see how we can enable multiprocessing in Jenkins by default later.

@guitargeek guitargeek merged commit 6cb78dc into root-project:master Nov 26, 2021
@guitargeek guitargeek deleted the multiprocess_followup_1 branch November 26, 2021 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants