如何让H2O无人驾驶AI在CPU上使用更多内核?

问题描述 投票:1回答:1

我的机器在其CPU上有20个内核,但是当运行无驱动AI时,它只使用其中的4个。如何让它使用更多内核以获得更快的结果?

cpu cpu-usage h2o multicore driverless-ai
1个回答
0
投票

这取决于您的设置以及您使用的DAI版本,但您可以在config.toml文件中指定要使用的CPU数量。为方便起见,我已粘贴下面的toml文件的相关部分,并提供了文档链接,其中包含有关设置此文件的详细信息。

## Hardware: Configure hardware settings here (GPUs, CPUs, Memory, etc.)

# Max number of CPU cores to use per experiment. Set to <= 0 to use all cores.
# One can also set environment variable "OMP_NUM_THREADS" to number of cores to use for OpenMP
# e.g. In bash: export OMP_NUM_THREADS=32 and export OPENBLAS_NUM_THREADS=32
#Set to -1 for all available cores.
#max_cores = -1

文档link

© www.soinside.com 2019 - 2024. All rights reserved.