浏览代码

examples/cpp/incrementer_cpp.cpp: unload the opencl program before shutting down.

Cyril Roelandt 13 年之前
父节点
当前提交
1addb07bf4
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      examples/cpp/incrementer_cpp.cpp

+ 4 - 0
examples/cpp/incrementer_cpp.cpp

@@ -95,6 +95,10 @@ int main(int argc, char **argv)
 		ret = 1;
 	}
 
+#ifdef STARPU_USE_OPENCL
+	ret = starpu_opencl_unload_opencl(&opencl_program);
+	STARPU_CHECK_RETURN_VALUE(ret, "starpu_opencl_unload_opencl");
+#endif
 	starpu_shutdown();
 
 	return ret;