modify to support DOUBLE3 type and DOUBLE4 type in host memory access