Skip to content

Conversation

@jacobkahn
Copy link
Contributor

  • Add documentation to set and get mem step size functions in the C/C++ API to properly reflect behavior if a custom memory manager is set
  • Remove af_event use from unlock in memory management test
  • Ensure memory manager test memory pressure functions and gc threshold more closely matches default memory manager behavior

9prady9
9prady9 previously requested changes Apr 3, 2020
Copy link
Member

@9prady9 9prady9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please fix the formatting, else looks good.


/// \brief Set the resolution of memory chunks
/// \brief Set the resolution of memory chunks. Works only with the default
/// memory manager - throws if a custom memory manager is set.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

af_memory_manager_get_memory_pressure_threshold(manager, &threshold);
if (pressure > threshold) { signal_memory_cleanup_fn(manager); }
if (pressure >= threshold) { signal_memory_cleanup_fn(manager); }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in this file basically reflect the change in #2801 Is that correct ?

@9prady9 9prady9 added this to the 3.7.2 milestone Apr 8, 2020
@umar456 umar456 dismissed 9prady9’s stale review April 9, 2020 23:08

I will fix the formatting in a future commit

@umar456 umar456 merged commit 3cb51ab into arrayfire:master Apr 9, 2020
@umar456 umar456 mentioned this pull request Jun 27, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants