On Tue, 11 Oct 2011 02:55:05 -0700 (PDT), "gleb.budylin" <gleb.budy...@gmail.com> wrote: > 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 (:
Thanks for the report. Done in git. Andreas
pgpNEYBzcifue.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda