All test passed. But x and y arrays copy to device as is. They are not slice by chunk.  It is a big problem. Need find the way to fix it.