Skip to content

Parallel streams#16

Merged
tzanio merged 4 commits intomasterfrom
web-parallel-streams
Sep 8, 2022
Merged

Parallel streams#16
tzanio merged 4 commits intomasterfrom
web-parallel-streams

Conversation

@tomstitt
Copy link
Copy Markdown
Member

@tomstitt tomstitt commented Aug 3, 2022

Adds support for parallel streams.

glvis-browser-server will now handle messages with the parallel <nproc> <rank> header; when it sees one it will wait for/build a list with 1 message from each rank then jsonify and write the message. The behavior for serial messages remains unchanged.

The live page with look for json array messages (those that start with [) and decode them.

The stream-list messages are repacked into an Emscripten std::vector<std::string> wrapper (StringArray) then passed to the new displayParallelStreams/updateParallelStreams methods. This approach seems non-optimal but it works for now.

The data_type processing has been removed from the web side and now lives in the compiled code.

Depends on GLVis/glvis#235

@tomstitt tomstitt self-assigned this Aug 3, 2022
@tomstitt tomstitt requested review from publixsubfan and tzanio August 3, 2022 17:15
@tomstitt tomstitt changed the title Draft: Parallel streams Parallel streams Aug 3, 2022
@tomstitt tomstitt requested a review from jandrej August 3, 2022 18:31
Copy link
Copy Markdown
Member

@tzanio tzanio left a comment

Choose a reason for hiding this comment

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

I've seen cases where this is a bit fragile, but it is a huge improvement already so lets merge it!

@tzanio
Copy link
Copy Markdown
Member

tzanio commented Sep 2, 2022

@kanye-quest and @jandrej -- are you interested in reviewing?

@tzanio tzanio merged commit fedc1a8 into master Sep 8, 2022
@tzanio tzanio deleted the web-parallel-streams branch September 8, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants