Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 8 additions & 5 deletions .github/workflows/dockerbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push docker image
run: sh ./docker/dockerbuild.sh \
"${{github.sha}}" \
"dipy"

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/dipy/gpustreamlines:${{ github.sha }}
ghcr.io/dipy/gpustreamlines:latest
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ if(OPENMP_FOUND)
message(STATUS "OpenMP runtime used: ${OMP_RUNTIME}")
endif()

# Find pybind11
execute_process(COMMAND python -c "import pybind11; print(pybind11.get_cmake_dir())"
OUTPUT_VARIABLE pybind11_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE)
list(APPEND CMAKE_PREFIX_PATH ${pybind11_DIR})
find_package(pybind11 REQUIRED)

# Build library and pybind11 module
add_subdirectory(external/pybind11)
add_library(cuslines_kernels)
target_sources(cuslines_kernels
PRIVATE
Expand Down
6 changes: 2 additions & 4 deletions docker/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ ENV LD_LIBRARY_PATH /opt/anaconda/lib:${LD_LIBRARY_PATH}
RUN conda install -c conda-forge git
RUN pip install numpy>=2.0.0
RUN pip install scipy>=1.13.0 cython nibabel dipy tqdm
RUN pip install pybind11

RUN git clone --recurse-submodules \
https://github.com/dipy/GPUStreamlines.git \
/opt/GPUStreamlines
RUN cd /opt/GPUStreamlines && git reset --hard ${COMMIT}
COPY . /opt/GPUStreamlines/

# compile
RUN cd /opt/GPUStreamlines && mkdir build && cd build \
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# GPUStreamlines

## Installation
When cloning the repo, please use "git clone --recursive" to pull all the requirements.

To install, simply run `pip install .` in the top-level repository directory.

## Running the examples
Expand Down
13 changes: 0 additions & 13 deletions docker/dockerbuild.sh

This file was deleted.

1 change: 0 additions & 1 deletion external/pybind11
Submodule pybind11 deleted from a2e59f
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ version = "1.0.0"
description="GPU-accelerated tractography package"
readme = "README.md"
requires-python = ">=3.7"
dependencies = [
"numpy",
"pybind11"
]

[tool.scikit-build]
cmake.build-type = "Release"
Loading