Closed
Description
My little python build script(mybuild.sh
):
cd python; python setup.py install --user; cd ..
cd topi/python; python setup.py install --user; cd ../..
And this is how I run unit test:
./mybuild.sh && ./tests/scripts/task_python_unittest.sh
WARNING: Cython library may not be compiled correctly with both i386 and x64
running install
running bdist_egg
[snip........]
Finished processing dependencies for topi==0.1.0
test_arith_detect_clip_bound.test_basic ... ok
test_arith_detect_linear_equation.test_basic ... ok
test_arith_detect_linear_equation.test_multivariate ... ok
test_arith_domain_touched.test_domain_touched ... ok
test_arith_intset.test_basic ... ok
test_arith_intset.test_vector ... ok
test_arith_intset.test_deduce ... ok
test_arith_intset.test_check ... [21:20:36] src/arithmetic/int_set.cc:514: cannot evaluate set type Cast
ok
test_arith_modular.test_basic ... ok
test_arith_simplify.test_simplify ... ok
test_build_lower.test_lower_rfactor ... ok
test_codegen_cross_llvm.test_llvm_add_pipeline ... ok
test_codegen_device.test_add_pipeline ... ok
test_codegen_extern.test_add_pipeline ... ok
test_codegen_extern.test_pack_buffer_simple ... ok
test_codegen_extern.test_pack_buffer_intermediate ... ok
test_codegen_llvm.test_llvm_intrin ... ok
test_codegen_llvm.test_llvm_add_pipeline ... [21:20:36] src/pass/vectorize_loop.cc:303: Detect vector condition in Vectorized Loop, scalarizing...
ok
test_codegen_llvm.test_llvm_persist_parallel ... ok
test_codegen_llvm.test_llvm_flip_pipeline ... [21:20:36] src/pass/vectorize_loop.cc:303: Detect vector condition in Vectorized Loop, scalarizing...
ok
test_codegen_llvm.test_llvm_vadd_pipeline ... ok
test_codegen_llvm.test_llvm_madd_pipeline ... ok
test_codegen_llvm.test_llvm_temp_space ... ok
test_codegen_llvm.test_multiple_func ... ok
test_codegen_llvm.test_llvm_select ... ok
test_codegen_llvm.test_llvm_bool ... ok
test_codegen_static_init.test_static_init ... ok
test_codegen_vm_basic.test_stack_vm_basic ... ok
test_codegen_vm_basic.test_stack_vm_loop ... ok
test_codegen_vm_basic.test_stack_vm_cond ... ok
test_codegen_vm_basic.test_vm_parallel ... ok
test_ir_builder.test_for ... ok
test_ir_builder.test_if ... ok
test_ir_builder.test_prefetch ... ok
test_lang_basic.test_const ... ok
test_lang_basic.test_make ... ok
test_lang_basic.test_ir ... ok
test_lang_basic.test_ir2 ... ok
test_lang_basic.test_let ... ok
test_lang_basic.test_cast ... ok
test_lang_basic.test_attr ... ok
test_lang_basic.test_basic ... ok
test_lang_basic.test_stmt ... ok
test_lang_basic.test_dir ... ok
test_lang_basic.test_dtype ... ok
test_lang_basic.test_any ... ok
test_lang_basic.test_all ... ok
test_lang_basic.test_bitwise ... ok
test_lang_buffer.test_buffer ... ok
test_lang_buffer.test_buffer_access_ptr ... ok
test_lang_buffer.test_buffer_index_merge_mult_mod ... ok
test_lang_container.test_array ... ok
test_lang_container.test_array_save_load_json ... ok
test_lang_container.test_map ... ok
test_lang_container.test_map_save_load_json ... ok
test_lang_group.test_scan_group ... [21:20:37] /Users/weichen/workspace/deep-learning/tvm/dmlc-core/include/dmlc/logging.h:308: [21:20:37] src/schedule/schedule_lang.cc:120: Check failed: pg.same_as(group) Can only assign compute_at to stages within the same group
Stack trace returned 6 entries:
[bt] (0) 0 libtvm.dylib 0x00000001100c2898 _ZN4dmlc15LogMessageFatalD2Ev + 40
[bt] (1) 1 libtvm.dylib 0x000000011029329d _ZN3tvm5Stage10compute_atES0_NS_7IterVarE + 1117
[bt] (2) 2 libtvm.dylib 0x00000001100e8246 _ZNSt3__110__function6__funcIN3tvm4$_35ENS_9allocatorIS3_EEFvNS2_7runtime7TVMArgsEPNS6_11TVMRetValueEEEclEOS7_OS9_ + 150
[bt] (3) 3 libtvm.dylib 0x000000011040e34b TVMFuncCall + 75
[bt] (4) 4 libffi.dylib 0x00007fffa1a78f1c ffi_call_unix64 + 76
[bt] (5) 5 ??? 0x00007fff53a90110 0x0 + 140734596972816
ok
test_lang_group.test_compute_group ... ok
test_lang_group.test_nest_group ... ok
test_lang_reflection.test_const_saveload_json ... ok
test_lang_reflection.test_make_node ... ok
test_lang_reflection.test_make_sum ... ok
test_lang_schedule.test_schedule_create ... ok
test_lang_schedule.test_reorder ... ok
test_lang_schedule.test_split ... ok
test_lang_schedule.test_tile ... ok
test_lang_schedule.test_fuse ... ok
test_lang_schedule.test_vectorize ... ok
test_lang_schedule.test_pragma ... ok
test_lang_schedule.test_rfactor ... ok
test_lang_schedule.test_tensor_intrin ... ok
test_lang_tag.test_with ... ok
test_lang_tag.test_decorator ... ok
test_lang_tag.test_nested ... ok
test_lang_target.test_target_dispatch ... ok
test_lang_tensor.test_tensor ... ok
test_lang_tensor.test_conv1d ... ok
test_lang_tensor.test_tensor_slice ... ok
test_lang_tensor.test_tensor_reduce_multi_axis ... ok
test_lang_tensor.test_tensor_comm_reducer ... ok
test_lang_tensor.test_tensor_comm_reducer_overload ... ok
test_lang_tensor.test_tensor_reduce ... ok
test_lang_tensor.test_tensor_scan ... ok
test_lang_tensor.test_scan_multi_out ... ok
test_lang_tensor.test_extern ... ok
test_lang_tensor.test_extern_multi_out ... ok
test_lang_tensor.test_tuple_inputs ... ok
test_lang_tensor.test_tuple_with_different_deps ... [21:20:37] src/schedule/bound.cc:98: not in feed graph consumer = compute(B, 0x7fd624542b88)
ok
test_lang_tensor.test_tensor_inputs ... ok
test_module_load.test_dso_module_load ... Traceback (most recent call last):
File "/var/folders/f7/gvxxcz3576z0rslyb_j088th0000gn/T/tmpVx9AKV/runtime.py", line 7, in <module>
import tvm
File "/Users/weichen/Library/Python/2.7/lib/python/site-packages/tvm-0.1.0-py2.7-macosx-10.12-intel.egg/tvm/__init__.py", line 5, in <module>
from . import tensor
File "/Users/weichen/Library/Python/2.7/lib/python/site-packages/tvm-0.1.0-py2.7-macosx-10.12-intel.egg/tvm/tensor.py", line 4, in <module>
from ._ffi.node import NodeBase, NodeGeneric, register_node, convert_to_node
File "/Users/weichen/Library/Python/2.7/lib/python/site-packages/tvm-0.1.0-py2.7-macosx-10.12-intel.egg/tvm/_ffi/node.py", line 8, in <module>
from .node_generic import NodeGeneric, convert_to_node, const
File "/Users/weichen/Library/Python/2.7/lib/python/site-packages/tvm-0.1.0-py2.7-macosx-10.12-intel.egg/tvm/_ffi/node_generic.py", line 7, in <module>
from .base import string_types
File "/Users/weichen/Library/Python/2.7/lib/python/site-packages/tvm-0.1.0-py2.7-macosx-10.12-intel.egg/tvm/_ffi/base.py", line 43, in <module>
_LIB, _LIB_NAME = _load_lib()
File "/Users/weichen/Library/Python/2.7/lib/python/site-packages/tvm-0.1.0-py2.7-macosx-10.12-intel.egg/tvm/_ffi/base.py", line 34, in _load_lib
lib_path = libinfo.find_lib_path()
File "/Users/weichen/Library/Python/2.7/lib/python/site-packages/tvm-0.1.0-py2.7-macosx-10.12-intel.egg/tvm/_ffi/libinfo.py", line 85, in find_lib_path
str('\n'.join(lib_dll_path + runtime_dll_path)))
RuntimeError: Cannot find the files.
List of candidates:
/Users/weichen/torch/install/lib/libtvm.dylib
/Users/weichen/workspace/deep-learning/tvm/libtvm.dylib
/Users/weichen/Library/Python/2.7/lib/python/site-packages/tvm-0.1.0-py2.7-macosx-10.12-intel.egg/tvm/libtvm.dylib
/Users/weichen/Library/Python/2.7/lib/python/site-packages/build/libtvm.dylib
/Users/weichen/Library/Python/2.7/lib/python/site-packages/build/Release/libtvm.dylib
/Users/weichen/Library/Python/2.7/lib/python/site-packages/lib/libtvm.dylib
/Users/weichen/Library/Python/2.7/lib/python/libtvm.dylib
/Users/weichen/torch/install/lib/libtvm_runtime.dylib
/Users/weichen/workspace/deep-learning/tvm/libtvm_runtime.dylib
/Users/weichen/Library/Python/2.7/lib/python/site-packages/tvm-0.1.0-py2.7-macosx-10.12-intel.egg/tvm/libtvm_runtime.dylib
/Users/weichen/Library/Python/2.7/lib/python/site-packages/build/libtvm_runtime.dylib
/Users/weichen/Library/Python/2.7/lib/python/site-packages/build/Release/libtvm_runtime.dylib
/Users/weichen/Library/Python/2.7/lib/python/site-packages/lib/libtvm_runtime.dylib
/Users/weichen/Library/Python/2.7/lib/python/libtvm_runtime.dylib
ERROR
test_module_load.test_device_module_dump ... ok
Test combine multiple module into one shared lib. ... ok
test_pass_basic.test_simplify ... ok
test_pass_basic.test_verify_ssa ... ok
test_pass_basic.test_convert_ssa ... ok
test_pass_basic.test_expr_use_var ... ok
test_pass_combine_context_call.test_for ... ok
test_pass_equal.test_equal_expr ... ok
test_pass_equal.test_equal_compute ... ok
test_pass_inject_copy_intrin.test_copy2d ... ok
test_pass_inject_copy_intrin.test_copy_pad ... ok
test_pass_inject_copy_intrin.test_copy_pad_split ... ok
test_pass_inject_double_buffer.test_double_buffer ... ok
test_pass_inject_vthread.test_vthread ... ok
test_pass_inline.test_inline ... [21:20:38] /Users/weichen/workspace/deep-learning/tvm/dmlc-core/include/dmlc/logging.h:308: [21:20:38] include/tvm/./packed_func_ext.h:100: Check failed: NodeTypeChecker<TNodeRef>::Check(sptr.get()) Expected type Stmt but get ComputeOp
Stack trace returned 7 entries:
[bt] (0) 0 libtvm.dylib 0x00000001100c2898 _ZN4dmlc15LogMessageFatalD2Ev + 40
[bt] (1) 1 libtvm.dylib 0x00000001100c1879 _ZN4dmlc15LogMessageFatalD1Ev + 9
[bt] (2) 2 libtvm.dylib 0x00000001100c5ce5 _ZNK3tvm7runtime11TVMArgValue9AsNodeRefIN6Halide8Internal4StmtEEET_v + 789
[bt] (3) 3 libtvm.dylib 0x00000001100efdcc _ZNSt3__110__function6__funcIN3tvm2ir3$_8ENS_9allocatorIS4_EEFvNS2_7runtime7TVMArgsEPNS7_11TVMRetValueEEEclEOS8_OSA_ + 124
[bt] (4) 4 libtvm.dylib 0x000000011040e34b TVMFuncCall + 75
[bt] (5) 5 libffi.dylib 0x00007fffa1a78f1c ffi_call_unix64 + 76
[bt] (6) 6 ??? 0x00007fff53a90340 0x0 + 140734596973376
ok
test_pass_inline.test_inline2 ... ok
test_pass_ir_transform.test_ir_transform ... ok
test_pass_lift_attr_scope.test_coproc_lift ... ok
test_pass_loop_partition.test_basic ... ok
test_pass_loop_partition.test_multi_loop ... [21:20:38] src/pass/loop_partition.cc:342: Cannot prove: ((((0 + n) - 1) - ((((n - ((0 + m) - 1)) - (i*m)) - 1) + 1)) >= 0), when generating the post doubt loop
ok
test_pass_loop_partition.test_multi_if ... [21:20:38] src/pass/loop_partition.cc:342: Cannot prove: ((((0 + n) - 1) - (min(((n - (i*m)) - 1), (((n - ((0 + m) - 1)) - (i*m)) - 1)) + 1)) >= 0), when generating the post doubt loop
ok
test_pass_loop_partition.test_thread_axis ... ok
test_pass_loop_partition.test_vectorize ... [21:20:38] src/pass/vectorize_loop.cc:303: Detect vector condition in Vectorized Loop, scalarizing...
ok
test_pass_loop_partition.test_select ... ok
test_pass_loop_partition.test_thread_axis2 ... [21:20:38] src/pass/loop_partition.cc:342: Cannot prove: ((((0 + m) - 1) - (((((4096 - (blockIdx.x*32)) - (32 - 1)) - (0*m)) - 1) + 1)) >= 0), when generating the post doubt loop
ok
test_pass_loop_partition.test_everything_during_deduction ... [21:20:38] src/arithmetic/int_set.cc:282: Return Everything in CombineInterval Div
ok
Not yet working, mock design ... ok
test_pass_remove_no_op.test_remove_no_op ... ok
test_pass_rewrite_unsafe_select.test_rewrite_select ... ok
Not yet working, mock design ... ok
test_pass_simplify.test_basic ... ok
test_pass_simplify.test_canonical ... ok
test_pass_split_pipeline.test_basic_pipeline ... ok
test_pass_split_pipeline.test_conv1d ... ok
test_pass_storage_flatten.test_flatten2 ... ok
test_pass_storage_flatten.test_flatten_prefetch ... ok
test_pass_storage_flatten.test_flatten_storage_align ... ok
test_pass_storage_rewrite.test_storage_share ... ok
test_pass_storage_rewrite.test_storage_combine ... ok
test_pass_storage_rewrite.test_storage_share_gpu ... ok
test_pass_storage_rewrite.test_parallel_alloc ... ok
test_pass_storage_sync.test_storage_sync ... ok
test_pass_storage_sync.test_coproc_sync ... ok
test_pass_unroll.test_unroll_loop ... ok
test_pass_vectorize.test_vectorize_loop ... ok
test_pass_vectorize.test_vectorize_vector ... ok
test_pass_vectorize.test_vectorize_with_if ... [21:20:38] src/pass/vectorize_loop.cc:303: Detect vector condition in Vectorized Loop, scalarizing...
ok
test_pass_virtual_thread.test_virtual_thread ... ok
test_runtime_extension.test_dltensor_compatible ... ok
test_runtime_graph.test_graph_simple ... [21:20:38] src/runtime/rpc/rpc_server_env.cc:23: Upload /var/folders/f7/gvxxcz3576z0rslyb_j088th0000gn/T/tmpSjJzQf/dev_lib.so... nbytes=8444
[21:20:38] src/runtime/rpc/rpc_session.cc:751: Shutdown...
ok
[21:20:38] src/codegen/verilog/vpi_device_api.cc:31: Initialize VPI simulated ram 32MB ...
test_runtime_ndarray.test_nd_create ... ok
test_runtime_packed_func.test_get_global ... ok
test_runtime_packed_func.test_get_callback_with_node ... ok
test_runtime_packed_func.test_return_func ... ok
test_runtime_packed_func.test_convert ... ok
test_runtime_packed_func.test_byte_array ... ok
test_runtime_rpc.test_rpc_simple ... [21:20:38] src/runtime/rpc/rpc_session.cc:751: Shutdown...
ok
test_runtime_rpc.test_rpc_array ... [21:20:38] src/runtime/rpc/rpc_session.cc:751: Shutdown...
ok
test_runtime_rpc.test_rpc_file_exchange ... [21:20:38] src/runtime/rpc/rpc_server_env.cc:23: Upload /var/folders/f7/gvxxcz3576z0rslyb_j088th0000gn/T/tmpXvmvGY/dat.bin... nbytes=80
[21:20:38] src/runtime/rpc/rpc_server_env.cc:35: Download /var/folders/f7/gvxxcz3576z0rslyb_j088th0000gn/T/tmpXvmvGY/dat.bin... nbytes=80
[21:20:38] src/runtime/rpc/rpc_session.cc:751: Shutdown...
ok
test_runtime_rpc.test_rpc_remote_module ... [21:20:38] src/runtime/rpc/rpc_server_env.cc:23: Upload /var/folders/f7/gvxxcz3576z0rslyb_j088th0000gn/T/tmp7V1M__/dev_lib.so... nbytes=8444
[21:20:38] src/runtime/rpc/rpc_session.cc:751: Shutdown...
ok
test_runtime_rpc.test_rpc_return_func ... [21:20:38] src/runtime/rpc/rpc_session.cc:751: Shutdown...
ok
test_schedule_bound_inference.test_bound1 ... ok
test_schedule_bound_inference.test_bound2 ... ok
test_schedule_bound_inference.test_bound3 ... ok
test_schedule_bound_inference.test_bound_scan ... ok
test_schedule_bound_inference.test_bound_conv1d ... ok
test_schedule_bound_inference.test_bound_blur ... ok
test_schedule_bound_inference.test_bound_rfactor ... ok
test_schedule_bound_inference.test_bound_group_schedule ... ok
test_schedule_bound_inference.test_bound_nest_group ... ok
test_schedule_bound_inference.test_bound_nest_thread ... ok
test_schedule_bound_inference.test_gemm_bound ... ok
test_schedule_graph.test_scan ... ok
test_schedule_graph.test_scan_fix_point ... ok
test_schedule_graph.test_create_read_graph ... ok
test_schedule_lstm.test_lstm_cell_inline ... ok
test_schedule_schedule_ops.test_schedule0 ... ok
test_schedule_schedule_ops.test_schedule1 ... ok
test_schedule_schedule_ops.test_schedule2 ... ok
test_schedule_schedule_ops.test_schedule_scan ... ok
test_schedule_schedule_ops.test_inline_multi_reduce ... ok
test_schedule_schedule_ops.test_auto_inline ... ok
test_schedule_schedule_ops.test_schedule_const_bound ... ok
test_schedule_schedule_ops.test_inline_mixed ... ok
test_schedule_schedule_ops.test_scan_inline1 ... [21:20:38] src/pass/loop_partition.cc:342: Cannot prove: ((((0 + max(m, 1)) - 1) - ((m - 1) + 1)) >= 0), when generating the post doubt loop
ok
test_schedule_schedule_ops.test_scan_inline2 ... [21:20:39] src/pass/loop_partition.cc:342: Cannot prove: ((((0 + max(m, 1)) - 1) - ((m - 1) + 1)) >= 0), when generating the post doubt loop
ok
test_schedule_schedule_ops.test_schedule_cache ... ok
test_schedule_schedule_ops.test_schedule_cache_relayout1 ... ok
test_schedule_schedule_ops.test_schedule_cache_relayout2 ... ok
test_schedule_schedule_ops.test_schedule_cache_relayout3 ... ok
test_schedule_tensorize.test_tensorize_vadd ... ok
test_schedule_tensorize.test_tensorize_matmul ... ok
======================================================================
ERROR: test_module_load.test_dso_module_load
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/numpy/1.9.2_1/libexec/nose/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/weichen/workspace/deep-learning/tvm/tests/python/unittest/test_module_load.py", line 70, in test_dso_module_load
shell=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command 'python /var/folders/f7/gvxxcz3576z0rslyb_j088th0000gn/T/tmpVx9AKV/runtime.py /var/folders/f7/gvxxcz3576z0rslyb_j088th0000gn/T/tmpVx9AKV/test.so int64' returned non-zero exit status 1
----------------------------------------------------------------------
Ran 181 tests in 2.772s
FAILED (errors=1)
Metadata
Assignees
Labels
No labels
Activity