小编use*_*436的帖子

如何在mac os x(10.9)上的python中安装libgpuarray和clBLAS?

我正在尝试在OSX 10.9上为python 安装libgpuarray(http://deeplearning.net/software/libgpuarray/installation.html).我安装了CMake 3.0并正在使用UI.我从git下载了libgpuarray和clBLAS源代码,并分别在Users/user/libgpuarray ../clBLAS下解压缩.

使用CMake UI我在生成构建时收到以下警告:

未为以下目标指定MACOSX_RPATH:

gpuarray(分别为clBLAS)

执行'python setup.py build'会导致以下错误:

/Users/i043337/Library/Python/2.7/lib/python/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2:警告:

 "Using deprecated NumPy API, disable it by "          "#defining  
 NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]  
Run Code Online (Sandbox Code Playgroud)

'#warning'使用已弃用的NumPy API,禁用它为"\
^
pygpu/gpuarray.c:354:10:致命错误:'找不到'gpuarray/types.h'文件
'#include"gpuarray/types.h"

试图弄清楚如何设置正确的路径,但说实话,我很遗憾.

任何帮助都非常感谢!

安装了最新的XCode(包括DeveloperTools).python.org的Python版本是2.7,并且在以下路径下(Terminal $ type -a python)

python是/Library/Frameworks/Python.framework/Versions/2.7/bin/python
python是/ usr/bin/python
python是/ usr/local/bin/python

python macos path cmake

6
推荐指数
1
解决办法
2080
查看次数

标签 统计

cmake ×1

macos ×1

path ×1

python ×1