From 731951c5db45df1cdaf335ae860f66e9282a679f Mon Sep 17 00:00:00 2001 From: wenxizhu Date: Mon, 7 Feb 2022 22:27:34 +0800 Subject: [PATCH 1/6] [LIBXSMM] add libxsmm to TVM CI. --- docker/Dockerfile.ci_cpu | 4 +++ docker/install/ubuntu_install_libxsmm.sh | 32 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 docker/install/ubuntu_install_libxsmm.sh diff --git a/docker/Dockerfile.ci_cpu b/docker/Dockerfile.ci_cpu index 962d738a9fc2..e2991317a287 100644 --- a/docker/Dockerfile.ci_cpu +++ b/docker/Dockerfile.ci_cpu @@ -134,3 +134,7 @@ RUN bash /install/ubuntu_install_paddle.sh # sccache COPY install/ubuntu_install_sccache.sh /install/ubuntu_install_sccache.sh RUN bash /install/ubuntu_install_sccache.sh + +# Libxsmm deps +COPY install/ubuntu_install_libxsmm.sh /install +RUN bash /install/ubuntu_install_libxsmm.sh diff --git a/docker/install/ubuntu_install_libxsmm.sh b/docker/install/ubuntu_install_libxsmm.sh new file mode 100644 index 000000000000..e5c5ca57ef4e --- /dev/null +++ b/docker/install/ubuntu_install_libxsmm.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# 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. + +set -e +set -u +set -o pipefail + +pushd /usr/local/ +wget -q https://github.com/libxsmm/libxsmm/archive/refs/tags/1.17.tar.gz +tar -xzf 1.17.tar.gz +pushd ./libxsmm-1.17/ +make STATIC=0 -j10 +mv libxsmm-1.17/include/* /usr/local/include/ +mv libxsmm-1.17/lib/*so /usr/local/lib/ +rm -rf 1.17.tar.gz libxsmm-1.17 +popd +popd From c69872292e9ad6a2ce5b5af1e6acbf25792ff57d Mon Sep 17 00:00:00 2001 From: zhuwenxi Date: Fri, 11 Feb 2022 10:10:27 +0800 Subject: [PATCH 2/6] Config "make" thread number in a more flexible way. Co-authored-by: Cody Yu --- docker/install/ubuntu_install_libxsmm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/install/ubuntu_install_libxsmm.sh b/docker/install/ubuntu_install_libxsmm.sh index e5c5ca57ef4e..b80eab24c3b8 100644 --- a/docker/install/ubuntu_install_libxsmm.sh +++ b/docker/install/ubuntu_install_libxsmm.sh @@ -24,7 +24,7 @@ pushd /usr/local/ wget -q https://github.com/libxsmm/libxsmm/archive/refs/tags/1.17.tar.gz tar -xzf 1.17.tar.gz pushd ./libxsmm-1.17/ -make STATIC=0 -j10 +make STATIC=0 -j$(($(nproc) - 1)) mv libxsmm-1.17/include/* /usr/local/include/ mv libxsmm-1.17/lib/*so /usr/local/lib/ rm -rf 1.17.tar.gz libxsmm-1.17 From 31bd0c9f25ad8a3ebb15cd01a2b66f4fa4b1e6d9 Mon Sep 17 00:00:00 2001 From: wenxizhu Date: Wed, 23 Mar 2022 20:13:05 +0800 Subject: [PATCH 3/6] Empty commit to trigger github CI. From 2087d06f182e1f2f342b2b418bdd25da418fa7ad Mon Sep 17 00:00:00 2001 From: wenxizhu Date: Fri, 25 Mar 2022 11:39:04 +0800 Subject: [PATCH 4/6] Update ubuntu_install_libxsmm.sh. --- docker/install/ubuntu_install_libxsmm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/install/ubuntu_install_libxsmm.sh b/docker/install/ubuntu_install_libxsmm.sh index b80eab24c3b8..f0fda4924882 100644 --- a/docker/install/ubuntu_install_libxsmm.sh +++ b/docker/install/ubuntu_install_libxsmm.sh @@ -25,8 +25,8 @@ wget -q https://github.com/libxsmm/libxsmm/archive/refs/tags/1.17.tar.gz tar -xzf 1.17.tar.gz pushd ./libxsmm-1.17/ make STATIC=0 -j$(($(nproc) - 1)) -mv libxsmm-1.17/include/* /usr/local/include/ -mv libxsmm-1.17/lib/*so /usr/local/lib/ -rm -rf 1.17.tar.gz libxsmm-1.17 +cp -L include/* /usr/local/include/ +cp -L lib/*so /usr/local/lib/ popd +rm -rf 1.17.tar.gz libxsmm-1.17 popd From 6b92867b693dda0ee9603e99d1084a1555fafbc6 Mon Sep 17 00:00:00 2001 From: wenxizhu Date: Fri, 25 Mar 2022 13:00:54 +0800 Subject: [PATCH 5/6] Trigger CI tasks. From f37f79f151e672f973d610839532a58166e17e26 Mon Sep 17 00:00:00 2001 From: wenxizhu Date: Mon, 28 Mar 2022 11:07:32 +0800 Subject: [PATCH 6/6] Trigger CI tasks.