Compile with g++ main.cpp -lOpenCL

There is another parked file, to test a C++ multi threaded version