Execution policy ================ UAMMD exposes a custom execution policy compatible with thrust. When used on a thrust algorithm this policy will make thrust leverage UAMMD's cached allocator meachanism. This is useful, for instance, when calling algorithms that require memory allocation such as thrust::sort You should just use this when you would put thrust::device. Example ------- .. code:: c++ #include"utils/execution_policy.cuh" #include #include #include #include //Lets fill a vector with a decrasing sequence of number auto get_unsorted_vector(int n){ thrust::device_vector vec(n); thrust::sequence(vec.rbegin(), vec.rend(), 0); return vec; } template void print_first_elements(Vector &vec, int n = 3){ thrust::copy_n(vec.begin(), 3, std::ostream_iterator(std::cout," ")); std::cout<