heavyweight_hardware_concurrency overloads

Synopses

Declared in <llvm/Support/Threading.h>

Parse Num into a heavyweight_hardware_concurrency strategy.

Build a strategy that prefers physical cores over SMT.

ThreadPoolStrategy
heavyweight_hardware_concurrency(unsigned int ThreadCount = 0);

Return Value

  • Parsed heavyweight strategy, or one thread per core if invalid.

  • Strategy that prefers physical cores up to ThreadCount.

Parameters

Name

Description

Num

Thread‐count string as accepted by get_threadpool_strategy.

ThreadCount

Suggested thread bound; 0 means use all physical cores.

Created with MrDocs