Repository navigation
|
Dear Colleagues, Can you please help me! Thank you |
Replies: 2 comments
|
I should also inform you that I tried to limit the number of threads to 2 but there was not any improvement. import os Limit number of threads to 2os.environ["OMP_NUM_THREADS"] = "2" |
|
Hi Garo, GPy doesn’t expose
OMP_NUM_THREADS=2 OPENBLAS_NUM_THREADS=2 MKL_NUM_THREADS=2 \
VECLIB_MAXIMUM_THREADS=2 NUMEXPR_NUM_THREADS=2 python your_script.py
from threadpoolctl import threadpool_limits
with threadpool_limits(limits=2):
model = GPy.models.GPClassification(X_train, Y_train, kernel)
model.optimize()
|
Hi Garo,
GPy doesn’t expose
n_jobson classifiers. CPU use comes from the BLAS backend under NumPy (and from whatever launches many fits in your bootstrap).import numpy/import GPy:optimize_restarts(..., parallel=True), that spawns processes. You can use…