-
Notifications
You must be signed in to change notification settings - Fork 3
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
👌 IMPROVE: add siesta_build_cpus
#14
Conversation
@albgar I've added something similar to some other roles. |
Looks faster to me 😄 before (91b7e51, 1 cpu):
after (5b6c60d, 2 cpus):
|
Yeh that makes the CI run a lot quicker! |
@chrisjsewell: The new cpu setting looks fine for the CI, but I wonder what happens if the QM being built has only one cpu. |
no this is the reason to have it, so you specify directly the number of CPUs the VM has in - role: marvel-nccr.libxc # this is used by abinit and siesta
tags: [abinit,siesta]
vars:
libxc_build_cpus: "{{ vm_cpus }}"
- role: marvel-nccr.siesta
tags: [siesta]
vars:
siesta_build_cpus: "{{ vm_cpus }}"
siesta_libxc_root: "{{ libxc_prefix }}"
- role: marvel-nccr.abinit
tags: [abinit]
vars:
abinit_build_cpus: "{{ vm_cpus }}"
abinit_libxc_path: "{{ libxc_prefix }}" |
it will then adapt to how many you set in |
Just yesterday I was testing the new ansible-galaxy siesta role on a clean VM, and I got a couple of errors:
For the first issue, it could be that in Docker the apt problem does not happen... Both things are fixed now. I am going to make another pull request. |
No this just means that if it fails for one platform (e.g. Ubuntu 16) it will not immediately stop running the parallel tests for the other platforms |
you don't need a separate task, you can just add to the first apt task: apt:
update_cache: yes
cache_valid_time: 86400
... i.e. update before installing, but only if the cache has not been updated in the last day |
@albgar are you doing the PR now/soon? |
No description provided.