See http://andrewwuan.github.io/smallpt-parallel-bvh-gpu/ for details.
mkdir build && cd build && cmake ../ && make && ./smallpt
Configure your scene in "scene" file. A random scene for benchmark can be generated by compiling and running rand_scene_gen.cpp.