diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2013-03-10 15:47:28 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2013-03-10 15:47:28 +0000 |
commit | 149388bfe5069aaefe7bbcd43cca59703e42531d (patch) | |
tree | 933c615a1721b346700e6cb2bcce41517f2d2ae3 /src/opencl_mesh_kit.hpp | |
parent | ae7574e62a0a629b7b33a0df56091a51bba275cb (diff) | |
download | 2013-gpudataviz-149388bfe5069aaefe7bbcd43cca59703e42531d.tar.gz 2013-gpudataviz-149388bfe5069aaefe7bbcd43cca59703e42531d.tar.bz2 2013-gpudataviz-149388bfe5069aaefe7bbcd43cca59703e42531d.zip |
Commit POURRI : problème de synchro pb GPU/CPU
git-svn-id: file:///var/svn/2013-gpudataviz/trunk@21 371a6b4a-a258-45f8-9dcc-bdd82ce0ac9d
Diffstat (limited to 'src/opencl_mesh_kit.hpp')
-rw-r--r-- | src/opencl_mesh_kit.hpp | 3 |
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(); |