Skip to content

Commit

Permalink
feat: add CMAKE_CUDA_ARCHITECTURES
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jan 19, 2025
1 parent 3c12e9a commit 0da4f9b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ if [ $ARCH == "x86_64" ]; then

# Check CUDA is available
if [ -f /usr/local/cuda/bin/nvcc ]; then
yarn clean && yarn build-native --CDLLAMA_CUDA=1 --CDVARIANT=cuda
yarn clean && yarn build-native \
--CDLLAMA_CUDA=1 \
--CDVARIANT=cuda \
--CDCMAKE_CUDA_ARCHITECTURES=89 # > GeForce RTX 40 series
else
echo "CUDA is not available, skipping CUDA build"
fi
Expand All @@ -22,7 +25,10 @@ else

# Check CUDA is available
if [ -f /usr/local/cuda/bin/nvcc ]; then
yarn clean && yarn build-native --CDLLAMA_CUDA=1 --CDVARIANT=cuda
yarn clean && yarn build-native \
--CDLLAMA_CUDA=1 \
--CDVARIANT=cuda \
--CDCMAKE_CUDA_ARCHITECTURES=87 # > Jetson Orin series
else
echo "CUDA is not available, skipping CUDA build"
fi
Expand Down

0 comments on commit 0da4f9b

Please sign in to comment.