Skip to content

[FIX] Link to cuco and add faiss EXCLUDE_FROM_ALL option#583

Merged
rapids-bot[bot] merged 5 commits into
NVIDIA:branch-22.04from
trxcllnt:fix/22.04-source-builds
Mar 23, 2022
Merged

[FIX] Link to cuco and add faiss EXCLUDE_FROM_ALL option#583
rapids-bot[bot] merged 5 commits into
NVIDIA:branch-22.04from
trxcllnt:fix/22.04-source-builds

Conversation

@trxcllnt

@trxcllnt trxcllnt commented Mar 22, 2022

Copy link
Copy Markdown
Member

This PR includes a few fixes to support source-only builds:

  1. Defines linkage to cuco::cuco if the RAFT_ENABLE_cuco_DEPENDENCY variable is set, not if cuco_ADDED is true
  2. Adds a flag to control the EXCLUDE_FROM_ALL for the faiss dependency. This flag can be off for conda builds, but true for C++-only source builds
  3. Writes version_config.hpp header and fixes a potential GoogleBench issue

@trxcllnt trxcllnt requested a review from a team as a code owner March 22, 2022 23:23

@cjnolet cjnolet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@cjnolet

cjnolet commented Mar 23, 2022

Copy link
Copy Markdown
Contributor

@gpucibot merge

@rapids-bot rapids-bot Bot merged commit ab57c1f into NVIDIA:branch-22.04 Mar 23, 2022
rapids-bot Bot pushed a commit to rapidsai/cuml that referenced this pull request Mar 25, 2022
Depends on NVIDIA/raft#583 and https://github.com/rapidsai/cumlprims_mg/pull/86

This PR includes a few fixes to support source-only builds:

1. Use `CPMFindPackage` to get `cumlprims_mg`
  a. This enables building against a local `cumlprims_mg` build (`-D cumlprims_mg_ROOT=/cumlprims_mg/cpp/build`)
2. Explicitly call `find_package(Threads)` to be more resilient to RAFT changes

Authors:
  - Paul Taylor (https://github.com/trxcllnt)

Approvers:
  - Dante Gama Dessavre (https://github.com/dantegd)
  - Robert Maynard (https://github.com/robertmaynard)

URL: #4649
rapids-bot Bot pushed a commit to rapidsai/cugraph that referenced this pull request Mar 27, 2022
Depends on NVIDIA/raft#583 and rapidsai/cugraph-ops#70

This PR uses `CPMFindPackage` to find (or build) `cugraph-ops`.

This enables building from source against a local `cugraph-ops` build via `-D cugraph-ops_ROOT=/cugraph-ops/build`.

Authors:
  - Paul Taylor (https://github.com/trxcllnt)

Approvers:
  - Rick Ratzel (https://github.com/rlratzel)

URL: #2148
vimarsh6739 pushed a commit to vimarsh6739/cuml that referenced this pull request Oct 9, 2023
Depends on NVIDIA/raft#583 and https://github.com/rapidsai/cumlprims_mg/pull/86

This PR includes a few fixes to support source-only builds:

1. Use `CPMFindPackage` to get `cumlprims_mg`
  a. This enables building against a local `cumlprims_mg` build (`-D cumlprims_mg_ROOT=/cumlprims_mg/cpp/build`)
2. Explicitly call `find_package(Threads)` to be more resilient to RAFT changes

Authors:
  - Paul Taylor (https://github.com/trxcllnt)

Approvers:
  - Dante Gama Dessavre (https://github.com/dantegd)
  - Robert Maynard (https://github.com/robertmaynard)

URL: rapidsai#4649
loulankxh pushed a commit to loulankxh/raft that referenced this pull request Oct 14, 2025
This PR includes a few fixes to support source-only builds:
1. Defines linkage to `cuco::cuco` if the `RAFT_ENABLE_cuco_DEPENDENCY` variable is set, not if `cuco_ADDED` is true
2. Adds a flag to control the `EXCLUDE_FROM_ALL` for the faiss dependency. This flag can be off for conda builds, but true for C++-only source builds
3. Writes `version_config.hpp` header and fixes a potential GoogleBench issue

Authors:
  - Paul Taylor (https://github.com/trxcllnt)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: NVIDIA#583
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review CMake cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants