> Am 01.07.2015 um 19:12 schrieb Andreas Kloeckner <[email protected]>:
>
> Hi all,
>
> thanks to the hard work of Marko Bencun and Yichao Yu, the next version
> of PyOpenCL will be substantially different internally from the previous
> one. In particular, the wrapper will no longer be built using
> Boost.Python but instead using cffi 1.0's ahead-of-time mode. One main
> consequence of this is that PyOpenCL now works on Pypy.
>
> This new code is now on the git master branch. (It used to live on the
> 'cffi' branch. The old Boost wrapper is now on the
> 'deprecated-boost-python' branch.)
>
> From a user's perspective, nothing should have changed--on all machines
> I have access to, PyOpenCL passes the same tests as before, on any
> Python version more recent than 2.6, including Pypy. Nonetheless, before
> I go ahead and release a new PyOpenCL based on this code, I'd like to
> get as many of you as I can to try it and report back. If you package
> PyOpenCL, or if you have a Mac or a Windows machine, I'd especially like
> to hear from you.
>
> Thanks!
> Andreas
> ______
Hi Andreas,
gave it a quick try on a Mac (OS X 10.10.3) with Anaconda Python 2.7. My
observation when building pyopencl master branch:
* you need a recent cffi
* on a Mac, the OpenCL headers reside in <OpenCL/…>, changed this in
cffi_build.py.in
* same for OpenGL headers, live in <OpenGL/…>
* still building fails with an error (only showing first error):
…
gcc -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -DPYGPU_PACKAGE=pyopencl
-DPYGPU_PYOPENCL=1 -DPYOPENCL_USE_DEVICE_FISSION=1 -DHAVE_GL=1 -Isrc/c_wrapper/
-I/Users/gregor/anaconda/include/python2.7 -c src/c_wrapper/wrap_cl.cpp -o
build/temp.macosx-10.5-x86_64-2.7/src/c_wrapper/wrap_cl.o -std=c++0x -arch i386
-arch x86_64 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
In file included from src/c_wrapper/wrap_cl.cpp:1:
In file included from src/c_wrapper/pyhelper.h:5:
src/c_wrapper/function.h:14:32: error: no type named 'remove_reference' in
namespace 'std'
using rm_ref_t = typename std::remove_reference<T>::type;
…
seems you are using C++ language features too recent for a Mac :-(
my result for 'gcc -v'
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
I also tried a more recent gcc (4.9, installed with homebrew) without success:
$export CC=gcc-4.9; python setup.py build
gives a huge amount of compile errors similar to:
/var/folders/4x/v77nr78x5cs7l2rjscx147th0000gn/T//ccHwGSd1.s:8:bad register
name `%rdi)'
/
I have no clue how to proceed.
thanks for your work
Gregor
> _________________________________________
> PyOpenCL mailing list
> [email protected]
> http://lists.tiker.net/listinfo/pyopencl
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl