diff --git a/csrc/device_lower/pass/allocation.cpp b/csrc/device_lower/pass/allocation.cpp index 0db9a146837..7c2924a3366 100644 --- a/csrc/device_lower/pass/allocation.cpp +++ b/csrc/device_lower/pass/allocation.cpp @@ -848,7 +848,11 @@ std::vector insertTMemRegionAllocsAndDeallocs( // the tcgen05.alloc instructions auto alloc_expr = IrBuilder::create( - allocation_address, IrBuilder::create(0, DataType::UInt32)); + allocation_address, + IrBuilder::create( + 32, + DataType::UInt32) // TODO: hard code allocation size to 32 for now + ); prologue.push_back(alloc_expr); // Relinquish the right to allocate after we are done with tcgen05.allocs