You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/02/15 10:05:46 UTC

[GitHub] [tvm] Mousius commented on a change in pull request #10246: [skip ci][ci] Use sccache in builds

Mousius commented on a change in pull request #10246:
URL: https://github.com/apache/tvm/pull/10246#discussion_r806658913



##########
File path: tests/scripts/task_build.sh
##########
@@ -15,5 +15,29 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-export VTA_HW_PATH=`pwd`/3rdparty/vta-hw
-cd $1 && cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo && make $2 && cd ..
+set -eux
+
+VTA_HW_PATH=$(pwd)/3rdparty/vta-hw
+export VTA_HW_PATH
+
+pushd "$1"
+
+# Set up sccache to use S3
+export SCCACHE_BUCKET=$3
+export CC=/opt/sccache/cc
+export CXX=/opt/sccache/c++
+echo "$SCCACHE_BUCKET" | wc
+echo "$SCCACHE_BUCKET" | base64
+
+sccache --start-server || echo failed
+sccache --show-stats
+
+# Use ninja as the builder for cmake
+pip install --user ninja

Review comment:
       Can we not `apt-get install ninja-build` rather than using `pip` here? 




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org