Skip to content

Commit

Permalink
Fix issue with mambaforge setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra committed Oct 17, 2023
1 parent cc2efa7 commit 4bed3e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions job_install_hpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ bash Mambaforge-Linux-x86_64.sh -bfp ${MSBS_ROOT}/mambaforge

# Activate Mamba-forge.
eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"
source ${MSBS_ROOT}/mambaforge/etc/profile.d/mamba.sh

# Make sure your base environment is up-to-date.
mamba update --all -y
Expand Down
6 changes: 4 additions & 2 deletions setup_hpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Submit a simple job script on the queue, in which you perform the same test.
# Activate the OpenMM software.
MSBS_ROOT=${VSC_DATA}
eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"
source ${MSBS_ROOT}/mambaforge/etc/profile.d/mamba.sh
mamba activate openmm
# Set the number of threads
export OPENMM_CPU_THREADS=${SLURM_CPUS_ON_NODE}
Expand Down Expand Up @@ -119,8 +120,8 @@ Submit a simple job script on the queue, in which you perform the same test.
1. Add the following to your `.bashrc` file, if you want to facilitate the activation of Mamba-forge, without having it always active:

```bash
MSBS_ROOT=${VSC_DATA}
alias m='eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"'
export MSBS_ROOT=${VSC_DATA}
alias m='eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"; source ${MSBS_ROOT}/mambaforge/etc/profile.d/mamba.sh'
```


Expand Down Expand Up @@ -150,6 +151,7 @@ If your HPC runs an instance of [Open OnDemand](https://openondemand.org/), it i
```bash
module purge
eval "$(${MSBS_ROOT}/mambaforge/bin/conda shell.bash hook)"
source ${MSBS_ROOT}/mambaforge/etc/profile.d/mamba.sh
mamba activate openmm
```
- **Extra Jupyter Arguments:** `--notebook-dir="${MSBS_ROOT}"`
Expand Down
2 changes: 1 addition & 1 deletion setup_laptop.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Take the following steps:
```
Add the following line to your `~/.bashrc` file, which makes it convenient to activate the Mambaforge installation:
```bash
alias m='eval "$(${HOME}/mambaforge/bin/conda shell.bash hook)"'
alias m='eval "$(${HOME}/mambaforge/bin/conda shell.bash hook)"; source ${HOME}/mambaforge/etc/profile.d/mamba.sh'
```
Close the terminal

Expand Down

0 comments on commit 4bed3e2

Please sign in to comment.