Assertion failure / variable not in memory space

So, I started using cuda today attempting to write a quick application to test performance and have run into this problem:

1>### Assertion failure at line 793 of …/…/be/cg/NVISA/exp_loadstore.cxx:

1>### Compiler Error in file C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/tmpxft_00001040_00000000-4.i during Code_Expansion phase:

1>### variable not in memory space

It seems that other people are having this problem and that it’s possibly a known bug.

Is there any way to get around this issue for now?

My code’s quite long so, I don’t know how readable it’d be if I posted it, but here’s the section in question.

 for (i=2; i<13; i++)



    for (j=0; j<6; j++)



      if (bb[y] & u) c|=1;


      if (!u)





      //result_space[0] = my_cov_2char[c];




If I uncomment the result_space assignment (result_space is of type char*), I will get the error posted above. Any suggestions anyone has would be very helpful.

Is result_space or my_cov_2char somehow pointed to a string, a global, or an initialized array?
They currently do not handle variables in .data or .bss on device, and using them would get this assertion failed.

Thanks that fixed the problem. Sorry about that. If there’s a basic FAQ/tutorial other than the examples in the SDK you can direct me to that would also be helpful.