-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Build error on Windows: CUDA_ARCHITECTURES is empty for target "cmTC_0c70f" #25
Comments
I have tried to set the architecture manually according to that, but it has no effect. I suspect the error message is not completely relevant here, as there's a lot of compile errors (seen in
|
I solved the same error by setting CMAKE_CUDA_COMPILER. When running cmake, I ran |
Unfortunately that has no effect either, in fact |
I had this error on Ubuntu 18.04 and although NVCC was in the path, setting it directly as somisawa recommended worked |
@jaymefosa |
Managed to get it to build. Instead of using the VS2022 developer powershell to run CMake directly, I imported the folder into VS and use the CMake integration. VS managed to do the build without any extra settings. Sounds like maybe there is something wrong with the VS2022 developer shell ¯_(ツ)_/¯ |
I solved the problem by following code |
You may installed the nvidia driver and nvcc in some way. For latest version, you can install nvidia driver using the 3rd party softwares. They may not identify you as a programmer and modify the CUDA path to somewhere else. |
* llava v1.5 integration * Point llama.cpp to fork * Add llava shared library target * Fix type * Update llama.cpp * Add llava api * Revert changes to llama and llama_cpp * Update llava example * Add types for new gpt-4-vision-preview api * Fix typo * Update llama.cpp * Update llama_types to match OpenAI v1 API * Update ChatCompletionFunction type * Reorder request parameters * More API type fixes * Even More Type Updates * Add parameter for custom chat_handler to Llama class * Fix circular import * Convert to absolute imports * Fix * Fix pydantic Jsontype bug * Accept list of prompt tokens in create_completion * Add llava1.5 chat handler * Add Multimodal notebook * Clean up examples * Add server docs --------- Co-authored-by: Andrei Betlen <abetlen@gmail.com>
Visual Studio Community 2022 (MSVC 143)
Cuda 11.6
CMake 3.22.1
Lots of compile errors
CMakeError.log
CMakeOutput.log
Am I using a too-new buildchain?
The text was updated successfully, but these errors were encountered: