From commits-return-14452-archive-asf-public=cust-asf.ponee.io@tvm.apache.org Tue Jun 2 16:22:26 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 0505918064C for ; Tue, 2 Jun 2020 18:22:25 +0200 (CEST) Received: (qmail 82187 invoked by uid 500); 2 Jun 2020 16:22:25 -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 82177 invoked by uid 99); 2 Jun 2020 16:22:25 -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, 02 Jun 2020 16:22:25 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 47A4081F29; Tue, 2 Jun 2020 16:22:25 +0000 (UTC) Date: Tue, 02 Jun 2020 16:22:25 +0000 To: "commits@tvm.apache.org" Subject: [incubator-tvm] branch master updated: [BUGFIX][CRT] Fix Compilation Error in CRT (#5713) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <159111494491.23455.7705755439995195779@gitbox.apache.org> From: tqchen@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-tvm X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 13277a5fd9c60378f9336d5235051f381a83b257 X-Git-Newrev: 3d0606313f2cb7625eeec5308fe33354dc94fc90 X-Git-Rev: 3d0606313f2cb7625eeec5308fe33354dc94fc90 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. tqchen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git The following commit(s) were added to refs/heads/master by this push: new 3d06063 [BUGFIX][CRT] Fix Compilation Error in CRT (#5713) 3d06063 is described below commit 3d0606313f2cb7625eeec5308fe33354dc94fc90 Author: Liangfu Chen AuthorDate: Wed Jun 3 00:22:14 2020 +0800 [BUGFIX][CRT] Fix Compilation Error in CRT (#5713) --- src/runtime/crt/crt_backend_api.c | 2 ++ src/runtime/crt/ndarray.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/runtime/crt/crt_backend_api.c b/src/runtime/crt/crt_backend_api.c index fe71439..7589ce4 100644 --- a/src/runtime/crt/crt_backend_api.c +++ b/src/runtime/crt/crt_backend_api.c @@ -24,6 +24,8 @@ #include #include +#include "packed_func.h" + void* TVMBackendAllocWorkspace(int device_type, int device_id, uint64_t nbytes, int dtype_code_hint, int dtype_bits_hint) { void* ptr = 0; diff --git a/src/runtime/crt/ndarray.c b/src/runtime/crt/ndarray.c index 02c37bf..17e2107 100644 --- a/src/runtime/crt/ndarray.c +++ b/src/runtime/crt/ndarray.c @@ -100,9 +100,9 @@ int TVMNDArray_Load(TVMNDArray* ret, const char** strm) { *strm += sizeof(data_byte_size); if (!(data_byte_size == num_elems * elem_bytes)) { fprintf(stderr, - "invalid DLTensor file format: data_byte_size=%jd, " - "while num_elems*elem_bytes=%jd\n", - data_byte_size, (num_elems * elem_bytes)); + "invalid DLTensor file format: data_byte_size=%d, " + "while num_elems*elem_bytes=%d\n", + (int)data_byte_size, (int)(num_elems * elem_bytes)); // NOLINT(*) status = -1; } memcpy(ret->dl_tensor.data, *strm, data_byte_size);