Skip to content

Commit

Permalink
Update llamacpp.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
xuedinge233 authored Nov 21, 2024
1 parent e1fff8e commit f23675e
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/llamacpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ jobs:
- name: Build
run: |
cat /root/.bashrc
source /usr/local/Ascend/ascend-toolkit/set_env.sh
cat /usr/local/Ascend/ascend-toolkit/set_env.sh
export LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${LIBRARY_PATH}
echo "-----------111111111-----------------"
echo $LIBRARY_PATH
echo "----------111111111111------------------"
# cat /root/.bashrc
# source /usr/local/Ascend/ascend-toolkit/set_env.sh
# cat /usr/local/Ascend/ascend-toolkit/set_env.sh
# export LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${LIBRARY_PATH}
# echo "-----------111111111-----------------"
# echo $LIBRARY_PATH
# echo "----------111111111111------------------"
cd llama.cpp
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on && make -j32
source /usr/local/Ascend/ascend-toolkit/set_env.sh && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on && make -j32
ubuntu-unit-tests:
runs-on: ubuntu-latest
Expand All @@ -86,16 +86,15 @@ jobs:
- name: Build
run: |
cat /root/.bashrc
source /usr/local/Ascend/ascend-toolkit/set_env.sh
cat /usr/local/Ascend/ascend-toolkit/set_env.sh
export LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${LIBRARY_PATH}
echo "-----------111111111-----------------"
echo $LIBRARY_PATH
echo "----------111111111111------------------"
# cat /root/.bashrc
# source /usr/local/Ascend/ascend-toolkit/set_env.sh
# cat /usr/local/Ascend/ascend-toolkit/set_env.sh
# export LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${LIBRARY_PATH}
# echo "-----------111111111-----------------"
# echo $LIBRARY_PATH
# echo "----------111111111111------------------"
cd llama.cpp
cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on
cmake --build build -j $(nproc)
source /usr/local/Ascend/ascend-toolkit/set_env.sh && cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on && cmake --build build -j $(nproc)
Expand Down

0 comments on commit f23675e

Please sign in to comment.