Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,20 @@ jobs:
submodules: 'recursive'
- name: Set up environment
uses: ./.github/actions/setup
- name: Conda Build
- name: Install LLVM dependencies
shell: bash -l {0}
run: >-
conda build --output-folder=conda/pkg conda/recipe &&
conda install tvm -c ./conda/pkg
run: |
conda install -c conda-forge llvmdev cmake ninja zlib
- name: Build TVM wheel
shell: bash -l {0}
run: |
pip install scikit-build-core
export CMAKE_ARGS="-DUSE_LLVM=ON -DBUILD_TESTING=OFF"
pip wheel --no-deps -w dist . -v
- name: Install TVM from wheel
shell: bash -l {0}
run: |
pip install dist/*.whl
# - name: Build iOS RPC
# run: |
# IOS_VERSION="14.0"
Expand Down Expand Up @@ -98,11 +107,20 @@ jobs:
submodules: 'recursive'
- name: Set up environment
uses: ./.github/actions/setup
- name: Conda Build
- name: Install LLVM dependencies
shell: cmd /C call {0}
run: >-
conda build --output-folder=conda/pkg conda/recipe &&
conda install tvm -c ./conda/pkg
run: |
conda install -c conda-forge llvmdev cmake ninja zlib
- name: Install TVM
shell: cmd /C call {0}
run: |
pip install scikit-build-core
set CMAKE_ARGS=-DUSE_LLVM=ON -DBUILD_TESTING=OFF
pip install --no-deps . -v
- name: Install test dependencies
shell: cmd /C call {0}
run: |
pip install psutil cloudpickle ml_dtypes numpy packaging scipy tornado typing_extensions
- name: Test
shell: cmd /C call {0}
run: >-
Expand Down
30 changes: 15 additions & 15 deletions conda/build-environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,29 @@
# 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.
# KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

# Build environment that can be used to build tvm.
name: tvm-build
# Build environment for TVM wheel building.
# This environment provides the necessary dependencies for building TVM wheels.
name: tvm-wheel-build

# The conda channels to lookup the dependencies
channels:
- conda-forge

# The packages to install to the environment
dependencies:
- conda < 24.9.0
- conda-build < 24.9.0
- git
# Core build tools
- cmake >=3.24
- ninja
- make
- llvmdev >=11
- numpy
- pytest
- cython
- cmake
- python >=3.9
- pip
- git
- bzip2
- make
- pytest
- numpy
- scipy
- pillow
- pip
- cython
4 changes: 2 additions & 2 deletions conda/recipe/install_tvm_python.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
:: under the License.
echo on

cd %SRC_DIR%\python || exit /b
%PYTHON% setup.py install --single-version-externally-managed --record=%SRC_DIR%\record.txt || exit /b
cd %SRC_DIR% || exit /b
%PYTHON% -m pip install . --no-deps --no-build-isolation --record=%SRC_DIR%\record.txt || exit /b
4 changes: 2 additions & 2 deletions conda/recipe/install_tvm_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
set -e
set -u

cd ${SRC_DIR}/python
${PYTHON} setup.py install --single-version-externally-managed --record=/tmp/record.txt
cd ${SRC_DIR}
${PYTHON} -m pip install . --no-deps --no-build-isolation --record=/tmp/record.txt
82 changes: 0 additions & 82 deletions docker/Dockerfile.demo_android

This file was deleted.

35 changes: 0 additions & 35 deletions docker/Dockerfile.demo_cpu

This file was deleted.

36 changes: 0 additions & 36 deletions docker/Dockerfile.demo_gpu

This file was deleted.

47 changes: 0 additions & 47 deletions docker/Dockerfile.demo_mrvl

This file was deleted.

74 changes: 0 additions & 74 deletions docker/Dockerfile.demo_opencl

This file was deleted.

Loading
Loading