Skip to content

cannot run tutorial files well. #495

@Arthur-Shi

Description

@Arthur-Shi

Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 5.3.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

runfile('C:/Users/admin/tvm/tutorials/get_started.py', wdir='C:/Users/admin/tvm/tutorials')
<class 'tvm.tensor.Tensor'>
Traceback (most recent call last):

File "", line 1, in
runfile('C:/Users/admin/tvm/tutorials/get_started.py', wdir='C:/Users/admin/tvm/tutorials')

File "C:\Program Files\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 880, in runfile
execfile(filename, namespace)

File "C:\Program Files\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/admin/tvm/tutorials/get_started.py", line 111, in
fadd_cuda = tvm.build(s, [A, B, C], "cuda", target_host="llvm", name="myadd")

File "C:\Users\admin\AppData\Roaming\Python\Python36\site-packages\tvm-0.1.0-py3.6-win-amd64.egg\tvm\build_module.py", line 368, in build
mhost = codegen.build_module(fhost, target_host)

File "C:\Users\admin\AppData\Roaming\Python\Python36\site-packages\tvm-0.1.0-py3.6-win-amd64.egg\tvm\codegen.py", line 20, in build_module
return _Build(lowered_func, target)

File "C:\Users\admin\AppData\Roaming\Python\Python36\site-packages\tvm-0.1.0-py3.6-win-amd64.egg\tvm_ffi\function.py", line 255, in my_api_func
return flocal(*args)

File "C:\Users\admin\AppData\Roaming\Python\Python36\site-packages\tvm-0.1.0-py3.6-win-amd64.egg\tvm_ffi_ctypes\function.py", line 183, in call
ctypes.byref(ret_val), ctypes.byref(ret_tcode)))

File "C:\Users\admin\AppData\Roaming\Python\Python36\site-packages\tvm-0.1.0-py3.6-win-amd64.egg\tvm_ffi\base.py", line 62, in check_call
raise TVMError(py_str(_LIB.TVMGetLastError()))

TVMError: [14:08:51] C:\Users\admin\tvm\src\codegen\codegen.cc:27: Check failed: bf != nullptr Target llvm is not enabled

I tried other softwares, but it gave the same output.

What should I do to make the file work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions