Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SkillfulElectro authored Aug 30, 2024
1 parent 6a4582f commit 1d067c5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions header_files/EMCompute.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
8 changes: 8 additions & 0 deletions header_files/EMCompute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions header_files/EMCompute.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 1d067c5

Please sign in to comment.