trove
trove copied to clipboard
nvcc dies with 128-bit structures
The following code crashes nvcc5. Compile with nvcc main.cu -Itrove-master -arch=compute_35
include <trove/ptr.h>
struct WU32 { unsigned int data[32]; };
global void kernel(WU32* in, WU32* out) { int tid = blockIdx.x*blockDim.x + threadIdx.x; trove::coalesced_ptr<WU32> p(in); WU32 r = p[tid]; trove::store_warp_contiguous(r, out+tid); }
int main(int argc, char** argv) { return 0; }
Thanks for reporting this. I have reproduced this bug under CUDA 5.0.
The good news is that my internal nvcc build does not exhibit this bug. I expect the next public CUDA release will fix it.