Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/theLongLab/CATE into main
Browse files Browse the repository at this point in the history
  • Loading branch information
DeshanPerera committed Sep 13, 2024
2 parents 2e767e2 + 0a030f2 commit e921a4f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 6 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: C/C++ CUDA CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

# Install CUDA
- name: Set up NVIDIA CUDA Toolkit
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub
sudo sh -c 'echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt-get update
sudo apt-get install -y cuda-11-7
# Add CUDA to PATH
- name: Add CUDA to PATH
run: |
echo "/usr/local/cuda-11.7/bin" >> $GITHUB_PATH
export PATH=/usr/local/cuda-11.7/bin:$PATH
# Compile using nvcc
- name: Compile
run: nvcc -std=c++17 *.cu *.cpp -o CATE

# Run tests
- name: Run Tests
run: ./CATE -h
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The CATE software is a CUDA based solution to enable rapid processing of large-s

Apollo is already available in CATE for use. Use the **--simulator** or **-sim** command. Documentation and a preprint of the simulation tool, its capabilities, and how to use Apollo are currently being worked on.

The Wiki for Apollo is currently being written and will be complete soon.
The Wiki for Apollo is currently being written and will be completed soon.

---
#### Prerequisites
Expand All @@ -36,19 +36,22 @@ The Wiki for Apollo is currently being written and will be complete soon.

#### How to INSTALL

CATE can be used **on-device** via Ananconda or by downloading and building the GitHub repo. It can also be used **online** via **Google Colab**.
![C/C++ CUDA CI](https://github.com/theLongLab/CATE/actions/workflows/c-cpp.yml/badge.svg?event=push)

CATE can be used **on-device** via **Ananconda** or by downloading and building the **GitHub** repo. It can also be used **online** via **Google Colab**.

For the **Google Colab** notebook please follow the link to [CATE on Colab](https://colab.research.google.com/drive/1p8I2umE1U2gEB95eKwg0-fdtOLbgR13-?usp=sharing).

To install CATE via [**Anaconda**](https://anaconda.org/deshan_CATE/cate):

[![Anaconda-Server Badge](https://anaconda.org/deshan_cate/cate/badges/version.svg)](https://anaconda.org/deshan_cate/cate)
[![Conda Version](https://img.shields.io/conda/v/deshan_CATE/cate)](https://anaconda.org/deshan_cate/cate)
[![Anaconda-Server Badge](https://anaconda.org/deshan_cate/cate/badges/latest_release_date.svg)](https://anaconda.org/deshan_cate/cate)
[![Anaconda-Server Badge](https://anaconda.org/deshan_cate/cate/badges/platforms.svg)](https://anaconda.org/deshan_cate/cate)
[![Conda Platform](https://img.shields.io/conda/pn/deshan_cate/cate)](https://anaconda.org/deshan_cate/cate)

````
conda install deshan_cate::cate`
conda install deshan_cate::cate
````
To ensure successful installation try running:
To ensure successful installation run the following:
````
CATE -h
````
Expand Down

0 comments on commit e921a4f

Please sign in to comment.