Annotate thrust::malloc & thrust::free with __host__ __device__.