If the device has different endianness than the host, what does cudaMemCopy do exactly? It can’t copy the data in such a way that the mapping byte address->byte of data and word address->word of data are both preserved, so which one is preserved?
Are type sizes the same througout the program (in host and device), or might a variable of a certain type (i.e. long, int, short) have a different size when it is on the host and the device? (I asked this question in the General Discussion and didn’t get a response, so I figured I’d try it here since this forum seems more popular).