Skip to content

Commit

Permalink
Make a user-specific db cache (#727)
Browse files Browse the repository at this point in the history
Based on feedback from OLCF, users may need to se the MIOPEN cache prior
to running `smart validate`. The installation instructions for Frontier
have been updated accordingly.

[ committed by @ashao ]
[ reviewed by @MattToast ]
  • Loading branch information
ashao authored Sep 26, 2024
1 parent e8eaa2b commit 10bdeac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions doc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Released on 25 September, 2024

Description

- Add instructions for Frontier to set the MIOPEN cache
- Refine Frontier documentation for proper use of miniforge3
- Refactor to the RedisAI build to allow more flexibility in versions
and sources of ML backends
Expand All @@ -40,6 +41,10 @@ Description

Detailed Notes

- On Frontier, the MIOPEN cache may need to be set prior to using
RedisAI in the ``smart validate``. The instructions for Frontier
have been updated accordingly.
([SmartSim-PR727](https://github.com/CrayLabs/SmartSim/pull/727))
- On Frontier, the recommended way to activate conda environments is
to go through source activate. This also means that ``conda init``
is not needed. The instructions for Frontier have been updated to
Expand Down
16 changes: 11 additions & 5 deletions doc/installation_instructions/platform/frontier.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ these instructions, being sure to set the following variables

.. code:: bash
# Optimizations for inference
export MIOPEN_USER_DB_PATH="/tmp/${USER}/my-miopen-cache"
export MIOPEN_CUSTOM_CACHE_DIR=$MIOPEN_USER_DB_PATH
rm -rf $MIOPEN_USER_DB_PATH
mkdir -p $MIOPEN_USER_DB_PATH
# Run the install validation utility
smart validate --device gpu
The following output indicates a successful install:
Expand Down Expand Up @@ -96,11 +103,10 @@ build, and some variables should be set to optimize performance:
source activate smartsim
# Optimizations for inference
export SCRATCH=/lustre/orion/$PROJECT_NAME/scratch/$USER/
export MIOPEN_USER_DB_PATH=/tmp/miopendb/
export MIOPEN_SYSTEM_DB_PATH=$MIOPEN_USER_DB_PATH
mkdir -p $MIOPEN_USER_DB_PATH
export MIOPEN_DISABLE_CACHE=1
export MIOPEN_USER_DB_PATH="/tmp/${USER}/my-miopen-cache"
export MIOPEN_CUSTOM_CACHE_DIR=${MIOPEN_USER_DB_PATH}
rm -rf ${MIOPEN_USER_DB_PATH}
mkdir -p ${MIOPEN_USER_DB_PATH}
Binding DBs to Slingshot
------------------------
Expand Down

0 comments on commit 10bdeac

Please sign in to comment.