Skip to content

Commit

Permalink
Fix latest coglet in activate.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nevillelyh committed Jan 28, 2025
1 parent 8f72bfe commit 7fed539
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions script/test-mini
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ docker run --rm \
--volume "$PWD/src/monobase:/opt/r8/monobase:ro" \
--volume "$PWD/build/monobase:/srv/r8/monobase:ro" \
--volume "$PWD/build/root:/root" \
--env R8_COG_VERSION=coglet \
--env R8_CUDA_VERSION=12.4 \
--env R8_CUDNN_VERSION=9 \
--env R8_PYTHON_VERSION=3.12 \
Expand Down
8 changes: 6 additions & 2 deletions src/monobase/activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ else
cog_name="$pkg$(printf '%s' "$R8_COG_VERSION" | sha256sum | cut -c 1-8)"
pkg="$pkg @ $R8_COG_VERSION"
;;
coglet==*)
cog_name="$(echo "$R8_COG_VERSION" | sed 's/coglet==/coglet/')"
coglet*)
if [ "$R8_COG_VERSION" = coglet ]; then
cog_name=cogletlatest
else
cog_name="$(echo "$R8_COG_VERSION" | sed 's/coglet==/coglet/')"
fi
pkg=""
;;
*)
Expand Down

0 comments on commit 7fed539

Please sign in to comment.