summaryrefslogtreecommitdiff
path: root/src/opencl_mesh_kit.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opencl_mesh_kit.hpp')
-rw-r--r--src/opencl_mesh_kit.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opencl_mesh_kit.hpp b/src/opencl_mesh_kit.hpp
index f99c6c2..ee6bfa5 100644
--- a/src/opencl_mesh_kit.hpp
+++ b/src/opencl_mesh_kit.hpp
@@ -3,6 +3,7 @@
#include <map>
#include <list>
#include <cstring>
+#include <time.h>
#ifndef STRINGIFY
#define STRINGIFY(x) #x
@@ -14,7 +15,7 @@ class OpenCLMeshKit
//RAII is violated but it is really triky to do differently
cl_int initCL(intptr_t gl_display, intptr_t gl_context, intptr_t gl_vbo, size_t meshWidth, size_t meshHeight, size_t groupSize);
cl_int compileKernels(std::list<std::string> names, const char source[], size_t sourceLen);
- cl_int execKernel(std::string kernelName, float time);
+ cl_int execKernel(std::string kernelName, float karg_time);
void releaseKernels();
size_t getMeshWidth();