question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUILD] Conda package to tvm

See original GitHub issue

Hello,

I am trying to create a package for tvm on conda-forge. I already packaged the whole third-party dependencies. However, I am facing some errors in compilation time.

For now, I am just creating the package for Linux

PR opened for tvm : https://github.com/conda-forge/staged-recipes/pull/8316

Azure pipeline: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=33508

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
marcelotrevisanicommented, May 13, 2019

@junrushao1994 , I think without the conda environment would be difficult to replicate the errors. If you want to, you can download `miniconda, install it, after that, you need to install the conda-build and add the conda-forge channel:

conda config --add channels conda-forge
conda install conda-build

so, you will need the recipe for tvm, basically it is in my branch add-tvm https://github.com/marcelotrevisani/staged-recipes/tree/add-tvm

inside of the folder recipes/tvm, just execute:

conda build . --dirty

The option dirty is just telling conda to not delete the environment after the build

1reaction
junrushaocommented, May 10, 2019

Looking into the Azure pipeline, I saw the following error message

/home/conda/feedstock_root/build_artifacts/tvm_1557397107698/work/include/tvm/runtime/device_api.h: In function 'const char* tvm::runtime::DeviceName(int)':
/home/conda/feedstock_root/build_artifacts/tvm_1557397107698/work/include/tvm/runtime/device_api.h:194:10: error: 'kDLVulkan' was not declared in this scope
     case kDLVulkan: return "vulkan";
          ^~~~~~~~~
/home/conda/feedstock_root/build_artifacts/tvm_1557397107698/work/include/tvm/runtime/device_api.h:194:10: note: suggested alternative: 'kDLFloat'
     case kDLVulkan: return "vulkan";
          ^~~~~~~~~
          kDLFloat
/home/conda/feedstock_root/build_artifacts/tvm_1557397107698/work/include/tvm/runtime/device_api.h:199:10: error: 'kDLExtDev' was not declared in this scope
     case kDLExtDev: return "ext_dev";
          ^~~~~~~~~

kDLVulkan is defined in 3rdparty/dlpack/include/dlpack/dlpack.h, so I would say that there might be some issues with the include search path.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUILD] Conda package to tvm · Issue #3161 - GitHub
Hello, I am trying to create a package for tvm on conda-forge. I already packaged the whole third-party dependencies.
Read more >
Install from Source — tvm 0.11.dev0 documentation
This page gives instructions on how to build and install the TVM package from scratch on various systems. It consists of two steps:...
Read more >
Building conda packages from scratch
This tutorial is for Windows, macOS, and Linux users who wish to generate a conda package by writing the necessary files. Prior knowledge...
Read more >
TVM and VTA (1) - ICRG @ Shanghai Jiao Tong University
Here I choose to install by the conda environment from source. git clone --recursive https://github.com/apache/tvm tvm cd tvm # Install the ...
Read more >
Tvm Py - conda install - :: Anaconda.org
conda -forge / packages / tvm-py 0.8.0. 0 · License: Apache-2.0 · 22957 total downloads · Last upload: 8 months and 19 days...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found