-
Notifications
You must be signed in to change notification settings - Fork 197
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
Add GPU and CPU packages for ANN benchmarks #1773
Changes from 102 commits
bd738ec
7473c62
aa10d7c
bed126c
09ea7a7
2917886
49732b1
76cfb40
9b588af
6d6c17d
b89b27d
163a40c
0bb51a3
2b9f649
9728f7e
7b1bf01
1daf2bf
4e0a53e
04893c9
b24fcf7
30f7467
3e35121
f927f69
404cd10
2f19c44
e0586de
0eaa7e0
9896963
4062d6f
7141c21
7c42a78
92a37a8
3982840
d2bfc11
80482fb
31594e7
82f195e
be6eb56
0cf1c6f
f5bf15a
617c60f
3948f0c
74c9a1b
902f9f4
9b82f85
1198e1a
24c1619
3f647c3
354287d
e0dfbab
16e233b
cac89d0
bb3a194
7d8ee13
1720e11
c0ee323
aa608d2
697ab89
8b0c4c2
49fd31d
be3da1a
e92827a
b9e7771
8e5ab5d
f331a94
b9defb7
b569861
cdd8d6b
b9e9ea6
e420593
913dec2
8861fc8
2f52b02
c28326c
521b696
94296ca
0a35608
d11043c
d6757c1
78356aa
9ce6ce0
184c46d
0dc3ce4
5dd7db2
14bcb92
50c9fe2
c6df11a
aaaa182
9ffd68e
c947004
11f353b
858d0a5
d236090
c47a1bf
615807a
feef4f3
fb2140f
998bf48
be85537
abb4f69
076d2de
c6014a9
5a12ce3
fbdc1fa
954aa87
15b0dc0
d863ce6
0d60c56
fcc158a
1274b21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,5 +1,5 @@ | ||||||||||||||||
#!/bin/bash | ||||||||||||||||
# Copyright (c) 2022, NVIDIA CORPORATION. | ||||||||||||||||
# Copyright (c) 2022-2023, NVIDIA CORPORATION. | ||||||||||||||||
|
||||||||||||||||
set -euo pipefail | ||||||||||||||||
|
||||||||||||||||
|
@@ -26,4 +26,21 @@ rapids-mamba-retry mambabuild \ | |||||||||||||||
--channel "${RAPIDS_CONDA_BLD_OUTPUT_DIR}" \ | ||||||||||||||||
conda/recipes/raft-dask | ||||||||||||||||
|
||||||||||||||||
# Build ann-bench for each cuda and python version | ||||||||||||||||
rapids-mamba-retry mambabuild \ | ||||||||||||||||
--no-test \ | ||||||||||||||||
--channel "${CPP_CHANNEL}" \ | ||||||||||||||||
--channel "${RAPIDS_CONDA_BLD_OUTPUT_DIR}" \ | ||||||||||||||||
conda/recipes/raft-ann-bench | ||||||||||||||||
|
||||||||||||||||
# Build ann-bench-cpu only in CUDA 12 jobs since it only depends on python | ||||||||||||||||
# version | ||||||||||||||||
if [[ ${CUDA_VERSION} == "11.8.0" ]]; then | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment does not match the conditional. Also, I think the variable name that our CI containers use is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, CUDA_VERSION is set, you can see it in the logs https://github.com/rapidsai/raft/actions/runs/6051700515/job/16424916331#step:7:54 which have both with and without There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we require to build in the CUDA 11 jobs for now, but otherwise will use it! |
||||||||||||||||
rapids-mamba-retry mambabuild \ | ||||||||||||||||
--no-test \ | ||||||||||||||||
--channel "${CPP_CHANNEL}" \ | ||||||||||||||||
--channel "${RAPIDS_CONDA_BLD_OUTPUT_DIR}" \ | ||||||||||||||||
conda/recipes/raft-ann-bench-cpu | ||||||||||||||||
fi | ||||||||||||||||
|
||||||||||||||||
rapids-upload-conda-to-s3 python |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2022-2023, NVIDIA CORPORATION. | ||
|
||
./build.sh libraft --allgpuarch --compile-lib --build-metrics=compile_lib --incl-cache-stats --no-nvtx | ||
./build.sh libraft -v --allgpuarch --compile-lib --build-metrics=compile_lib --incl-cache-stats --no-nvtx |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2022-2023, NVIDIA CORPORATION. | ||
|
||
./build.sh libraft --allgpuarch --no-nvtx | ||
./build.sh libraft -v --allgpuarch --no-nvtx |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2022-2023, NVIDIA CORPORATION. | ||
|
||
./build.sh tests bench-prims --allgpuarch --no-nvtx --build-metrics=tests_bench_prims --incl-cache-stats | ||
./build.sh tests bench-prims -v --allgpuarch --no-nvtx --build-metrics=tests_bench_prims --incl-cache-stats | ||
cmake --install cpp/build --component testing |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2023, NVIDIA CORPORATION. | ||
|
||
./build.sh bench-ann --allgpuarch --no-nvtx --build-metrics=bench_ann --incl-cache-stats | ||
./build.sh bench-ann --cpu-only --no-nvtx --build-metrics=bench_ann_cpu --incl-cache-stats | ||
cmake --install cpp/build --component ann_bench |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
c_compiler_version: | ||
- 11 | ||
|
||
cxx_compiler_version: | ||
- 11 | ||
|
||
sysroot_version: | ||
- "2.17" | ||
|
||
cmake_version: | ||
- ">=3.26.4" | ||
|
||
glog_version: | ||
- ">=0.6.0" | ||
|
||
h5py_version: | ||
- ">=3.8.0" | ||
|
||
nlohmann_json_version: | ||
- ">=3.11.2" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright (c) 2022-2023, 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') %} | ||
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %} | ||
{% set py_version = environ['CONDA_PY'] %} | ||
{% set cuda_version = '.'.join(environ['RAPIDS_CUDA_VERSION'].split('.')[:2]) %} | ||
{% set date_string = environ['RAPIDS_DATE_STRING'] %} | ||
|
||
package: | ||
name: raft-ann-bench-cpu | ||
version: {{ version }} | ||
script: build.sh | ||
|
||
source: | ||
git_url: ../../.. | ||
|
||
build: | ||
script_env: | ||
- AWS_ACCESS_KEY_ID | ||
- AWS_SECRET_ACCESS_KEY | ||
- AWS_SESSION_TOKEN | ||
- CMAKE_C_COMPILER_LAUNCHER | ||
- CMAKE_CUDA_COMPILER_LAUNCHER | ||
- CMAKE_CXX_COMPILER_LAUNCHER | ||
- CMAKE_GENERATOR | ||
- PARALLEL_LEVEL | ||
- RAPIDS_ARTIFACTS_DIR | ||
- SCCACHE_BUCKET | ||
- SCCACHE_IDLE_TIMEOUT | ||
- SCCACHE_REGION | ||
- SCCACHE_S3_KEY_PREFIX=libraft-aarch64 # [aarch64] | ||
- SCCACHE_S3_KEY_PREFIX=libraft-linux64 # [linux64] | ||
- SCCACHE_S3_USE_SSL | ||
number: {{ GIT_DESCRIBE_NUMBER }} | ||
string: py{{ py_version }}_{{ date_string }}_{{ GIT_DESCRIBE_HASH }}_{{ GIT_DESCRIBE_NUMBER }} | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- cmake {{ cmake_version }} | ||
- ninja | ||
- sysroot_{{ target_platform }} {{ sysroot_version }} | ||
|
||
host: | ||
- glog {{ glog_version }} | ||
- matplotlib | ||
- nlohmann_json {{ nlohmann_json_version }} | ||
- python | ||
- pyyaml | ||
|
||
run: | ||
- glog {{ glog_version }} | ||
- h5py {{ h5py_version }} | ||
- matplotlib | ||
- python | ||
- pyyaml | ||
|
||
about: | ||
home: https://rapids.ai/ | ||
license: Apache-2.0 | ||
summary: libraft ann bench |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2023, NVIDIA CORPORATION. | ||
|
||
./build.sh bench-ann -v --allgpuarch --no-nvtx --build-metrics=bench_ann --incl-cache-stats | ||
cmake --install cpp/build --component ann_bench |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
c_compiler_version: | ||
- 11 | ||
|
||
cxx_compiler_version: | ||
- 11 | ||
|
||
cuda_compiler: | ||
- cuda-nvcc | ||
|
||
cuda11_compiler: | ||
- nvcc | ||
|
||
sysroot_version: | ||
- "2.17" | ||
|
||
cmake_version: | ||
- ">=3.26.4" | ||
|
||
nccl_version: | ||
- ">=2.9.9" | ||
|
||
gtest_version: | ||
- ">=1.13.0" | ||
|
||
glog_version: | ||
- ">=0.6.0" | ||
|
||
faiss_version: | ||
- ">=1.7.1" | ||
|
||
h5py_version: | ||
- ">=3.8.0" | ||
|
||
nlohmann_json_version: | ||
- ">=3.11.2" | ||
|
||
# The CTK libraries below are missing from the conda-forge::cudatoolkit package | ||
# for CUDA 11. The "*_host_*" version specifiers correspond to `11.8` packages | ||
# and the "*_run_*" version specifiers correspond to `11.x` packages. | ||
|
||
cuda11_libcublas_host_version: | ||
- "=11.11.3.6" | ||
|
||
cuda11_libcublas_run_version: | ||
- ">=11.5.2.43,<12.0.0" | ||
|
||
cuda11_libcurand_host_version: | ||
- "=10.3.0.86" | ||
|
||
cuda11_libcurand_run_version: | ||
- ">=10.2.5.43,<10.3.1" | ||
|
||
cuda11_libcusolver_host_version: | ||
- "=11.4.1.48" | ||
|
||
cuda11_libcusolver_run_version: | ||
- ">=11.2.0.43,<11.4.2" | ||
|
||
cuda11_libcusparse_host_version: | ||
- "=11.7.5.86" | ||
|
||
cuda11_libcusparse_run_version: | ||
- ">=11.6.0.43,<12.0.0" | ||
|
||
# `cuda-profiler-api` only has `11.8.0` and `12.0.0` packages for all | ||
# architectures. The "*_host_*" version specifiers correspond to `11.8` packages and the | ||
# "*_run_*" version specifiers correspond to `11.x` packages. | ||
|
||
cuda11_cuda_profiler_api_host_version: | ||
- "=11.8.86" | ||
|
||
cuda11_cuda_profiler_api_run_version: | ||
- ">=11.4.240,<12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the original indentation was correct