Executable size when using thrust

When I compile one of the examples that uses the “thrust” library, the resulting executable is 46MB in size. Is that expected, or is there another way to link to thrust, so the execution size, and compile time, are minimized.

Thanks.

thrust::host_vector<int> h_vec(1 << 24);

thrust::generate(h_vec.begin(), h_vec.end(), rand);

thrust::device_vector<int> d_vec = h_vec;

thrust::sort(d_vec.begin(), d_vec.end());

thrust::copy(d_vec.begin(), d_vec.end(), h_vec.begin());

Thanks.

Did I post to the wrong forum? Is there a special for thrust?

Thanks.

Yes.