[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: project/build plugin: how many cores for build tool invocation ?
From:       christoph () cullmann ! io
Date:       2024-02-03 16:29:03
Message-ID: d963b5feb8cb82e8e8b910bb2bcb73f8 () cullmann ! io
[Download RAW message or body]

On 2024-02-03 17:24, Alexander Neundorf wrote:
> On Samstag, 3. Februar 2024 17:08:35 CET Alexander Neundorf wrote:
>> Hi,
>> 
>> I'm looking into support of the cmake file API for kate.
>> It can read the generated files, and it can generate the set of build
>> commands. Now, when using make (or cmake --build), I have to tell make 
>> how
>> many processes to use in paralell using -j <n>.
>> 
>> What is a good way to get the number of available cores in Qt or KDE 
>> or Kate
>> ? Or is there already a setting like this in kate I can reuse ?
> 
> found it, QThread::idealThreadCount() looks good.

Hi,

yes, that is a good default, I would tend to make that later 
configurable.

Greetings
Christoph

> 
> Alex
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic