2023年11月24日 星期五

調整多核心數目,編譯MacPorts上的軟體

預設MacPorts在編譯軟體的時候,會使用所有的核心,設定放在/opt/local/etc/macports/macports.conf,設定則是:

  • buildmakejobs    0 

這時候可以調整數目,像只想要用8個核心編譯則可以把設定改成下面:

  • buildmakejobs    8


以上的修改是永久的,如果只是要暫時在編譯某個軟體僅用單核心,則用下列指令:

  • sudo port install PORT build.jobs=1

這樣就只會在這次的編譯中使用1個核心


參考資料

_EOF_

Impressionist landscape of a Japanese garden in autumn, with a bridge over a koi pond. 4k, masterpiece

Steps: 36, Sampler: Euler, CFG scale: 7, Seed: 2398360620, Size: 512x512, Model hash: 6ce0161689, Model: v1-5-pruned-emaonly, VAE hash: 3f5d1d23e1, VAE: ClearVAE_V2.3_fp16.safetensors, Denoising strength: 0.7, Hires upscale: 2, Hires upscaler: None, Version: v1.6.0-2-g4afaaf8a

Time taken: 3 min. 31.8 sec. on Apple M2 Pro

Impressionist landscape of a Japanese garden in autumn, with a bridge over a koi pond. 4k, masterpiece

Steps: 41, Sampler: Euler, CFG scale: 7, Seed: 2398360620, Size: 512x512, Model hash: 6ce0161689, Model: v1-5-pruned-emaonly, Version: v1.6.0-2-g4afaaf8a

Time taken: 24.7 sec. on Apple M2 Pro

沒有留言:

張貼留言