Just curious - what does the warning mean?
-Randy
$ 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
doubled arrays
[ 2. 4. 6.]
[ 0. 8.]
doubled second only
[ 2. 4. 6.]
[ 0. 16.]
doubled again
[ 4. 8. 12.]
[ 0. 32.]
doubled second only again
[ 4. 8. 12.]
[ 0. 64.]
_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net