Hello, experts! I could not find binaries for IBM AIX, and also I found no evidence XGBoost does not work. I made a successful compilation of XGBoost 0.9 with gcc 8.3 on IBM AIX 7.1, with minor code changes. But sorry to tell, the resulting binaries do not work too well.
Can you please share a successful compilation experience or advise on how to fix?
Scenario:
- Tests from demo/binary_classification/ fail:
:~/xgboost/demo/binary_classification
$ python mapfeat.py
:~/xgboost/demo/binary_classification
$ python mknfold.py agaricus.txt 1
:~/xgboost/demo/binary_classification
$ ../../xgboost mushroom.conf
[09:37:32] 6513x126 matrix with 143286 entries loaded from agaricus.txt.train
[09:37:32] 1611x126 matrix with 35442 entries loaded from agaricus.txt.test
[09:37:32] [0] test-error:0.016139 train-error:0.014433
[09:37:32] [1] test-error:0.000000 train-error:0.001228
:~/xgboost/demo/binary_classification
$ ../../xgboost mushroom.conf task=pred model_in=0002.model
Result:
[09:40:28] 1611x126 matrix with 35442 entries loaded from agaricus.txt.test
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
IOT/Abort trap (core dumped)
- import XGBoost in python also fails:
>>> import xgboost
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/freeware/lib/python3.7/site-packages/xgboost-0.83.dev0-py3.7.egg/xgboost/__init__.py", line 11, in <module>
from .core import DMatrix, Booster
File "/opt/freeware/lib/python3.7/site-packages/xgboost-0.83.dev0-py3.7.egg/xgboost/core.py", line 161, in <module>
_LIB = _load_lib()
File "/opt/freeware/lib/python3.7/site-packages/xgboost-0.83.dev0-py3.7.egg/xgboost/core.py", line 152, in _load_lib
'Error message(s): {}\n'.format(os_error_list))
xgboost.core.XGBoostError: XGBoost Library (libxgboost.so) could not be loaded.
Likely causes:
* OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes)
* You are running 32-bit Python on a 64-bit OS
Error message(s): ['Could not load module /opt/freeware/lib/python3.7/site-packages/xgboost-0.83.dev0-py3.7.egg/xgboost/libxgboost.so.\nSystem error: Exec format error', 'Could not load module /opt/freeware/lib/python3.7/site-packages/xgboost-0.83.dev0-py3.7.egg/xgboost/./lib/libxgboost.so.\nSystem error: Exec format error']