Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] add minigun #12540

Closed
wants to merge 3 commits into from
Closed
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
20 changes: 20 additions & 0 deletions recipes/minigun/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mkdir -p build

pushd build

CUDA_SUPPORT="OFF"
CUDA_CMAKE_OPTIONS=""
if [[ $1 == "gpu" ]]; then
CUDA_SUPPORT="ON"
CUDA_CMAKE_OPTIONS="-DCUDA_TOOLKIT_ROOT_DIR=${CUDA_HOME}"
fi

cmake -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DUSE_CUDA=${CUDA_SUPPORT} ${CUDA_CMAKE_OPTIONS} \
-DBUILD_SAMPLES=OFF \
hadim marked this conversation as resolved.
Show resolved Hide resolved
-DCMAKE_BUILD_TYPE="Release" \
..

cmake --build .
cmake --install .
45 changes: 45 additions & 0 deletions recipes/minigun/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% set name = "minigun" %}
{% set version = "0.0.1.dev0" %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a fully released version to build from?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, we should wait to have a git tag before merging this. See dglai/minigun#14


package:
name: {{ name|lower }}
version: {{ version }}

source:
# url: https://github.com/dglai/minigun/archive/{{ version }}.tar.gz
url: https://github.com/dglai/minigun/archive/b41f2f3c79a4840b92a49bab0a60e8e37233eb35.tar.gz
sha256: cba75ed800734d3633f5469dc0c862f176c5368693ec221f3173d57fdcb6d406

build:
number: 0
skip: true # [win]

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} # [linux and cuda_compiler_version != "None"]
- cmake >=3.15
- make # [unix]
host:
- openmp
- dlpack
- dmlc
run:
- dlpack
- dmlc

test:
commands:
- test -f ${PREFIX}/include/minigun.h # [unix]

about:
home: https://github.com/dglai/minigun
license: Apache-2.0
license_family: APACHE
license_file: LICENSE
summary: Light-weight GPU kernel interface for graph operations

extra:
recipe-maintainers:
- hadim