【发布时间】:2014-09-23 11:24:24
【问题描述】:
我正在尝试在 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]'#warning "使用已弃用的 NumPy API,通过 " \
禁用它 ^
pygpu/gpuarray.c:354:10:致命错误:找不到“gpuarray/types.h”文件
'#include "gpuarray/types.h"
试图弄清楚如何设置正确的路径,但老实说我迷路了。
任何帮助都非常感谢!
安装了最新的 XCode(包括 DeveloperTools)。 Python 版本是来自 python.org 的 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
【问题讨论】: