Skip to content

Commit

Permalink
update CUDA PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
drcut committed Aug 6, 2024
1 parent 8c179e1 commit 0f373d3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ jobs:
uses: Jimver/cuda-toolkit@v0.2.16
with:
cuda: '10.1.243'
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "14.0"
- name: Shown CUDA version
run: |
echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}"
Expand All @@ -45,7 +41,7 @@ jobs:
run: |
mkdir build
cd build
cmake .. -DLLVM_CONFIG_PATH=`which llvm-config` -DCUDA_PATH=${{ github.workspace }}/cuda-10.1 -DHETERO_MARK_DATA=${{ github.workspace }}/data
cmake .. -DLLVM_CONFIG_PATH=`which llvm-config` -DCUDA_PATH=$CUDA_PATH -DHETERO_MARK_DATA=${{ github.workspace }}/data
make -j8
- name: clone SC evaluation code
run: |
Expand All @@ -54,7 +50,7 @@ jobs:
- name: Execute the static shared memory demo
run: |
cd ${{ github.workspace }}/examples/sharedMemory
clang++ -std=c++11 reverse.cu -I../.. --cuda-path=${{ github.workspace }}/cuda-10.1 --cuda-gpu-arch=sm_50 -L${{ github.workspace }}/cuda-10.1/lib64 -lcudart_static -ldl -lrt -pthread -save-temps -v || true
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
Expand Down

0 comments on commit 0f373d3

Please sign in to comment.