Hi Andreas/Ying Wai, I see a discussion you've had about complex number
support:
http://www.mail-archive.com/pycuda@tiker.net/msg00788.html

I also see the 'complex' tag:
http://git.tiker.net/pycuda.git/commit/296810d8c57f7620cfcc959f73f6aefbb0215133
and I've merged the code with mine.

When I try to run demo_complex.py I get an error (below) - should the demo
work without an error? Given the discussion you were both having I'm not
clear whether the complex support is finished or not?

Here's the error I get, it looks like nvcc is unhappy. If there's something
I could debug then feel free to give me some pointers.

I'm using MSVC 9 (Visual Studio 2008) on WinXP with the current 'master' (I
could try Mac/gcc if that's useful?):

C:\Panalytical\pycuda_git\pycuda\examples>python demo_complex.py
kernel.cu
...
C:/Python26/lib/site-packages/pycuda-0.94beta-py2.6-win32.egg/pycuda/../include/pycuda\pycuda-complex.hpp(299):
error: calling a __device__ function from a __host__ function is not allowed
...
C:/Python26/lib/site-packages/pycuda-0.94beta-py2.6-win32.egg/pycuda/../include/pycuda\pycuda-complex.hpp(437):
error: calling a __device__ function from a __host__ function is not allowed

2 errors detected in the compilation of
"C:\DOCUME~1\parc\LOCALS~1\Temp/tmpxft_000003f4_00000000-6_kernel.cpp1.ii".
Traceback (most recent call last):
  File "demo_complex.py", line 20, in <module>
    preamble="#include <pycuda-complex.hpp>",)
  File
"C:\Python26\lib\site-packages\pycuda-0.94beta-py2.6-win32.egg\pycuda\elementwise.py",
line 108, in __init__
    arguments, operation, name, keep, options, **kwargs)
  File
"C:\Python26\lib\site-packages\pycuda-0.94beta-py2.6-win32.egg\pycuda\elementwise.py",
line 83, in get_elwise_kernel_and_types
    keep, options, **kwargs)
  File
"C:\Python26\lib\site-packages\pycuda-0.94beta-py2.6-win32.egg\pycuda\elementwise.py",
line 72, in get_elwise_module
    options=options, keep=keep)
  File
"C:\Python26\lib\site-packages\pycuda-0.94beta-py2.6-win32.egg\pycuda\compiler.py",
line 214, in __init__
    arch, code, cache_dir, include_dirs)
  File
"C:\Python26\lib\site-packages\pycuda-0.94beta-py2.6-win32.egg\pycuda\compiler.py",
line 193, in compile
    return compile_plain(source, options, keep, nvcc, cache_dir)
  File
"C:\Python26\lib\site-packages\pycuda-0.94beta-py2.6-win32.egg\pycuda\compiler.py",
line 86, in compile_plain
    raise CompileError, "nvcc compilation of %s failed" % cu_file_path
pycuda.driver.CompileError: nvcc compilation of
c:\docume~1\parc\locals~1\temp\tmpbz4jgs\kernel.cu failed


-- 
Ian Ozsvald (Professional Screencaster)
i...@procasts.co.uk

http://ProCasts.co.uk/examples.html
http://TheScreencastingHandbook.com
http://IanOzsvald.com + http://ShowMeDo.com
http://twitter.com/ianozsvald
_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to