From commits-return-9420-archive-asf-public=cust-asf.ponee.io@tvm.apache.org Tue Mar 24 15:37:42 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E345618065C for ; Tue, 24 Mar 2020 16:37:41 +0100 (CET) Received: (qmail 75533 invoked by uid 500); 24 Mar 2020 15:37:41 -0000 Mailing-List: contact commits-help@tvm.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tvm.apache.org Delivered-To: mailing list commits@tvm.apache.org Received: (qmail 75519 invoked by uid 99); 24 Mar 2020 15:37:41 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Mar 2020 15:37:41 +0000 From: GitBox To: commits@tvm.apache.org Subject: [GitHub] [incubator-tvm] tqchen edited a comment on issue #5124: [uTVM][Runtime] Introduce Virtual Memory Allocator to CRT Message-ID: <158506426126.1565.4951327178659757124.gitbox@gitbox.apache.org> References: In-Reply-To: Date: Tue, 24 Mar 2020 15:37:41 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit tqchen edited a comment on issue #5124: [uTVM][Runtime] Introduce Virtual Memory Allocator to CRT URL: https://github.com/apache/incubator-tvm/pull/5124#issuecomment-603312590 The workspace memory could have a different strategy. The way it works is that we create a different arena for workspace, along with a counter. - When a memory is allocated, we allocate memory from the arena, and add the counter - When a memory is de-allocated, we decrease the counter - When the counter goes to zero, we free all the memory. This will work because all workspace memory are temporal. It also guarantees a constant time allocation ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services