Closed
Description
Compilation Error with CUDA Features on Windows 11
When attempting to compile a simple example with CUDA features enabled, I encountered the following error:
.cargo\registry\src\index.crates.io-6f17d22bba15001f\llama-cpp-sys-2-0.1.94\llama.cpp\common\log.cpp(28,79): error C2039: 'system_clock': is not a member of 'std::chrono' [C:\Users\Crssz\develop\llm-app\src-tauri\target\debug\build\llama-cpp-sys-2-9320484b5c908830\out\build\common\common.vcxproj]
Environment
OS: Windows 11
Library: llama-cpp-sys 0.1.94
Workarounds
I found two workarounds for this issue:
- Manually adding #include <chrono> to log.cpp in the llama.cpp/common/log.cpp directory.
- Switching the llama.cpp repository to the master branch.
Metadata
Metadata
Assignees
Labels
No labels