Skip to content

Commit

Permalink
CI only test caliper
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed Sep 28, 2024
1 parent e906b40 commit b7f7460
Showing 1 changed file with 12 additions and 47 deletions.
59 changes: 12 additions & 47 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,9 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
config: [boilerplate, release, debug_cuda_only, debug_mpi_only, debug_threads_only, boilerplate_caliper]
config: [boilerplate_caliper]

include:
- config: boilerplate
PERFFLOWASPECT_WITH_CUDA: ON
PERFFLOWASPECT_WITH_MPI: ON
PERFFLOWASPECT_WITH_MULTITHREADS: ON
CMAKE_BUILD_TYPE: Debug
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: release
PERFFLOWASPECT_WITH_CUDA: ON
PERFFLOWASPECT_WITH_MPI: ON
PERFFLOWASPECT_WITH_MULTITHREADS: ON
CMAKE_BUILD_TYPE: Release
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: debug_cuda_only
PERFFLOWASPECT_WITH_CUDA: ON
PERFFLOWASPECT_WITH_MPI: OFF
PERFFLOWASPECT_WITH_MULTITHREADS: OFF
CMAKE_BUILD_TYPE: Debug
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: debug_mpi_only
PERFFLOWASPECT_WITH_CUDA: OFF
PERFFLOWASPECT_WITH_MPI: ON
PERFFLOWASPECT_WITH_MULTITHREADS: OFF
CMAKE_BUILD_TYPE: Debug
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: debug_threads_only
PERFFLOWASPECT_WITH_CUDA: OFF
PERFFLOWASPECT_WITH_MPI: OFF
PERFFLOWASPECT_WITH_MULTITHREADS: ON
CMAKE_BUILD_TYPE: Debug
PERFFLOWASPECT_WITH_CALIPER: OFF

- config: boilerplate_caliper
PERFFLOWASPECT_WITH_CUDA: OFF
PERFFLOWASPECT_WITH_MPI: OFF
Expand All @@ -62,17 +27,17 @@ jobs:
run: |
sudo apt-get update
sudo apt install clang llvm-dev libjansson-dev libssl-dev bison flex make cmake mpich
# install cuda 12.1
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda-repo-ubuntu2004-12-1-local_12.1.0-530.30.02-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-12-1-local_12.1.0-530.30.02-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2004-12-1-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda
export PATH=/usr/local/cuda-12.1/bin:$PATH
# # install cuda 12.1
# wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
# sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
# wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda-repo-ubuntu2004-12-1-local_12.1.0-530.30.02-1_amd64.deb
# sudo dpkg -i cuda-repo-ubuntu2004-12-1-local_12.1.0-530.30.02-1_amd64.deb
# sudo cp /var/cuda-repo-ubuntu2004-12-1-local/cuda-*-keyring.gpg /usr/share/keyrings/
# sudo apt-get update
# sudo apt-get -y install cuda
# export PATH=/usr/local/cuda-12.1/bin:$PATH
clang++ --version
nvcc --version
# nvcc --version

- name: Clone Caliper
uses: actions/checkout@v2
Expand All @@ -91,7 +56,7 @@ jobs:
- name: Compile check
run: |
export PATH=/usr/local/cuda-12.1/bin:$PATH
# export PATH=/usr/local/cuda-12.1/bin:$PATH
cd src/c
mkdir build install
cd build
Expand Down

0 comments on commit b7f7460

Please sign in to comment.