I was able to successfully compile and install pycuda 0.93. However, when I
try to run the test driver, I get the following


Traceback (most recent call
last):
  File "transpose.py", line 205, in
<module>

run_benchmark()

  File "transpose.py", line 164, in
run_benchmark
    source = rand((size, size),
dtype=numpy.float32)
  File "/usr/lib/python2.6/site-packages/pycuda/curandom.py", line 196, in
rand

"md5_rng_float")

  File "/usr/lib/python2.6/site-packages/pycuda/elementwise.py", line 85, in
get_elwise_kernel
    arguments, operation, name, keep,
options)
  File "/usr/lib/python2.6/site-packages/pycuda/elementwise.py", line 70, in
get_elwise_kernel_and_types
    keep,
options)

  File "/usr/lib/python2.6/site-packages/pycuda/elementwise.py", line 64, in
get_elwise_module
    options=options,
keep=keep)

  File "/usr/lib/python2.6/site-packages/pycuda/compiler.py", line 180, in
__init__
    arch, code, cache_dir,
include_dirs)

  File "/usr/lib/python2.6/site-packages/pycuda/compiler.py", line 165, in
compile
    include_dirs = include_dirs +
[_find_pycuda_include_path()]
  File "/usr/lib/python2.6/site-packages/pycuda/compiler.py", line 126, in
_find_pycuda_include_path
    raise RuntimeError("could not find path PyCUDA's C header
files")
RuntimeError: could not find path PyCUDA's C header files

configuation built is

./configure.py --boost-inc-dir=/usr/include \
                  --boost-lib-dir=/usr/lib \
                  --boost-python-libname=boost_python \
                  --boost-thread-libname=boost_python-mt \
                  --cuda-root=/usr



2009/10/13 Darcoux Christine <[email protected]>

> The solution proposed on this web site fixed the problem for me
>
> http://tarekziade.wordpress.com/2009/10/03/python-2-6-3-and-distribute/
>
> Christine
>
> 2009/10/11 Darcoux Christine <[email protected]>
>
> Pycuda 0.93 does not build for me. It crashes when runnning "running
>> build_ext". It looks like setuptools might be to blame or is it something
>> specific to my box? Got the same problem with the GIT trunk.
>>
>> I am using
>>
>> setuptools 0.6c9
>> python 2.6.3
>> cuda 2.3
>> pytools 9-1
>> boost 1.39.0
>> numpy 1.3.0
>>
>>
>> configuation with
>>
>> ./configure.py --boost-inc-dir=/usr/include \
>>                   --boost-lib-dir=/usr/lib \
>>                   --boost-python-libname=boost_python \
>>                   --boost-thread-libname=boost_python-mt \
>>                   --cuda-root=/usr
>>
>>
>> Error message bellow :
>>
>> running build_ext
>> --------------------------------------------------------------------------
>> Sorry, your build failed. Try rerunning configure with different options.
>> --------------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File "setup.py", line 325, in <module>
>>     main()
>>   File "setup.py", line 317, in main
>>     ("include/cuda", glob.glob("src/cuda/*.hpp"))
>>   File "/var/abs/local/pycuda/src/pycuda-0.93/aksetup_helper.py", line 12,
>> in setup
>>     setup(*args, **kwargs)
>>   File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
>>     dist.run_commands()
>>   File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
>>     self.run_command(cmd)
>>   File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
>>     cmd_obj.run()
>>   File "/usr/lib/python2.6/distutils/command/build.py", line 134, in run
>>     self.run_command(cmd_name)
>>   File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
>>     self.distribution.run_command(command)
>>   File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
>>     cmd_obj.run()
>>   File "/usr/lib/python2.6/site-packages/setuptools/command/build_ext.py",
>> line 46, in run
>>     _build_ext.run(self)
>>   File "/usr/lib/python2.6/distutils/command/build_ext.py", line 340, in
>> run
>>     self.build_extensions()
>>   File "/usr/lib/python2.6/distutils/command/build_ext.py", line 449, in
>> build_extensions
>>     self.build_extension(ext)
>>   File "/usr/lib/python2.6/site-packages/setuptools/command/build_ext.py",
>> line 175, in build_extension
>>     _build_ext.build_extension(self,ext)
>>   File "/usr/lib/python2.6/distutils/command/build_ext.py", line 460, in
>> build_extension
>>     ext_path = self.get_ext_fullpath(ext.name)
>>   File "/usr/lib/python2.6/distutils/command/build_ext.py", line 633, in
>> get_ext_fullpath
>>     filename = self.get_ext_filename(modpath[-1])
>>   File "/usr/lib/python2.6/site-packages/setuptools/command/build_ext.py",
>> line 85, in get_ext_filename
>>     ext = self.ext_map[fullname]
>> KeyError: '_driver'
>>
>
>
_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to