Extended cuda_host_type and cuda_device_type, implemented more memory testing