Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| perf:xgboost [2019/07/04 15:50] – [Results] admin | perf:xgboost [2019/07/05 14:58] (Version actuelle) – [GPU support] admin | ||
|---|---|---|---|
| Ligne 12: | Ligne 12: | ||
| $ ipython nbconvert --to python 3.XGBoost | $ ipython nbconvert --to python 3.XGBoost | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Results ===== | ||
| + | |||
| + | ==== Multithreaded support ==== | ||
| <note tip> | <note tip> | ||
| Ligne 18: | Ligne 23: | ||
| For example to for 8 cores: | For example to for 8 cores: | ||
| <code bash> | <code bash> | ||
| + | $ module load lang/ | ||
| $ OMP_NUM_TREADS=8 time ipython 3.XGBoost.py | $ OMP_NUM_TREADS=8 time ipython 3.XGBoost.py | ||
| </ | </ | ||
| - | ===== Results ===== | + | |
| + | |||
| ^# Threads ^Time(m)^ | ^# Threads ^Time(m)^ | ||
| |1|11m32s| | |1|11m32s| | ||
| |8|2m03s| | |8|2m03s| | ||
| |16|1m18s| | |16|1m18s| | ||
| + | |24|1m8s| | ||
| + | |32|1m5s| | ||
| + | |40|1m5s| | ||
| + | |**48**|**1m5s**| | ||
| + | |64|1m54s| | ||
| + | |72|2m13s| | ||
| + | |92|3m21s| | ||
| + | <note important> | ||
| + | ==== GPU support ==== | ||
| + | We will use Volta GPU node. | ||
| + | <note tip> | ||
| + | The package '' | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | $ qlogin -qvolta.q -l h_vmem=20G | ||
| + | |||
| + | </ | ||
| + | |||
| + | <note important> | ||
| + | I just added this param '' | ||
| + | |||
| + | <code bash> | ||
| + | 150 xgb_reg = xgboost.XGBRegressor(learning_rate = 0.01, | ||
| + | 151 max_depth = 10, | ||
| + | 152 random_state=42, | ||
| + | 153 n_estimators = 173, | ||
| + | 154 tree_method= ' | ||
| + | 155 n_jobs=-1, | ||
| + | 156 objective = ' | ||
| + | </ | ||
| + | |||
| + | We load anaconda | ||
| + | <code bash> | ||
| + | $ export PATH=/ | ||
| + | </ | ||
| + | Finaly we run our program: | ||
| + | < | ||
| + | $ time ipython 3.XGBoostGPU.py | ||
| + | </ | ||
| + | <color #ed1c24> | ||
| + | **User time is about 38seconds**</ | ||
| + | <note tip> | ||