Skip to content

Commit

Permalink
Merge pull request #20 from BonsonW/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hasindu2008 authored Nov 22, 2024
2 parents 2a76adf + 4c1578c commit 799e8dc
Show file tree
Hide file tree
Showing 228 changed files with 22,532 additions and 5,174 deletions.
99 changes: 85 additions & 14 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,32 @@ name: C/C++ CI

on:
push:
branches: [ 'main', 'compilation_tests' ]
branches: [ '*' ]
pull_request:
branches: [ '*' ]

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
ubuntu_16:
name: Ubuntu 16
runs-on: ubuntu-20.04
container: ubuntu:16.04
steps:
- name: install git
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:git-core/ppa && apt-get update -y && apt-get install git -y
- uses: actions/checkout@v2
with:
submodules: recursive
- name: install packages
run: apt-get update && apt-get install -y zlib1g-dev wget datamash unzip bzip2 make g++ apt-transport-https bc
- name: torch
run: scripts/install-torch2.sh cpu
- name: build
run: make -j2
- name: test
run: export DEVICE=cpu && make test
ubuntu_16_cuda:
name: Ubuntu 16 CUDA
runs-on: ubuntu-20.04
Expand All @@ -35,10 +53,10 @@ jobs:
run: scripts/install-torch2.sh
- name: build cuda=1
run: make cuda=1 -j2
ubuntu_16:
name: Ubuntu 16
ubuntu_18:
name: Ubuntu 18
runs-on: ubuntu-20.04
container: ubuntu:16.04
container: ubuntu:18.04
steps:
- name: install git
run: apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:git-core/ppa && apt-get update -y && apt-get install git -y
Expand All @@ -52,7 +70,7 @@ jobs:
- name: build
run: make -j2
- name: test
run: make test
run: export DEVICE=cpu && make test
ubuntu_20:
name: Ubuntu 20
runs-on: ubuntu-20.04
Expand All @@ -63,13 +81,13 @@ jobs:
- name: install packages
run: sudo apt-get update && sudo apt-get install zlib1g-dev wget datamash unzip bzip2
- name: torch
run: scripts/install-torch2.sh
run: scripts/install-torch2.sh cpu
- name: build
run: make -j2
- name: test
run: make test
ubuntu_20_koi:
name: Ubuntu 20 CUDA KOI
run: export DEVICE=cpu && make test
ubuntu_20_cuda:
name: Ubuntu 20 CUDA
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
Expand All @@ -87,10 +105,63 @@ jobs:
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt-get update
sudo apt-get -y install cuda
- name: koi
run: scripts/install-koi.sh
sudo apt-get -y install cuda-11-1
- name: torch
run: scripts/install-torch2.sh
- name: build koi=1 cuda=1
run: make -j2 koi=1 cuda=1
- name: build cuda=1
run: make -j2 cuda=1
ubuntu_22:
name: Ubuntu 22
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: install packages
run: sudo apt-get update && sudo apt-get install zlib1g-dev wget datamash unzip bzip2 valgrind
- name: torch
run: scripts/install-torch2.sh cpu
- name: build
run: make -j2
- name: test
run: export DEVICE=cpu && make test
- name: valgrind
run: export DEVICE=cpu && test/test.sh mem
ubuntu_22_rocm:
name: Ubuntu 22 ROCm
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: install packages
run: sudo apt-get update && sudo apt-get install zlib1g-dev wget datamash unzip bzip2
- name: rocm
run: |
sudo apt update
wget https://repo.radeon.com/amdgpu-install/5.7.1/ubuntu/jammy/amdgpu-install_5.7.50701-1_all.deb
sudo apt install ./amdgpu-install_5.7.50701-1_all.deb
sudo amdgpu-install --no-dkms --usecase=rocmdev
- name: torch
run: scripts/install-torch2.sh rocm
- name: build
run: make rocm=1 -j2
ubuntu_24:
name: Ubuntu 24
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: install packages
run: sudo apt-get update && sudo apt-get install zlib1g-dev wget datamash unzip bzip2
- name: torch
run: scripts/install-torch2.sh cpu
- name: build
run: make -j2
- name: test
run: export DEVICE=cpu && make test
- name: build asan
run: make clean && make asan=1 -j2
- name: asan
run: export DEVICE=cpu && make test
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*.sql
*.sqlite
*.txt
*.tmp

# OS generated files #
######################
Expand All @@ -44,15 +45,15 @@ Thumbs.db
# binaries
/slorado
/thirdparty/torch
/thirdparty/koi_lib
/thirdparty/toml11
cmake-build-debug/
build/
/models/*
/minimap2
/zstd
test/tmp.fastq
test/tmp.paf
*.fastq
reads.fastq

#Allowed files
!CMakeLists.txt
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "slow5lib"]
path = slow5lib
url = https://github.com/hasindu2008/slow5lib
[submodule "openfish"]
path = openfish
url = https://github.com/warp9seq/openfish.git
98 changes: 0 additions & 98 deletions CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 799e8dc

Please sign in to comment.