Replaced CUDA runtime API by driver API. Replaced custom thread pool by boost::asio::io_service