相关疑难解决方法(0)

clang:error :::在Mac OSX El Capitan构建XGBoost上的错误支持选项'-fopenmp'

我正在尝试按照以下说明为Python 构建XGBoost包:

以下是使用支持OpenMP的编译器安装XGBoost的完整解决方案.通过openmp支持获得gcc-5.xx brew install gcc --without-multilib.(brew是OS X上apt-get的事实标准.因此不建议单独安装HPC,但它应该可以工作.):

git clone --recursive https://github.com/dmlc/xgboost
cd xgboost; cp make/config.mk ./config.mk; make -j4
Run Code Online (Sandbox Code Playgroud)

此错误恰好在make -j4命令中发生.

在beforenad之前搜索,我尝试了这两个解决方案(12),但没有用,除了因为害怕搞乱一切而安装另一个gcc的部分.

以下是make配置文件.它没有任何可疑之处.

#-----------------------------------------------------
#  xgboost: the configuration compile script
#
#  If you want to change the configuration, please use the following
#  steps. Assume you are on the root directory of xgboost.
#  First copy the this file so that any local changes will be …
Run Code Online (Sandbox Code Playgroud)

python macos gcc xgboost

23
推荐指数
2
解决办法
2万
查看次数

标签 统计

gcc ×1

macos ×1

python ×1

xgboost ×1