Build cuda tests only when nvcc is callable
Determine available OpenCL platforms automatically