Skip to content

Conversation

@maleadt
Copy link
Member

@maleadt maleadt commented Jan 28, 2022

The most significant change is that the pool is now allowed to use all memory, which should prevent stalls when synchronizing. See https://forums.developer.nvidia.com/t/gpu-stalls-due-to-stream-synchronization-even-when-idle/191761 and under-Peter/OMEinsum.jl#133 (comment); closes #1320.

cc @GiggleLiu.

cc @DhairyaLGandhi, this may significantly impact memory-heavy ML workloads. It may also result in non pool-aware applications or libraries to perform worse, so I'd appreciate if you could evaluate this and give some feedback. Note that it does require use of the memory pool, i.e., CUDA 11.2 or higher and not setting JULIA_CUDA_MEMORY_POOL=none.

This is supported nowadays, and slightly speeds up testing.
Otherwise we spend too much time releasing memory upon every synchronization.
@codecov
Copy link

codecov bot commented Jan 28, 2022

Codecov Report

Merging #1344 (f1f306c) into master (430787d) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1344      +/-   ##
==========================================
- Coverage   78.85%   78.82%   -0.04%     
==========================================
  Files         119      119              
  Lines        8689     8674      -15     
==========================================
- Hits         6852     6837      -15     
  Misses       1837     1837              
Impacted Files Coverage Δ
lib/cudadrv/memory.jl 81.44% <ø> (ø)
lib/cudadrv/devices.jl 85.18% <100.00%> (-0.36%) ⬇️
src/pool.jl 76.72% <100.00%> (-0.07%) ⬇️
lib/utils/memoization.jl 80.00% <0.00%> (-14.45%) ⬇️

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 18dc236...f1f306c. Read the comment docs.

@maleadt maleadt merged commit eb332f7 into master Jan 28, 2022
@maleadt maleadt deleted the tb/pool branch January 28, 2022 15:56
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.

Consider reserving memory

2 participants