I had somewhat related problem with the same example demo.py and probably
found another bug.
Every function in elementwise.py with "options" argument uses  as default
value of options. This  is passed to SourceModule constructor.
SourceModule.__init__ calls compiler.compile(...) which sets options to
DEFAULT_NVCC_FLAGS if options is None. But functions of elementwise.py pass
an empty list instead of None, so DEFAULT_NVCC_FLAGS are ignored if the
default value of options in elementwise.py were used.
I had DEFAULT_NVCC_FLAGS initialized by compiler.py using environment
variable PYCUDA_DEFAULT_NVCC_FLAGS and found that my
"--compiler-bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.6" was ignored.
After changing of all occurrences "options=" to "options=None" in
elementwise.py I have demo.py working (:
View this message in context:
Sent from the PyCuda mailing list archive at Nabble.com