deal with memcpy hostToDevice strangeness