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

add multithreading check to CI #1737

Merged
merged 1 commit into from
Aug 23, 2021
Merged

add multithreading check to CI #1737

merged 1 commit into from
Aug 23, 2021

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Aug 23, 2021

To facilitate #1628's attempt to add support for multithreading via OpenMP, this PR adds multithreading to 2/4 test environments (serial and MPI) of the CI. I verified using the output of config.log from the actual CI runs that the GCC compiler supports OpenMP (and that it therefore does not need to be installed separately).

The current default behavior when compiling with the --with-openmp flag is to use two threads:

meep/configure.ac

Lines 261 to 264 in 3da5613

if test x"$with_openmp" = "xyes"; then
# use 2 openmp threads
RUNCODE="env OMP_NUM_THREADS=2 $RUNCODE"
fi

We may want to consider changing this default value as part of the CI as well.

@stevengj stevengj merged commit 21c94c0 into NanoComp:master Aug 23, 2021
@oskooi oskooi deleted the ci_openmp branch August 23, 2021 21:35
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
mawc2019 pushed a commit to mawc2019/meep that referenced this pull request Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants