Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
technical:recipes:openmm [2024-07-29 14:27] – bkang | technical:recipes:openmm [2024-07-29 14:50] (current) – [VALET Package Definition] bkang | ||
---|---|---|---|
Line 59: | Line 59: | ||
- | ==== Building OpenMM ==== | + | ===== Building OpenMM |
With the new virtual environment activated, we can now build OpenMM. | With the new virtual environment activated, we can now build OpenMM. | ||
Line 78: | Line 78: | ||
===== VALET Package Definition ===== | ===== VALET Package Definition ===== | ||
- | Assuming the workgroup does //not// already have a TensorFlow | + | The new virtual environment can easily be added to your login shell and job runtime environments using VALET. |
+ | Assuming the workgroup does //not// already have a OpenMM | ||
- | < | + | < |
- | tensorflow: | + | openmm: |
- | prefix: / | + | prefix: / |
- | description: | + | description: |
flags: | flags: | ||
- no-standard-paths | - no-standard-paths | ||
Line 89: | Line 90: | ||
- action: source | - action: source | ||
script: | script: | ||
- | sh: anaconda-activate.sh | + | sh: anaconda-activate-2020.sh |
order: failure-first | order: failure-first | ||
success: 0 | success: 0 | ||
versions: | versions: | ||
- | | + | |
- | description: | + | description: |
- | dependencies: | + | dependencies: |
- | - intel-python/2020u2: | + | - anaconda/2024.02 |
- | "2.3.0: | + | |
- | description: | + | |
- | dependencies: | + | |
- | - intel-python/ | + | |
</ | </ | ||
- | would be added to '' | + | would be added to '' |
- | <file tensorflow.vpkg_yaml> | + | ===== Using the Virtual Environment ===== |
- | tensorflow: | + | |
- | prefix: / | + | |
- | description: | + | |
- | flags: | + | |
- | - no-standard-paths | + | |
- | actions: | + | |
- | - action: source | + | |
- | script: | + | |
- | sh: anaconda-activate.sh | + | |
- | order: failure-first | + | |
- | success: 0 | + | |
- | versions: | + | |
- | " | + | |
- | description: | + | |
- | dependencies: | + | |
- | - intel-python/ | + | |
- | " | + | |
- | description: | + | |
- | dependencies: | + | |
- | - intel-python/ | + | |
- | " | + | |
- | description: | + | |
- | dependencies: | + | |
- | - intel-python/ | + | |
- | </ | + | |
- | <note warning> | + | The versions of the virtual environment declared in the VALET package |
- | + | ||
- | <note tip>On Caviness after a user has used the '' | + | |
- | + | ||
- | With a properly-constructed package definition file, you can now check for your versions of TensorFlow: | + | |
<code bash> | <code bash> | ||
- | [(it_nss: | + | $ vpkg_versions |
Available versions in package (* = default version): | Available versions in package (* = default version): | ||
- | [/work/my_workgroup/sw/valet/tensorflow.vpkg_yaml] | + | [/work/it_css/sw/valet/openmm.vpkg_yaml] |
- | tensorflow | + | openmm |
- | * 2.2.0:gpu 2.2.0 with GPU support | + | * 20240726 |
- | 2.3.0:intel,python3.8 | + | </ |
- | + | ||
- | : | + | You can import openmm, activating the virtual environment is accomplished using the '' |
+ | |||
+ | <code bash> | ||
+ | $ vpkg_require openmm/ | ||
+ | Adding dependency `anaconda/ | ||
+ | Adding package `openmm/ | ||
+ | (/ | ||
+ | ~/ | ||
+ | Python | ||
+ | Type " | ||
+ | >>> | ||
+ | >>> | ||
</ | </ |