CreateBuffer
Deprecated since version All: CreateBuffer overloads are deprecated in favor of tt::tt_metal::distributed::MeshBuffer::create.
They will be removed after 2026-10-04.
-
std::shared_ptr<Buffer> tt::tt_metal::CreateBuffer(const BufferConfig &config)
-
Creates a pre-allocated interleaved DRAM or L1 buffer with the global allocator on device
Return value: std::shared_ptr<Buffer>
Argument Description
config Config for the buffer
-
std::shared_ptr<Buffer> tt::tt_metal::CreateBuffer(const ShardedBufferConfig &config)
-
Creates a pre-allocated sharded DRAM or L1 buffer with the global allocator on device
Return value: std::shared_ptr<Buffer>
Argument Description
config Config for the buffer
-
std::shared_ptr<Buffer> tt::tt_metal::CreateBuffer(const BufferConfig &config, DeviceAddr address)
-
Creates a pre-allocated interleaved DRAM or L1 buffer with the global allocator on device
Return value: std::shared_ptr<Buffer>
Argument Description
config Config for the buffer
address Device address of the buffer
-
std::shared_ptr<Buffer> tt::tt_metal::CreateBuffer(const ShardedBufferConfig &config, DeviceAddr address)
-
Creates a pre-allocated sharded DRAM or L1 buffer with the global allocator on device
Return value: std::shared_ptr<Buffer>
Argument Description
config Config for the buffer
address Device address of the buffer
-
std::shared_ptr<Buffer> tt::tt_metal::CreateBuffer(const BufferConfig &config, SubDeviceId sub_device_id)
-
Creates a pre-allocated interleaved DRAM or L1 buffer on device
Return value: std::shared_ptr<Buffer>
Argument Description
config Config for the buffer
sub_device_id The sub-device id to allocate on
-
std::shared_ptr<Buffer> tt::tt_metal::CreateBuffer(const ShardedBufferConfig &config, SubDeviceId sub_device_id)
-
Creates a pre-allocated sharded DRAM or L1 buffer on device
Return value: std::shared_ptr<Buffer>
Argument Description
config Config for the buffer
sub_device_id The sub-device id to allocate on