From commits-return-16699-archive-asf-public=cust-asf.ponee.io@tvm.apache.org Wed Jul 1 02:44:38 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 AD81D180643 for ; Wed, 1 Jul 2020 04:44:37 +0200 (CEST) Received: (qmail 58556 invoked by uid 500); 1 Jul 2020 02:44:37 -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 58534 invoked by uid 99); 1 Jul 2020 02:44:36 -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; Wed, 01 Jul 2020 02:44:36 +0000 From: =?utf-8?q?GitBox?= To: commits@tvm.apache.org Subject: =?utf-8?q?=5BGitHub=5D_=5Bincubator-tvm=5D_FrozenGene_commented_on_a_change_?= =?utf-8?q?in_pull_request_=235962=3A_=5BAnsor=5D=5BAutoTVM_v2=2E0=5D_Part_0?= =?utf-8?q?=3A_Ansor_minimum_system_for_auto_schedule_generating?= Message-ID: <159357147671.29655.16192657510540114911.asfpy@gitbox.apache.org> Date: Wed, 01 Jul 2020 02:44:36 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-Reply-To: References: FrozenGene commented on a change in pull request #5962: URL: https://github.com/apache/incubator-tvm/pull/5962#discussion_r448084718 ########## File path: tests/python/unittest/test_ansor_measure.py ########## @@ -0,0 +1,67 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +"""Test measurement and log serialization""" + +import tvm +from tvm import ansor +import tempfile + +from test_ansor_common import get_tiled_matmul + + +def test_serialization(): + dag, s = get_tiled_matmul() + target = tvm.target.create("llvm") Review comment: we should add `if not tvm.runtime.enabled("llvm"):` to check the environment has enabled `llvm`. Other targets should be done the same ---------------------------------------------------------------- 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