Pablo Zubieta
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # PySAGES installation notes Collections of recipes for installing [PySAGES](https://github.com/SSAGESLabs/PySAGES) ### Installation of HOOMD and PySAGES using a conda environment in a PC *Requirements:* - A git installation - A conda installation (consider using [miniforge](https://github.com/conda-forge/miniforge) instead of miniconda) - CUDA (optional) if you have a Nvidia GPU *Steps:* 1. Create new conda environment ```sh conda activate pysages ``` 2. Activate your conda environment ```sh conda activate pysages ``` 3. Install hoomd ```sh conda install -c conda-forge hoomd ``` or if you have a GPU ```sh conda install -c conda-forge hoomd=*=*gpu* ``` 5. Get and build hoomd-dlext ```sh git clone https://github.com/SSAGESLabs/hoomd-dlext cd hoomd-dlext ./build.sh ``` ### Gotchas ### Installation of HOOMD and PySAGES on midway2 *Load required modules* ```sh module load python/anaconda-2021.05 module load gcc/10.2.0 cmake/3.15 cuda/11.2 eigen/3.3 ``` *Steps* 1. Create a conda environment ```sh conda create -n pysages ``` ```sh source activate pysages ``` 2. Install HOOMD required libraries ```sh conda install -c conda-forge pybind11 ``` ```sh conda install python=3.8 #[Downgrade for numba. If pybind11 installs python=3.10; numba installation may fail.] ``` 3. Download HOOMD source ```sh curl -O https://glotzerlab.engin.umich.edu/Downloads/hoomd/hoomd-v2.9.7.tar.gz tar -zxvf hoomd-v2.9.7.tar.gz cd hoomd-v2.9.7.tar.gz mkdir build cd build ``` 4. Install HOOMD ```sh PYTHON_EXECUTABLE=$(which python3) HOOMD_ROOT=$(${PYTHON_EXECUTABLE} -c 'import site; print(site.getsitepackages()[0])')` cmake ../ \ -DCMAKE_INSTALL_PREFIX=$HOOMD_ROOT \ -DCOPY_HEADERS=ON \ -DENABLE_CUDA=ON \ -DCMAKE_C_COMPILER=/software/gcc-10.2.0-el7-x86_64/bin/gcc\ -DCMAKE_CXX_COMPILER=/software/gcc-10.2.0-el7-x86_64/bin/g++ make -j 10 # On an interactive GPU node. make install ``` 5. Install HOOMD-dlext [currently minimum version is 3.16 (can be installed using source code or conda environment easily); midway2 max version is 3.15] ```sh git clone https://github.com/SSAGESLabs/hoomd-dlext source build.sh # Edit cuda path to cuda/11.2 on midway2 ``` 6. Install other required libraries and JAX ```sh conda install numpy numba ``` ```sh conda install -c conda-forge cupy ``` ```sh conda install gsd matplotlib ``` ```sh pip install --upgrade "jax[cuda11_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html ``` 6. Install PySAGES ```sh git clone pysages cd to pysages pip install . ``` ### Installation of OpenMM and PySAGES using a conda environment on a Mac *Requirements:* - A git installation - A conda installation *Steps:* 1. Create new conda environment ```sh conda create -n pysages python=3 ``` 2. Activate your conda environment ```sh conda activate pysages ``` 3. Install OpenMM ```sh conda install -c conda-forge openmm ``` 4. Install other required libraries and JAX ```sh conda install -c conda-forge clang_osx-64 conda install -c conda-forge clangxx_osx-64 conda install -c conda-forge swig conda install -c conda-forge plum-dispatch conda install -c fastai fastcore conda install -c conda-forge numba pip install jax pip install jaxlib pip install --upgrade jaxlib ``` 5. Install openmm-dlext ```sh git clone https://github.com/pabloferz/openmm-dlext cd openmm-dlext cmake -S . -B build cmake --build build --target install ``` 6. Install PySAGES ```sh git clone https://github.com/SSAGESLabs/PySAGES.git cd PySAGES pip install . ``` ### Installation of OpenMM and PySAGES on midway2 *Load required modules* ```sh module load python/intel-2020.up1 module load gcc/10.2.0 cuda/11.2 ``` *Steps* 1. Create a conda environment ```sh conda create -n pysages-openmm ``` ```sh source activate pysages-openmm ``` 2. Install OpenMM using conda ```sh conda install -c omnia openmm ``` 3. Install jaxlib and jax cuda with pip ```sh pip install jaxlib ``` ```sh pip install --upgrade "jax[cuda11_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html ``` 3. Download and install cmake/3.16 (may take few min) ```sh wget https://cmake.org/files/v3.16/cmake-3.16.0.tar.gz tar -zxvf cmake-3.16.0.tar.gz mkdir installed-files cmakeLocation=$(pwd) ./configure --prefix=$cmakeLocation/installed-files make install ``` 4. Install OpenMM-dlext [currently minimum version is 3.16] ```sh git clone https://github.com/SSAGESLabs/openmm-dlext.git $cmakeLocation/installed-files/bin/cmake -S . -B build $cmakeLocation/installed-files/bin/cmake --build build --target install ``` 5. Install PySAGES ```sh git clone pysages cd to pysages pip install . ``` 6. If it doesn't work, upgrade python (if prompted, upgrade openmm), then rerun jaxlib ```sh conda install python=3.9.10 ``` ```sh pip install --upgrade "jax[cuda11_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html ``` 7. Re-install openmm-dlext. ```sh cd openmm-dlext rm -f -r build $cmakeLocation/installed-files/bin/cmake -S . -B build $cmakeLocation/installed-files/bin/cmake --build build --target install ``` 8. Re-install PySAGES ```sh cd pysages pip install . ``` 9. install cupy ```sh conda install cupy ``` ### Installation of PySAGES on midway3 Summary of [this discussion](https://github.com/SSAGESLabs/PySAGES/discussions/96) and [this discussion](https://github.com/SSAGESLabs/PySAGES/issues/316). 1. Load the modules: ``` module load pysages ``` 2. Then, if you want to use your own version of PySAGES, that environment can be cloned an modified with the following: ``` conda create --clone pysages-0.4.0 --name mypysages # clone the env conda activate mypysages cd PySAGES # move to your local version of github.com/SSAGESLabs/PySAGES pip install -e . # run inside pysages directory to get latest dev in editable mode pip install --upgrade jaxlib ``` 3. Then you are ready to submit PySAGES jobs. **NOTE.** In case you encounter a [`No GPU/TPU found, falling back to CPU` error](https://github.com/SSAGESLabs/PySAGES/discussions/96) upgrading both `jax` and `jaxlib` by using the following command ([see here for details](https://github.com/SSAGESLabs/PySAGES/discussions/96#discussioncomment-2841226)) should solve that: ``` pip install --upgrade pip ### OLDER (seems not to work anymore) ### # Installs the wheel compatible with Cuda 11.4+ and cudnn 8.2+ (deprecated). ### pip install "jax[cuda11_cudnn82]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html # CUDA 11 installation (this works as of 2023-08-01) # Note: wheels only available on linux. pip install --upgrade "jax[cuda11_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully