Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cpp/velox/compute/VeloxBackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ void VeloxBackend::init(
memoryManagerCapacity = facebook::velox::memory::kMaxMemory;
}
LOG(INFO) << "Setting global Velox memory manager with capacity: " << memoryManagerCapacity;
facebook::velox::memory::initializeMemoryManager({.allocatorCapacity = memoryManagerCapacity});
facebook::velox::memory::MemoryManager::Options options;
options.allocatorCapacity = memoryManagerCapacity;
facebook::velox::memory::initializeMemoryManager(options);

// local cache persistent relies on the cache pool from root memory pool so we need to init this
// after the memory manager instanced
Expand Down
16 changes: 8 additions & 8 deletions cpp/velox/memory/VeloxMemoryManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,14 @@ VeloxMemoryManager::VeloxMemoryManager(
auto checkUsageLeak = backendConf.get<bool>(kCheckUsageLeak, kCheckUsageLeakDefault);

ArbitratorFactoryRegister afr(listener_.get());
velox::memory::MemoryManagerOptions mmOptions{
.alignment = velox::memory::MemoryAllocator::kMaxAlignment,
.trackDefaultUsage = true, // memory usage tracking
.checkUsageLeak = checkUsageLeak, // leak check
.coreOnAllocationFailureEnabled = false,
.allocatorCapacity = velox::memory::kMaxMemory,
.arbitratorKind = afr.getKind(),
.extraArbitratorConfigs = getExtraArbitratorConfigs(backendConf)};
velox::memory::MemoryManager::Options mmOptions;
mmOptions.alignment = velox::memory::MemoryAllocator::kMaxAlignment;
mmOptions.trackDefaultUsage = true; // memory usage tracking
mmOptions.checkUsageLeak = checkUsageLeak; // leak check
mmOptions.coreOnAllocationFailureEnabled = false;
mmOptions.allocatorCapacity = velox::memory::kMaxMemory;
mmOptions.arbitratorKind = afr.getKind();
mmOptions.extraArbitratorConfigs = getExtraArbitratorConfigs(backendConf);
veloxMemoryManager_ = std::make_unique<velox::memory::MemoryManager>(mmOptions);

veloxAggregatePool_ = veloxMemoryManager_->addRootPool(
Expand Down
4 changes: 2 additions & 2 deletions ep/build-velox/src/get_velox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
set -exu

VELOX_REPO=https://github.com/oap-project/velox.git
VELOX_BRANCH=2025_09_04
VELOX_BRANCH=2025_09_06
VELOX_HOME=""
RUN_SETUP_SCRIPT=ON
VELOX_ENHANCED_REPO=https://github.com/IBM/velox.git
VELOX_ENHANCED_BRANCH=ibm-2025_09_04
VELOX_ENHANCED_BRANCH=ibm-2025_09_06
ENABLE_ENHANCED_FEATURES=OFF

# Developer use only for testing Velox PR.
Expand Down