Closed
Description
Git commit
Operating systems
Windows
GGML backends
CUDA
Problem description & steps to reproduce
Hi, I updated MSVC to 17.13.0 and Windows SDK to 26100.3037, CUDA Toolkit version is 12.8.0. I have found that the #include <chrono>
header is missing in 3 files: log.cpp, perplexity.cpp, imatrix.cpp
So I just added it to all 3 files and everything compiled successfully
First Bad Commit
No response
Compile command
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j 6
Relevant log output
F:\LLM\llama.cpp-master\common\log.cpp(18,79): error C2039: 'system_clock': is not a member of 'std::chr
ono' [F:\LLM\llama.cpp-master\build\common\common.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\__msvc_c
hrono.hpp(286,11):
see declaration of 'std::chrono'
F:\LLM\llama.cpp-master\common\log.cpp(18,79): error C3083: 'system_clock': the symbol to the left of a
'::' must be a type [F:\LLM\llama.cpp-master\build\common\common.vcxproj]
F:\LLM\llama.cpp-master\common\log.cpp(18,93): error C2039: 'now': is not a member of 'std::chrono' [F:\
LLM\llama.cpp-master\build\common\common.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\__msvc_c
hrono.hpp(286,11):
see declaration of 'std::chrono'
F:\LLM\llama.cpp-master\common\log.cpp(18,93): error C3861: 'now': identifier not found [F:\LLM\llama.cp
p-master\build\common\common.vcxproj]
F:\LLM\llama.cpp-master\common\log.cpp(18,25): error C2672: 'std::chrono::duration_cast': no matching ov
erloaded function found [F:\LLM\llama.cpp-master\build\common\common.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\include\__msvc_c
hrono.hpp(87,19):
could be '_To std::chrono::duration_cast(const std::chrono::duration<_Rep,_Period> &) noexcept(<ex
pr>)'