-
Notifications
You must be signed in to change notification settings - Fork 1
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
✨ NEW: Add initial implementation #1
base: master
Are you sure you want to change the base?
Conversation
Copied from Slack message to @ltalirz: eurgh theres a problem with all this Conda business: to get - name: Run abinit test
shell: bash -lic "{{ conda_code_exec }} activate {{ env.name }}; mpirun -np {{ conda_code_test_cpus }} '{{ conda_code_parent_dir }}/{{ conda_code_link_dir }}/envs/{{ env.name }}/bin/abinit' run.in"
args:
executable: /bin/bash
chdir: /tmp/abinit_test/ fails with: bash: this also makes me think; is this going to work when running an AiiDA code? |
For reference this is what it adds to the Docker # >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/root/.local/Miniconda3-py38_4.9.2-Linux-x86_64/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/root/.local/Miniconda3-py38_4.9.2-Linux-x86_64/etc/profile.d/conda.sh" ]; then
. "/root/.local/Miniconda3-py38_4.9.2-Linux-x86_64/etc/profile.d/conda.sh"
else
export PATH="/root/.local/Miniconda3-py38_4.9.2-Linux-x86_64/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<< |
# - abinit_test/Si.psp8 | ||
|
||
# TODO: this doesn not work | ||
# - name: Run abinit test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is what I cannot get to work
The other thing to note here, is that the size of the Conda folder is 1.3 Gb (with both abinit and cp2k envs installed, and after It obviously vastly speeds up the build of the VM though; not having to run code compilations |
To summarize our slack discussion: as you can verify with
When using these codes in AiiDA, it is therefore enough to use a prepend text
and the codes run fine (no need to activate the conda environment). |
It's a hack, but you might be able to resolve this following the instructions shown here: conda/conda#7980 (comment) |
Cheers, I'll check it out! Note, as Leo mentions, technically it looks like you can use executables from the conda env, without activation. But obviously that is not ideal to stray from the intended use pattern, and it would be good to double check the canonical way to do this and understand any side-effects |
No description provided.