(C6017) Unaligned memory access; the offset should be 4-byte aligned.

I’m trying to compile: http://coreyhoffstein.com/tag/cuda/ with thrust 1.1
Including the thrust::transform_reduce() in my code causes this error message:
ptxas /tmp/tmpxft_00003a62_00000000-2_testoptionpricer.ptx, line 0; fatal : (C6017) Unaligned memory access; the offset should be 4-byte aligned.

Since this doesn’t refer to a line in either thrusts or my code, I don’t know how to proceed to fix this.

I’m not sure what the unaligned memory access problem is, but upgrading to thrust 1.2 and updating the code for Cuda 3.0 made it work.
See this thread: http://groups.google.com/group/thrust-user…ee9b5702c4ec3d7 for more info