I have multiple functions which solve the same problem using different combinations of thrust algorithms. Some functions may be slower, but use less device memory. I would l