You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ggerganov,
I solved similar issue in different projects on github, solution is simple to make wrapper function for geting threads, in Windows it is necessary to take into accumulate all logical processors in all NUMA nodes.
Problem lines in common, tests and examples llama.cpp:
If you need NUMA detection function and an addition to my variant function, then
more optimized variant detection NUMA and return count threads on host, must added before GetLogicalProcessorInformationEx:
if (!IsNUMA())
return single_cpu_concurrency();
if (GetLogicalProcessorInformationEx(RelationAll, nullptr, &length) != FALSE)
{
returnsingle_cpu_concurrency();
}
@ggerganov,
I solved similar issue in different projects on github, solution is simple to make wrapper function for geting threads, in Windows it is necessary to take into accumulate all logical processors in all NUMA nodes.
Problem lines in common, tests and examples llama.cpp:
llama.cpp/common/common.cpp
Lines 85 to 86 in 5f5808c
llama.cpp/common/common.cpp
Lines 160 to 187 in 5f5808c
llama.cpp/common/common.cpp
Lines 187 to 196 in 5f5808c
llama.cpp/common/common.cpp
Lines 1089 to 1099 in 5f5808c
Solutions:
[❌] C variant detection is not done here: git-for-windows/git#4766
[✔️] C++11 Windows XP minimal (rewriten modern variant by @mrexodia): x64dbg/x64dbg@d2f6ba7
[✔️] Modern C++17 (variant by @GermanAizek and #llvm-project maintainers): GermanAizek/llvm-project@d1fa25f
more optimized variant detection NUMA and return count threads on host, must added before
GetLogicalProcessorInformationEx
:The text was updated successfully, but these errors were encountered: