initial support for pmr containers in DPL#1593
Conversation
ktf
left a comment
There was a problem hiding this comment.
Please do not change:
class FairMQDevice;
to
#include <FairMQDevice.h>
the rest I am not sure I like, but since I've an idea on how to completely hide DataAllocator all this from the user, I can live with it.
|
@ktf, indeed, the need for include was already gone, forgot to change that back. done. |
|
I had a bit of time to rethink about this. I think you have been too conservative. ;-) IMHO, what we should do is to replace newChunk and adoptChunk to basically be what you do in @matthiasrichter what do you think? |
|
AFAIK there is no support for resizeable messages in FairMQ - last I checked you could only specify a part of the allocated buffer to be sent, the full resize functionality lies with the container (@rbx something new was added?). |
|
I would like to see the developments of @matthiasrichter in the same direction before deciding what to do with this. |
|
Well, if it is independent and provides useful functionality, I don't see a reason not to merge it, in particular since it is a rather small change and looks elegant. But to be honest, I didn't dive deep enough into the framework to judge if this is just a competing strategy to #1846. |
|
Is there any new development here? Probably a decision needs to be taken at some point. |
0484444 to
17cc067
Compare
|
Dear all, i updated the PR to use Matthias' new MessageContext thingy thereby improving compliance with the way-DPL-does-it. As a reminder: this only adds functionality without breaking or changing anything (except for fixing the broken DPLMerger which looks like dead code anyway). |
davidrohr
left a comment
There was a problem hiding this comment.
Looks good to me (besides the clanf-format)
| namespace workflows | ||
| { | ||
| //TODO: this is to make DPLmerger compile, but this code is (and always was) horribly broken - please remove. | ||
| inline void freefn(void* data, void* /*hint*/) { delete static_cast<char*>(data); }; |
There was a problem hiding this comment.
Difficult to judge for me, but if this is broken and should be removed, and it compiles after removal, then it is probably the way to go. I mean, why is it there anyway? Was it just forgotten to remove it?
There was a problem hiding this comment.
probably, a remnant after removal of the Stack::freefn long time ago.
912eb37 to
6ab1557
Compare
|
Ok, fine with me at this point. I still disagree on the idea, but I guess we need something. @matthiasrichter what do you think? |
|
Yes, indeed, documentation and a test would be nice. I assume there is no way to simply call the two adopt and make? |
|
Actually makeVector could become |
|
@ktf, indeed, looks like it could. About the test: I'll think about a test workflow, not sure how to test this "standalone" to actually trigger all the involved dpl internals... |
|
@mkrzewic there is a test already for DataAllocator: https://github.com/AliceO2Group/AliceO2/blob/dev/Framework/Core/test/test_DataAllocator.cxx Something simple there would do. For the renaming we can do it afterwards, unless you find it completely trivial to do. |
depends on #1581