Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temporarily disable cuda in GitHub CI build #173

Merged
merged 4 commits into from
Sep 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 10 additions & 19 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:

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

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

- config: debug_cuda_only
PERFFLOWASPECT_WITH_CUDA: ON
PERFFLOWASPECT_WITH_CUDA: OFF
PERFFLOWASPECT_WITH_MPI: OFF
PERFFLOWASPECT_WITH_MULTITHREADS: OFF
CMAKE_BUILD_TYPE: Debug
Expand All @@ -50,21 +50,10 @@ 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
clang++ --version
nvcc --version

- name: Compile check
run: |
export PATH=/usr/local/cuda-12.1/bin:$PATH
cd src/c
mkdir build install
cd build
Expand Down Expand Up @@ -121,6 +110,11 @@ jobs:
# Checkout PerfFlowAspect repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v2

- name: Setup build environment
run: |
sudo apt install pipx
pipx ensurepath

- name: Style check c/cpp/h files
run: |
sudo apt-get update
Expand All @@ -133,11 +127,8 @@ jobs:

- name: Install python dependencies
run: |
python -m pip install --upgrade pip flake8 rstfmt

- name: Update black and flake8
run: |
python -m pip install --upgrade black flake8
pipx install flake8 rstfmt
pipx install black flake8

- name: Format check with flake8 and black
run: |
Expand Down
Loading