Skip to content

Commit

Permalink
Merge pull request #45 from bacpop/gpu-flag
Browse files Browse the repository at this point in the history
Add GPU_AVAILABLE macro to makefile for conda
  • Loading branch information
johnlees authored Feb 12, 2025
2 parents ead7e95 + 2bb21b8 commit 2b9bce5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 30 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@ on: [push]

jobs:
build-linux:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v2
with:
cache-env: true
environment-file: environment.yml
cache-environment: true
create-args: >-
python=${{ matrix.python-version }}
- name: Lint with flake8
shell: bash -l {0}
run: |
Expand Down
1 change: 0 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ python:
- requirements: docs/requirements.txt
- method: setuptools
path: docs

3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
# ones.
extensions = [
'sphinx.ext.mathjax',
'sphinx.ext.viewcode'
'sphinx.ext.viewcode',
'sphinx_rtd_theme'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Cython>=0.26.1
Cython>=0.26.1
sphinx_rtd_theme
2 changes: 1 addition & 1 deletion mandrake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

'''Visualisation of pathogen population structure'''

__version__ = '1.2.2'
__version__ = '1.2.3'
22 changes: 0 additions & 22 deletions readthedocs.yml

This file was deleted.

2 changes: 2 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ else
endif
CUDA_LDFLAGS =-L$(LIBLOC)/lib -L${CUDA_HOME}/targets/x86_64-linux/lib/stubs -L${CUDA_HOME}/targets/x86_64-linux/lib
CUDAFLAGS +=-Xcompiler -fPIC -Xptxas -dlcm=ca --cudart static --relocatable-device-code=true $(GENCODE)
CXXFLAGS += -DGPU_AVAILABLE


CPU_OBJS=wtsne_cpu.o python_bindings.o
GPU_OBJS=wtsne_gpu.cu.o
Expand Down

0 comments on commit 2b9bce5

Please sign in to comment.