Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Don't pool large arrays #169

Merged
merged 1 commit into from
Oct 29, 2018
Merged

Don't pool large arrays #169

merged 1 commit into from
Oct 29, 2018

Conversation

MikeInnes
Copy link
Collaborator

The pooling allocator is designed for small arrays, and doesn't really make any sense for one that take up a significant amount of GPU memory. This fixes the immediate issue by just not pooling at all for large arrays.

In future, we could extend this by just using a different pooling strategy for arrays of this size. For example, in this regime linear lookups are much less of a big deal (at most we can allocate ~100 arrays of this size anyway) so allocating exact sizes and searching for the smallest buffer to reuse would be sensible.

@codecov-io
Copy link

codecov-io commented Oct 26, 2018

Codecov Report

Merging #169 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #169      +/-   ##
==========================================
+ Coverage   83.97%   83.98%   +0.01%     
==========================================
  Files          31       31              
  Lines        1092     1093       +1     
==========================================
+ Hits          917      918       +1     
  Misses        175      175
Impacted Files Coverage Δ
src/memory.jl 82.88% <100%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40c106c...d9f390d. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants