-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Threading fixes #734
Threading fixes #734
Conversation
c3af98f
to
cbcb03b
Compare
Codecov Report
@@ Coverage Diff @@
## master #734 +/- ##
===========================================
+ Coverage 65.35% 78.74% +13.38%
===========================================
Files 123 124 +1
Lines 7427 7466 +39
===========================================
+ Hits 4854 5879 +1025
+ Misses 2573 1587 -986
Continue to review full report at Codecov.
|
This fix works. Great! btw, there is a undefined variable diff --git a/src/pool.jl b/src/pool.jl
index fbb239d9..b3aabb8f 100644
--- a/src/pool.jl
+++ b/src/pool.jl
@@ -584,6 +584,10 @@ function memory_status(io::IO=stdout)
alloc_used_bytes = used_memory()
alloc_cached_bytes = cached_memory()
alloc_total_bytes = alloc_used_bytes + alloc_cached_bytes
+
+ default_pool = version() >= v"11.2" ? "cuda" : "binned"
+ pool_name = get(ENV, "JULIA_CUDA_MEMORY_POOL", default_pool)
+
@printf(io, "%s usage: %s (%s allocated, %s cached)\n", pool_name,
Base.format_bytes(alloc_total_bytes), Base.format_bytes(alloc_used_bytes),
Base.format_bytes(alloc_cached_bytes))
|
[skip ci]
Thanks, fixed! |
Fixes #706