-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include Yaml #1482
base: develop
Are you sure you want to change the base?
Include Yaml #1482
Conversation
…ments-ideas-include-yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, to small suggestions to wrap up the PR.
|
||
#ifdef ASCENT_MPI_ENABLED | ||
// make sure all ranks error if the parsing on rank 0 failed. | ||
MPI_Bcast(&include_file_valid, 1, MPI_INT, 0, mpi_comm); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have an error, we should broadcast the error message from rank 0 to all other ranks so their exceptions match
src/libs/ascent/ascent.cpp
Outdated
#ifdef ASCENT_MPI_ENABLED | ||
relay::mpi::broadcast_using_schema(node, 0, mpi_comm); | ||
#endif | ||
|
||
detail::load_included_files_in_node_tree(node, mpi_comm_id); | ||
node.print(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment out the node.print()
…-2-14_1435-a-few-actions-improvements-ideas-include-yaml
Broadcasting error message to all ranks. Removing print statement.
…clude-yaml' of github.com:Alpine-DAV/ascent into task/2025-2-14_1435-a-few-actions-improvements-ideas-include-yaml
@cyrush Thank you for the feedback. I addressed your comments |
src/libs/ascent/ascent.cpp
Outdated
MPI_Bcast(&line_size, 1, MPI_INT, 0, mpi_comm); | ||
if (rank != 0) | ||
emsg.resize(line_size); | ||
MPI_Bcast(const_cast<char*>(emsg.data()), line_size, MPI_CHAR, 0, mpi_comm); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's scary to write into an std::string as a buffer, how about:
Node n_emsg;
if(rank == 0)
{
n_emsg.set(emsg);
}
relay::mpi::broadcast_using_schema(n_emsg, 0, mpi_comm);
emsg = n_emsg.as_string();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a much better way of doing that. Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
No description provided.