Making sure that compiler won't cut out std::find() and thrust:find() calls while optimizing the code.
Boost.Compute, STL and Thrust benchmarks for find() algorithm.