Skip to content
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

Make output of MPI test visible #73

Merged
merged 1 commit into from
May 27, 2020
Merged

Make output of MPI test visible #73

merged 1 commit into from
May 27, 2020

Conversation

giordano
Copy link
Member

No description provided.

@giordano giordano requested a review from tkoskela May 26, 2020 10:28
@giordano giordano force-pushed the mg/mpi-test branch 3 times, most recently from 53b2d16 to 7e6e61f Compare May 27, 2020 10:19
@giordano
Copy link
Member Author

giordano commented May 27, 2020

Thanks to #77 I've been able to reduce the size of the grid, to make GitHub Actions suffer much less during the MPI test. This saves about 1-2 minutes of CI for each job compared to the current test on master.

# Flush a newline
println()

# Run the command
rm("tdac.h5"; force = true)
tdac(TDAC.tdac_params(; nprt = 2 * my_size, nobs = 36, padding = 0, enable_timers = true, verbose = true))
tdac(params(; nprt = 2 * my_size, nobs = 36))
Copy link
Member

Choose a reason for hiding this comment

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

Just curious, how/why does this work? I thought the struct is immutable. Is this creating a new struct off of params?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's immutable, but I've defined a method above to do this: it creates a new instance of tdac_params, which changes the fields passed as arguments

@giordano giordano merged commit da97941 into master May 27, 2020
@giordano giordano deleted the mg/mpi-test branch May 27, 2020 12:10
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.

2 participants