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

Failed to find Thrust when compiling on conda-forge #843

Closed
benfred opened this issue Jun 21, 2023 · 1 comment · Fixed by rapidsai/rapids-cmake#431
Closed

Failed to find Thrust when compiling on conda-forge #843

benfred opened this issue Jun 21, 2023 · 1 comment · Fixed by rapidsai/rapids-cmake#431
Assignees

Comments

@benfred
Copy link
Member

benfred commented Jun 21, 2023

When building a conda package on conda-forge, I was seeing compile errors with thrust like :

CMake Error at _skbuild/linux-x86_64-3.10/cmake-build/_deps/thrust-src/thrust/cmake/thrust-config-version.cmake:4 (file):
    file failed to open for reading (No such file or directory):

      /home/conda/feedstock_root/build_artifacts/implicit_1686677296183/work/_skbuild/linux-x86_64-3.10/cmake-build/_deps/thrust-src/_THRUST_VERSION_INCLUDE_DIR-NOTFOUND/thrust/version.h

(from conda-forge/implicit-feedstock#56 )

@robertmaynard noticed that the thrust cmake files needed to be patched to handle this build environment, and need find_path(.... NO_CMAKE_FIND_ROOT_PATH) set for this to build here.

These changes to thrust benfred/thrust@8452c76 and cub benfred/cub@97934d1 caused the build on conda-forge to succeed - and these changes or similar should probably be applied here and in cub. For newer versions of thrust, we should also probably update https://github.com/nvidia/libcudacxx in a similar fashion -

benfred referenced this issue in benfred/implicit Jun 21, 2023
The conda-forge build was failing to build on errors in finding thrust:
https://github.com/NVIDIA/thrust/issues/1966

Work around this issue by using a patched version of thrust/cub in the build
benfred referenced this issue in benfred/implicit Jun 21, 2023
* Fix cuda build on conda-forge

The conda-forge build was failing to build on errors in finding thrust:
https://github.com/NVIDIA/thrust/issues/1966

Work around this issue by using a patched version of thrust/cub in the build

* fix typo
@robertmaynard robertmaynard self-assigned this Jun 21, 2023
@robertmaynard
Copy link
Contributor

CUB: NVIDIA/cub#723
libcudacxx: NVIDIA/libcudacxx#490
thrust: NVIDIA/thrust#1969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
3 participants