You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
Use rootMemoryPool to construct execContext (#480)
Summary:
Pull Request resolved: #480
It originally use `memory::getDefaultScopedMemoryPool()` since `ExecCtx`
constructor expects `unique_ptr<MemoryPool>`.
Since facebookincubator/velox@15eeddb,
`ExecCtx` now expects `MemoryPool*`, so we can use
`&velox::memory::getProcessDefaultMemoryManager().getRoot()` returned by
`TorchArrowGlobalStatic::rootMemoryPool`.
This makes TorchArrow always use this process default root memory pool.
Reviewed By: dracifer, vancexu
Differential Revision: D39010989
fbshipit-source-id: 3a383b01163e9866500a6fc8b091080b70684c6e
0 commit comments