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
individually apply regex substitutions that add lines #1186
Conversation
@akesandgren please review? MPI is not getting enabled in |
Doh, didn't notice.. poatch looks good to me, but i haven't tested it. |
@migueldiascosta Can we enhance the sanity check somehow to catch that MPI wasn't built? Checking for a particular file, or maybe running some command? |
@boegel hm... |
A ldd check of siesta should reveal a mpi library and avoid using mpirun. ldd %(instalpath)s/bin/siesta | grep libmpi should be non-null |
@akesandgren that was actually not enough to detect, because it was linked with mpi, the problem was that -DMPI was not defined |
Ohhh, evil :-) |
yep :) |
@migueldiascosta So, let's include that as a sanity check command then? custom_commands = ["echo 'SystemName test' | mpirun -np 2 siesta 2>/dev/null | grep PARALLEL"]
super(EB_Siesta, self).sanity_check_step(custom_paths=custom_paths, custom_commands=custom_commands) If I tested this on top of your PR, works like a charm both to detect the broken installation and verify the fixed one, see migueldiascosta#1 |
add sanity check command in Siesta easyblock to verify parallel build
Thanks for the fix @migueldiascosta! |
some of these (the ones with repeated matching patterns) were not being applied because of the way apply_regex_substitutions works