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

I’m trying to compile: [url=“Welcome coreyhoffstein.com - BlueHost.com”]Welcome coreyhoffstein.com - BlueHost.com 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: [url=“http://groups.google.com/group/thrust-users/browse_thread/thread/7ee9b5702c4ec3d7”]http://groups.google.com/group/thrust-user...ee9b5702c4ec3d7[/url] for more info