On Samstag 11 April 2009, Randy Heiland wrote: > Just curious - what does the warning mean?
There was a stray "__global__" in that code, which I presume was an attempt to get rid of the two advisories. Turns out that in certain situations there appears to be no way of telling nvcc what kind of pointer you're giving it. demo_struct hits one of these cases. I've removed the __global__ in git, the advisories remain. Andreas > $ python demo_struct.py > original arrays > [ 1. 2. 3.] > [ 0. 4.] > kernel.cu(5): warning: invalid attribute for member > "DoubleOperation::ptr" > > /tmp/tmpxft_00000904_00000000-7_kernel.cpp3.i(12): Advisory: Cannot > tell what pointer points to, assuming global memory space > /tmp/tmpxft_00000904_00000000-7_kernel.cpp3.i(12): Advisory: Cannot > tell what pointer points to, assuming global memory space
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
