-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate C++ conda recipes and add libraft-tests package
Signed-off-by: Jordan Jacobelli <[email protected]>
- Loading branch information
1 parent
7a01581
commit 8ad57f5
Showing
15 changed files
with
186 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
|
||
./build.sh libraft tests bench -v --allgpuarch --compile-dist --compile-nn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cmake_version: | ||
- ">=3.20.1,!=3.23.0" | ||
|
||
nccl_version: | ||
- ">=2.9.9" | ||
|
||
gtest_version: | ||
- "=1.10.0" | ||
|
||
libcusolver_version: | ||
- ">=11.2.1" | ||
|
||
libfaiss_version: | ||
- "1.7.0 *_cuda" |
2 changes: 1 addition & 1 deletion
2
conda/recipes/libraft_nn/build.sh → ...cipes/libraft/install_libraft_distance.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
|
||
./build.sh libraft --install -v --allgpuarch --compile-nn | ||
cmake --install cpp/build --component raft_distance |
2 changes: 1 addition & 1 deletion
2
conda/recipes/libraft_headers/build.sh → ...ecipes/libraft/install_libraft_headers.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
|
||
./build.sh libraft --install -v --allgpuarch | ||
cmake --install cpp/build --component raft |
2 changes: 1 addition & 1 deletion
2
conda/recipes/libraft_distance/build.sh → conda/recipes/libraft/install_libraft_nn.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
|
||
./build.sh libraft --install -v --allgpuarch --compile-dist | ||
cmake --install cpp/build --component raft_nn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
|
||
cmake --install cpp/build --component testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||
|
||
# Usage: | ||
# conda build . -c conda-forge -c nvidia -c rapidsai | ||
{% set version = environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev').lstrip('v') + environ.get('VERSION_SUFFIX', '') %} | ||
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %} | ||
{% set cuda_version = '.'.join(environ.get('CUDA', '9.2').split('.')[:2]) %} | ||
{% set cuda_major = cuda_version.split('.')[0] %} | ||
{% set ucx_py_version = environ.get('UCX_PY_VERSION') %} | ||
{% set cuda_spec = ">=" + cuda_major ~ ",<" + (cuda_major | int + 1) ~ ".0a0" %} # i.e. >=11,<12.0a0 | ||
|
||
package: | ||
name: libraft-split | ||
|
||
source: | ||
git_url: ../../.. | ||
|
||
build: | ||
script_env: | ||
- CC | ||
- CXX | ||
- CUDAHOSTCXX | ||
- PARALLEL_LEVEL | ||
- VERSION_SUFFIX | ||
- PROJECT_FLASH | ||
- CMAKE_GENERATOR | ||
- CMAKE_C_COMPILER_LAUNCHER | ||
- CMAKE_CXX_COMPILER_LAUNCHER | ||
- CMAKE_CUDA_COMPILER_LAUNCHER | ||
- SCCACHE_S3_KEY_PREFIX=libraft-aarch64 # [aarch64] | ||
- SCCACHE_S3_KEY_PREFIX=libraft-linux64 # [linux64] | ||
- SCCACHE_BUCKET=rapids-sccache | ||
- SCCACHE_REGION=us-west-2 | ||
- SCCACHE_IDLE_TIMEOUT=32768 | ||
|
||
requirements: | ||
build: | ||
- cmake {{ cmake_version }} | ||
host: | ||
- cudatoolkit {{ cuda_version }}.* | ||
- faiss-proc=*=cuda | ||
- gmock {{ gtest_version }} | ||
- gtest {{ gtest_version }} | ||
- lapack | ||
- libcusolver {{ libcusolver_version }} | ||
- libfaiss {{ libfaiss_version }} | ||
- librmm {{ minor_version }} | ||
- nccl {{ nccl_version }} | ||
- ucx-proc=*=gpu | ||
- ucx-py {{ ucx_py_version }} | ||
|
||
outputs: | ||
- name: libraft-headers | ||
version: {{ version }} | ||
script: install_libraft_headers.sh | ||
build: | ||
number: {{ GIT_DESCRIBE_NUMBER }} | ||
string: cuda{{ cuda_major }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
requirements: | ||
build: | ||
- cmake {{ cmake_version }} | ||
run: | ||
- cudatoolkit {{ cuda_spec }} | ||
- libcusolver {{ libcusolver_version }} | ||
- librmm {{ minor_version }} | ||
- nccl {{ nccl_version }} | ||
- ucx-proc=*=gpu | ||
- ucx-py {{ ucx_py_version }} | ||
about: | ||
home: http://rapids.ai/ | ||
license: Apache-2.0 | ||
summary: libraft-headers library | ||
- name: libraft-distance | ||
version: {{ version }} | ||
script: install_libraft_distance.sh | ||
build: | ||
number: {{ GIT_DESCRIBE_NUMBER }} | ||
string: cuda{{ cuda_major }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
requirements: | ||
build: | ||
- cmake {{ cmake_version }} | ||
host: | ||
- {{ pin_subpackage('libraft-headers', exact=True) }} | ||
run: | ||
- cudatoolkit {{ cuda_spec }} | ||
- libcusolver {{ libcusolver_version }} | ||
- librmm {{ minor_version }} | ||
- nccl {{ nccl_version }} | ||
- ucx-proc=*=gpu | ||
- ucx-py {{ ucx_py_version }} | ||
- {{ pin_subpackage('libraft-headers', exact=True) }} | ||
about: | ||
home: http://rapids.ai/ | ||
license: Apache-2.0 | ||
summary: libraft-distance library | ||
- name: libraft-nn | ||
version: {{ version }} | ||
script: install_libraft_nn.sh | ||
build: | ||
number: {{ GIT_DESCRIBE_NUMBER }} | ||
string: cuda{{ cuda_major }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
requirements: | ||
build: | ||
- cmake {{ cmake_version }} | ||
host: | ||
- {{ pin_subpackage('libraft-headers', exact=True) }} | ||
run: | ||
- cudatoolkit {{ cuda_spec }} | ||
- faiss-proc=*=cuda | ||
- libcusolver {{ libcusolver_version }} | ||
- libfaiss {{ libfaiss_version }} | ||
- librmm {{ minor_version }} | ||
- {{ pin_subpackage('libraft-headers', exact=True) }} | ||
about: | ||
home: http://rapids.ai/ | ||
license: Apache-2.0 | ||
summary: libraft-nn library | ||
- name: libraft-tests | ||
version: {{ version }} | ||
script: install_libraft_tests.sh | ||
build: | ||
number: {{ GIT_DESCRIBE_NUMBER }} | ||
string: cuda{{ cuda_major }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
requirements: | ||
build: | ||
- cmake {{ cmake_version }} | ||
run: | ||
- gmock {{ gtest_version }} | ||
- gtest {{ gtest_version }} | ||
- {{ pin_subpackage('libraft-distance', exact=True) }} | ||
- {{ pin_subpackage('libraft-headers', exact=True) }} | ||
- {{ pin_subpackage('libraft-nn', exact=True) }} | ||
about: | ||
home: http://rapids.ai/ | ||
license: Apache-2.0 | ||
summary: libraft tests |
Oops, something went wrong.