added opencl and improved some debug output