diff --git a/header_files/EMCompute.h b/header_files/EMCompute.h index a47bef6..1d20c48 100644 --- a/header_files/EMCompute.h +++ b/header_files/EMCompute.h @@ -277,4 +277,14 @@ int32_t compute(struct CKernel kernel, struct GroupOfBinders *data_for_gpu, uintptr_t gpu_data_len); +/** + * since version 2.0.0 api does + * caching for gpu resources on the memory . + * the api does deallocates the caches + * automatically , but in some cases + * you might want to do it manually + * so just call this free_compute_cache(); + */ +void free_compute_cache(void); + #endif /* EMCOMPUTE_H */ diff --git a/header_files/EMCompute.hpp b/header_files/EMCompute.hpp index cf42415..43ba0eb 100644 --- a/header_files/EMCompute.hpp +++ b/header_files/EMCompute.hpp @@ -190,6 +190,14 @@ int32_t compute(CKernel kernel, GroupOfBinders *data_for_gpu, uintptr_t gpu_data_len); +/// since version 2.0.0 api does +/// caching for gpu resources on the memory . +/// the api does deallocates the caches +/// automatically , but in some cases +/// you might want to do it manually +/// so just call this free_compute_cache(); +void free_compute_cache(); + } // extern "C" #endif // EMCOMPUTE_H diff --git a/header_files/EMCompute.pyx b/header_files/EMCompute.pyx index 1c0b52b..ed789d6 100644 --- a/header_files/EMCompute.pyx +++ b/header_files/EMCompute.pyx @@ -178,3 +178,11 @@ cdef extern from *: int32_t compute(CKernel kernel, GroupOfBinders *data_for_gpu, uintptr_t gpu_data_len); + + # since version 2.0.0 api does + # caching for gpu resources on the memory . + # the api does deallocates the caches + # automatically , but in some cases + # you might want to do it manually + # so just call this free_compute_cache(); + void free_compute_cache();