Make search methods virtual.
Generate different CUDA target code.