Extend the CPU/GPU selection mechanism in performance tests

Now it allows choosing between arbitrary implementation variants, e.g. "plain", "cuda", "opencl", etc.