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 1d067c5 commit bc0adb5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/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 */

0 comments on commit bc0adb5

Please sign in to comment.