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

The case for cpu parallel computing #279

Open
dili5 opened this issue Sep 10, 2024 · 1 comment
Open

The case for cpu parallel computing #279

dili5 opened this issue Sep 10, 2024 · 1 comment

Comments

@dili5
Copy link

dili5 commented Sep 10, 2024

Hello, Professor:

 Any case study on cpu parallel computing please? Or how it is used.
@stoiver
Copy link
Member

stoiver commented Sep 10, 2024

@dili5 We have examples of parallel code in the anuga_core/examples/parallel directory.

For instance to run on 3 cores use:

mpiexec -np 3 python -u  run_parallel_tsunami.py

The -u helps to flush the print buffers and so makes for cleaner output during the simulation.

Note that in a parallel script, you first create your standard domain on process 0, and then distribute that sequential domain to a parallel domain which has instances on all the processes.

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

No branches or pull requests

2 participants