Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Conversation

@wenleix
Copy link
Contributor

@wenleix wenleix commented Aug 25, 2022

Summary:
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.

Differential Revision: D39010989

Summary:
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.

Differential Revision: D39010989

fbshipit-source-id: ef9aa702d5649a73bbcd5d9cce910a2573e4195f
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Aug 25, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D39010989

facebook-github-bot pushed a commit that referenced this pull request Aug 25, 2022
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
wenleix added a commit that referenced this pull request Aug 27, 2022
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
@wenleix wenleix closed this in #485 Aug 27, 2022
wenleix added a commit that referenced this pull request Aug 27, 2022
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
@wenleix wenleix deleted the export-D39010989-to-fbsync branch August 27, 2022 03:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants