Hello,

Thank you for your help.
The compilation succeeds with the patches.
The first example of http://documen.tician.de/pyopencl/ works fine too.

Regards,

Cyril.


Le 17/02/2012 19:05, Jon Wright a écrit :
The patches I described here for pyopencl also work on pyopencl as bpl-subset is the same:

http://www.mail-archive.com/[email protected]/msg02285.html

If you could confirm whether these work for you too and look correct, perhaps we could update and wiki and try to get the official trees fixed.

Best

Jon

On 17/02/2012 18:12, Giraudon Cyril wrote:
Sorry for the lack of information,

My system is :

Windows 7 64b
Windows SDK 7.0 (for librairies and compiler)
python 2.7 32b
Cuda toolkit 32b

Regards,

Cyril.


Le 17/02/2012 16:08, Cyril Giraudon a écrit :
Hello,

I am trying to build pyopencl without boost.
The building process uses the following siteconf.py file :

# siteconf.py
CL_TRACE = False
CL_ENABLE_GL = True
CL_ENABLE_DEVICE_FISSION = False
CL_INC_DIR = [r'C:\Program Files (x86)\NVIDIA GPU Computing
Toolkit\CUDA\v4.1\include',
r'C:\Program Files\Microsoft SDKs\Windows\v7.0\Include']
CL_LIB_DIR = [r'C:\Program Files (x86)\NVIDIA GPU Computing
Toolkit\CUDA\v4.1\lib\Win32',
r'C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib']
CL_LIBNAME = ['OpenCL']
CXXFLAGS = ['/EHsc']
LDFLAGS = ['/FORCE']

But the installation process fails with the following message :

# "python .\setup.py build" standard output
.....
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin\cl.exe /c
/nologo /Ox
/MD /W3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pyopencl -DBOOST_PYTHON_SOURCE=1
-DPYGPU_P
YOPENCL=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1
-Dboost=pyopenclboost -DHA
VE_GL=1 -Ibpl-subset/bpl_subset "-IC:\Program Files (x86)\NVIDIA GPU
Computing T
oolkit\CUDA\v4.1\include" "-IC:\Program Files\Microsoft
SDKs\Windows\v7.0\Includ
e" -IC:\dev\x86\Python27\lib\site-packages\numpy\core\include
-IC:\dev\x86\Pytho
n27\include -IC:\Users\cyril\dev\traits\sandbox\PC
/Tpbpl-subset/bpl_subset/libs
\thread\src\pthread\once.cpp
/Fobuild\temp.win32-2.7\Release\bpl-subset/bpl_subs
et/libs\thread\src\pthread\once.obj /EHsc
once.cpp
bpl-subset/bpl_subset/libs\thread\src\pthread\once.cpp(9) : fatal
error C1083: C
annot open include file: 'pthread.h': No such file or directory
error: command 'cl.exe' failed with exit status 2

I suppose it is looking for something coming from boost.
Is there any flag to be added in siteconf.py ?

Thank you a lot,

Cyril.


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl



_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to