I was having segfaults but I think I got past them.
But now when I try to run my compiled code I get the following error sometimes.
[codebox]memory size or pointer value too large to fit in 32 bit in project_5.cu at line 185
line 185: HANDLE ERROR(cudaMemcpy(dev_b,B,N*sizeof(float),cudaMemcpyHostToDev
And sometimes it just throws in a segfault.