- 
                Notifications
    You must be signed in to change notification settings 
- Fork 292
[FFI] Rebase tvm to v0.22.0 to utilize tvm-ffi #1108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
      
        
          +774
        
        
          −1,793
        
        
          
        
      
    
  
  
     Merged
                    Changes from 39 commits
      Commits
    
    
            Show all changes
          
          
            54 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      ef95183
              
                3rdparty tvm bump
              
              
                LeiWang1999 3c175e4
              
                bump tvm into v0.22.0
              
              
                LeiWang1999 951f2de
              
                lint fix
              
              
                LeiWang1999 6d29c1e
              
                rebase tvm
              
              
                LeiWang1999 21e7a0a
              
                Update submodule tvm to latest commit 3085bc4
              
              
                LeiWang1999 3877610
              
                Refactor: Update configuration retrieval in CopyNode and adjust test …
              
              
                LeiWang1999 cd6daaf
              
                lint fix
              
              
                LeiWang1999 995315e
              
                test fix
              
              
                LeiWang1999 7ef5d01
              
                add requirement
              
              
                LeiWang1999 fdf4669
              
                atomic_fix
              
              
                LeiWang1999 9ecf41a
              
                atomic_fix
              
              
                LeiWang1999 68b6ada
              
                phaseout py39
              
              
                LeiWang1999 dc12ebc
              
                optimize
              
              
                LeiWang1999 751dbc7
              
                optimize
              
              
                LeiWang1999 fde6a50
              
                Merge branch 'main' of https://github.com/tile-ai/tilelang into tvm_r…
              
              
                LeiWang1999 38f7e49
              
                lint fix
              
              
                LeiWang1999 46dfea1
              
                do not clean cache
              
              
                LeiWang1999 33d6ad1
              
                do not clean cache
              
              
                LeiWang1999 c768919
              
                Merge branch 'main' of https://github.com/tile-ai/tilelang into tvm_r…
              
              
                LeiWang1999 f9a97c7
              
                [Minor] Minor update for Python versions and dependencies
              
              
                XuehaiPan c9d64fa
              
                [Lint] fix lint for py39
              
              
                XuehaiPan 89df129
              
                Merge remote-tracking branch 'upstream/main' into tvm_rebase
              
              
                XuehaiPan 4abf1d0
              
                [Lint] fix lint for ROCm
              
              
                XuehaiPan 452e40f
              
                [Build][CI] Sync CI changes from upstream/sdist
              
              
                XuehaiPan b9306ab
              
                [Lint] fix lint for ROCm
              
              
                XuehaiPan 40a6138
              
                [Build][CI] Update `repair-wheel-command`
              
              
                XuehaiPan 565fa97
              
                Merge remote-tracking branch 'upstream/main' into tvm_rebase
              
              
                XuehaiPan 305c86a
              
                [Minor] update abi3audit result format
              
              
                XuehaiPan 4d56db2
              
                [Lint] fix lint for ROCm
              
              
                XuehaiPan daf6c55
              
                [BugFix] fix build
              
              
                XuehaiPan 66ac445
              
                [Lint] fix lint for ROCm
              
              
                XuehaiPan fbc250e
              
                [BugFix] set rpath for libtvm and libtvm_runtime
              
              
                XuehaiPan 6bbf6aa
              
                [Deps] pin apache-tvm-ffi version
              
              
                XuehaiPan 4aa24ea
              
                [Build] set Python 3.9 Limited API for Cython target
              
              
                XuehaiPan 1b21e95
              
                [Build] set Python 3.9 Limited API for Cython target
              
              
                XuehaiPan 1de65aa
              
                [Deps] Restore Python 3.8 support
              
              
                XuehaiPan 6e8ad0d
              
                Merge remote-tracking branch 'upstream/main' into tvm_rebase
              
              
                XuehaiPan f4baf32
              
                Merge remote-tracking branch 'upstream/main' into tvm_rebase
              
              
                XuehaiPan ba13761
              
                [Build] use `apache-tvm-ffi`'s `libtvm_ffi`
              
              
                XuehaiPan 5be4057
              
                [BugFix] use `;` as delimiter for RPATH on macOS
              
              
                XuehaiPan 5e2ed4f
              
                [BugFix] use `--ignore-missing-dependencies` for `delocate-wheel`
              
              
                XuehaiPan 2d5faa8
              
                [Build] support `sccache` if available
              
              
                XuehaiPan 9a48282
              
                [Build] add CIBW import test
              
              
                XuehaiPan cd9ab57
              
                [Build][CI] enable ccache for CIBW on Linux
              
              
                XuehaiPan 1807298
              
                [BugFix] set rpath for libtvm and libtvm_runtime
              
              
                XuehaiPan aa4eb5d
              
                Revert "[Build][CI] enable ccache for CIBW on Linux"
              
              
                XuehaiPan 024c1e3
              
                [CI] fix perfbench bot
              
              
                XuehaiPan f276a26
              
                [BugFix] use Python 3.9 to build wheel
              
              
                XuehaiPan 8a23c08
              
                [Minor] update perfbench bot envs
              
              
                XuehaiPan 8424e99
              
                [BugFix] fix CIBW environment on Linux
              
              
                XuehaiPan 9ef647c
              
                [CI] skip import test on CentOS 7
              
              
                XuehaiPan 4bf2524
              
                Merge remote-tracking branch 'upstream/main' into tvm_rebase
              
              
                XuehaiPan c9e9191
              
                [CI] use Python urllib to download file instead of Wget
              
              
                XuehaiPan 74ec78c
              
                Merge remote-tracking branch 'upstream/main' into tvm_rebase
              
              
                XuehaiPan File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
          Some comments aren't visible on the classic Files Changed page.
        
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
  Submodule tvm
    updated
      
        from 5bf17a to 0f1eba
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -8,21 +8,27 @@ maintainers = [{ name = "Lei Wang", email = "[email protected]" }] | |
| license = "MIT" | ||
| keywords = ["BLAS", "CUDA", "HIP", "Code Generation", "TVM"] | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Environment :: GPU", | ||
| "Operating System :: POSIX :: Linux", | ||
| "Operating System :: OS Independent", | ||
| "Operating System :: MacOS", | ||
| "Programming Language :: C++", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Programming Language :: Python :: Implementation :: CPython", | ||
| "Intended Audience :: Developers", | ||
| "Intended Audience :: Science/Research", | ||
| "Scientific/Engineering :: Artificial Intelligence", | ||
| ] | ||
| dynamic = ["version"] | ||
| dependencies = [ | ||
| "apache-tvm-ffi~=0.1.0", | ||
| "cloudpickle", | ||
| "ml-dtypes", | ||
| "numpy>=1.23.5", | ||
|  | @@ -39,11 +45,7 @@ dependencies = [ | |
| fp4 = ["ml-dtypes>=0.5.1"] | ||
|  | ||
| [build-system] | ||
| requires = [ | ||
| "cython>=3.0.0", | ||
| "scikit-build-core", | ||
| "setuptools>=63", | ||
| ] | ||
| requires = ["cython>=3.0.0", "scikit-build-core"] | ||
| build-backend = "scikit_build_core.build" | ||
|  | ||
| [tool.scikit-build] | ||
|  | @@ -177,20 +179,23 @@ environment-pass = [ | |
| before-build = "env -0 | sort -z | tr '\\0' '\\n'" | ||
| windows.before-build = "set" | ||
| # Pin to glibc 2.17 for x86 and 2.28 for aarch64 for now | ||
| manylinux-x86_64-image = "manylinux2014" | ||
| manylinux-aarch64-image = "manylinux_2_28" | ||
| manylinux-x86_64-image = "manylinux2014" # CentOS 7 | ||
| manylinux-aarch64-image = "manylinux_2_28" # AlmaLinux 8 | ||
|  | ||
|         
                  XuehaiPan marked this conversation as resolved.
              Show resolved
            Hide resolved | ||
| [tool.cibuildwheel.linux] | ||
| environment = { PYTHONDEVMODE = "1", PYTHONUNBUFFERED = "1", PATH = "/usr/local/cuda/bin:$PATH" } | ||
| repair-wheel-command = [ | ||
| "auditwheel repair --exclude libcuda.so.1 --exclude '/usr/local/cuda*' -w {dest_dir} {wheel}", | ||
| "pipx run abi3audit --strict --report {wheel}", | ||
| "auditwheel -v repair --exclude libtvm_ffi.so --exclude libcuda.so.1 --exclude '/usr/local/cuda*' -w {dest_dir} {wheel}", | ||
| "pipx run abi3audit --verbose --strict {wheel}", | ||
| ] | ||
| # Install CUDA runtime and stub driver library | ||
| # manylinux_2_28 uses gcc 14, which needs CUDA 12.8 | ||
| before-all = """ | ||
| set -eux | ||
|  | ||
| cat /etc/*-release | ||
| uname -a | ||
|  | ||
| case "$(uname -m)" in | ||
| "x86_64") | ||
| yum-config-manager --add-repo https://developer.download.nvidia.cn/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo | ||
|  | @@ -207,3 +212,9 @@ cudaver="$(echo "${CUDA_VERSION:-"12.4"}" | cut -d '.' -f-2)" | |
| v="${cudaver//./-}" | ||
| yum install -y "cuda-minimal-build-${v}" "cuda-driver-devel-${v}" "cuda-nvrtc-devel-${v}" | ||
| """ | ||
|  | ||
| [tool.cibuildwheel.macos] | ||
| repair-wheel-command = [ | ||
| "delocate-wheel --verbose --exclude libtvm_ffi --no-sanitize-rpaths --require-archs {delocate_archs} -w {dest_dir} -v {wheel}", | ||
| "pipx run abi3audit --verbose --strict {wheel}", | ||
| ] | ||
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.