thrust with matlab

How can thrust::innerproduct be used with device pointer in .cu file of matlab i.e contain mxGPUArray functions.??
my code is
thrust::device_ptrd_phi(prhs[0]);
thrust::device_ptrd_u(prhs[1]);
C = thrust::inner_product(d_phi, d_u,0.0f );
in last line, an error comes like
error: no instance of overloaded function
“thrust::inner_product” matches the argument list
argument types are: (thrust::device_ptr, thrust::device_ptr,
float)

how can I remove this???