Skip to content

Commit

Permalink
[CI] Added a dummy task_config_build_gpu_vulkan.sh, to be removed later.
Browse files Browse the repository at this point in the history
The CI builds use the Jenkinsfile located in the ci-docker-staging
branch, but the scripts in the PR that is being run.  Temporarily
adding back a task_config_build_gpu_vulkan.sh, which just calls the
renamed task_config_build_gpu_other.sh.
  • Loading branch information
Lunderberg committed Sep 28, 2021
1 parent ea3e0df commit 3a18e4a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ stage('Build') {
make(ci_gpu, 'build', '-j2')
pack_lib('gpu', tvm_multilib)
// compiler test
sh "${docker_run} ${ci_gpu} ./tests/scripts/task_config_build_gpu_rocm.sh"
sh "${docker_run} ${ci_gpu} ./tests/scripts/task_config_build_gpu_other.sh"
make(ci_gpu, 'build2', '-j2')
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
# specific language governing permissions and limitations
# under the License.

# This file is a compiler test to ensure that runtimes can compile
# correctly, even if they aren't actively tested in the CI.

set -e
set -u

Expand Down
28 changes: 28 additions & 0 deletions tests/scripts/task_config_build_gpu_vulkan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/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.

# TODO(Lunderberg): Remove this file once the Jenkinsfile in the
# ci-docker-staging branch no longer references it.

# This file is a backwards compatibility file, as the TVM CI uses the
# Jenkinsfile from the ci-docker-staging branch, but the task scripts
# from the PR branch.

set -euo pipefail

./tests/scripts/task_config_build_gpu_other.sh
5 changes: 3 additions & 2 deletions tests/scripts/task_python_unittest_gpuonly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@

set -euo pipefail

export PYTEST_ADDOPTS="-m gpu ${PYTEST_ADDOPTS:-}"

# Test most of the enabled runtimes here.
export TVM_TEST_TARGETS="cuda;opencl;metal;rocm;nvptx;opencl -device=mali,aocl_sw_emu"
export PYTEST_ADDOPTS="-m gpu $PYTEST_ADDOPTS"
export TVM_UNITTEST_TESTSUITE_NAME=python-unittest-gpu

./tests/scripts/task_python_unittest.sh

# Kept separate to avoid increasing time needed to run CI, testing
# only minimal functionality of Vulkan runtime.
export TVM_TEST_TARGETS="vulkan -from_device=0"
export PYTEST_ADDOPTS="-m gpu $PYTEST_ADDOPTS"
export TVM_UNITTEST_TESTSUITE_NAME=python-unittest-vulkan

source tests/scripts/setup-pytest-env.sh
Expand Down

0 comments on commit 3a18e4a

Please sign in to comment.