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

[QST] about ccmake and downloading rapids.cmake #199

Closed
pkestene opened this issue Jul 2, 2022 · 1 comment
Closed

[QST] about ccmake and downloading rapids.cmake #199

pkestene opened this issue Jul 2, 2022 · 1 comment

Comments

@pkestene
Copy link
Contributor

pkestene commented Jul 2, 2022

Currently when using ccmake (instead of cmake), I can't configure the project; after hitting "c" twice, cmake fails with the following error message

CMake Error at CMakeLists.txt:43 (include):
   include could not find requested file:

     rapids-cmake

 CMake Error at CMakeLists.txt:44 (include):
   include could not find requested file:

     rapids-cpm

 CMake Error at CMakeLists.txt:45 (include):
   include could not find requested file:

     rapids-export

 CMake Error at CMakeLists.txt:46 (include):
   include could not find requested file:

     rapids-find

 CMake Error at CMakeLists.txt:49 (include):
   include could not find requested file:

     rapids-cuda

 Auto-detecting GPU architectures since CMAKE_CUDA_ARCHITECTURES not defined
 CMake Error at CMakeLists.txt:52 (rapids_cuda_init_architectures):
   Unknown CMake command "rapids_cuda_init_architectures".

 Configuring incomplete, errors occurred!
 See also "/home/pkestene/install/matX/github/MatX/build_sais_pas/CMakeFiles/CMakeOutput.log".

In the top-level CMakeLists.txt, if I change

if(NOT EXISTS ${CMAKE_BINARY_DIR}/RAPIDS.cmake)
    file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-21.12/RAPIDS.cmake
         ${CMAKE_BINARY_DIR}/RAPIDS.cmake)
       include(${CMAKE_BINARY_DIR}/RAPIDS.cmake)
endif()

into

if(NOT EXISTS ${CMAKE_BINARY_DIR}/RAPIDS.cmake)
    file(DOWNLOAD https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-21.12/RAPIDS.cmake
         ${CMAKE_BINARY_DIR}/RAPIDS.cmake)
endif()
include(${CMAKE_BINARY_DIR}/RAPIDS.cmake)

then ccmake configure is OK.

I don't clain, this is a bug, but this is a bit disturbing to me.

@cliffburdick
Copy link
Collaborator

thanks @pkestene, this does look like a bug that was introduced recently. Do you want to submit a PR or should we do it?

pkestene added a commit to pkestene/MatX that referenced this issue Jul 3, 2022
ccmake shoud be able to configure project.
cliffburdick pushed a commit that referenced this issue Jul 3, 2022
ccmake shoud be able to configure project.
cliffburdick pushed a commit that referenced this issue Dec 8, 2023
ccmake shoud be able to configure project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants