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

find_package(CUDAToolkit REQUIRED) even when TI_WITH_CUDA Off #125

Open
jarmitage opened this issue Mar 28, 2023 · 1 comment
Open

find_package(CUDAToolkit REQUIRED) even when TI_WITH_CUDA Off #125

jarmitage opened this issue Mar 28, 2023 · 1 comment

Comments

@jarmitage
Copy link

This option doesn't seem to be referencing the top-level CMakeFiles:

Resulting in:

CMake Error at /.miniconda3/envs/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FindCUDAToolkit.cmake:748 (message):
  Could not find nvcc, please set CUDAToolkit_ROOT.
Call Stack (most recent call first):
  framework/CMakeLists.txt:92 (find_package)

Even when:

option(TI_WITH_CUDA "Compile with CUDA backend" OFF)

@PENGUINLIONG
Copy link
Member

Usually we disables entire LLVM backend without CUDA because the CPU backend has some issue with its allocator (memories doesn't dealloc). So I would recommend you to shift to the SPIR-V backends like Vulkan or Metal for deployment (if CUDA is unwanted). But please feel free to PR this change if you find it necessary.

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