From 41d1e506eaac1b9e0cd8b9131c6068d13614da77 Mon Sep 17 00:00:00 2001 From: Ruobing Han Date: Tue, 6 Aug 2024 13:18:48 -0400 Subject: [PATCH] update workflow to eliminate unnecessary commands --- .github/workflows/build.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4adb116..aa8f338 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,32 +33,29 @@ jobs: wget https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.0/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz tar -xf clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz export PATH=$PWD/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH - which clang - llvm-config --version - clang --version - llvm-config --includedir + echo "PATH=$PATH" >> $GITHUB_ENV - name: Download external files run: | git submodule init git submodule update - name: Build project run: | - export PATH=$PWD/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH mkdir build cd build CC=gcc CXX=g++ cmake .. -DHETERO_MARK_DATA=${{ github.workspace }}/data make VERBOSE=1 -j8 + export LD_LIBRARY_PATH=${{ github.workspace }}/build/runtime:${{ github.workspace }}/build/runtime/threadPool:$LD_LIBRARY_PATH + export PATH=${{ github.workspace }}/build/compilation:$PATH + echo "PATH=$PATH" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV - name: clone SC evaluation code run: | cd ${{ github.workspace }} git clone https://github.com/drcut/SC_evaluate - name: Execute the static shared memory demo run: | - export PATH=$PWD/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH cd ${{ github.workspace }}/examples/sharedMemory clang++ -std=c++11 reverse.cu -I../.. --cuda-path=$CUDA_PATH --cuda-gpu-arch=sm_50 -L$CUDA_PATH/lib64 -lcudart_static -ldl -lrt -pthread -save-temps -v || true - export LD_LIBRARY_PATH=${{ github.workspace }}/build/runtime:${{ github.workspace }}/build/runtime/threadPool:$LD_LIBRARY_PATH - export PATH=${{ github.workspace }}/build/compilation:$PATH kernelTranslator reverse-cuda-nvptx64-nvidia-cuda-sm_50.bc kernel.bc hostTranslator reverse-host-x86_64-unknown-linux-gnu.bc host.bc llc --relocation-model=pic --filetype=obj kernel.bc @@ -67,11 +64,8 @@ jobs: ./reverse - name: Execute the dynamic shared memory demo run: | - export PATH=$PWD/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04/bin:$PATH cd ${{ github.workspace }}/examples/dynamicSharedMemory clang++ -std=c++11 reverse.cu -I../.. --cuda-path=$CUDA_PATH --cuda-gpu-arch=sm_50 -L$CUDA_PATH/lib64 -lcudart_static -ldl -lrt -pthread -save-temps -v || true - export LD_LIBRARY_PATH=${{ github.workspace }}/build/runtime:${{ github.workspace }}/build/runtime/threadPool:$LD_LIBRARY_PATH - export PATH=${{ github.workspace }}/build/compilation:$PATH kernelTranslator reverse-cuda-nvptx64-nvidia-cuda-sm_50.bc kernel.bc hostTranslator reverse-host-x86_64-unknown-linux-gnu.bc host.bc llc --relocation-model=pic --filetype=obj kernel.bc