Skip to content

test remove dependency on cuBLAS #141

test remove dependency on cuBLAS

test remove dependency on cuBLAS #141

name: CUDA-HAMR
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build_and_test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install_deps
run: |
export DEBIAN_FRONTEND="noninteractive"
export TZ="America/Los_Angeles"
sudo apt-get update -qq
sudo apt-get install -qq -y git-core gcc g++ cmake automake m4 wget swig python3 nvidia-cuda-toolkit
python3 -mvenv py3k_testing
source py3k_testing/bin/activate
python3 -mpip install numpy
# build for CUDA
- name: build_cuda
run: |
source py3k_testing/bin/activate
mkdir build_cuda
cd build_cuda
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DHAMR_ENABLE_PYTHON=ON -DHAMR_ENABLE_CUDA=ON -DCMAKE_INSTALL_PREFIX=`pwd`/../../hamr-install-cuda ..
make -j2 install
cd ..
# build for CUDA
- name: build_cuda_separate_impl
run: |
source py3k_testing/bin/activate
mkdir build_cuda_sep
cd build_cuda_sep
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DHAMR_ENABLE_PYTHON=ON -DHAMR_ENABLE_CUDA=ON -DHAMR_SEPARATE_IMPL=ON -DCMAKE_INSTALL_PREFIX=`pwd`/../../hamr-install-cuda-sep ..
make -j2 install
cd ..