Example #1
0
def test_invalid_block_function():
    check_error(invalid_block_function, 4)
Example #2
0
def test_implicit_root_has_attrs():
    check_error(implicit_root_has_read, 2)
    check_error(implicit_root_has_write, 2)
    check_error(implicit_root_has_attrs, 2)
    check_error(implicit_root_has_predicate, 2)
    check_error(implicit_root_has_axes, 2)
Example #3
0
def test_load_var():
    check_error(load_var_multiple, 3)
Example #4
0
def test_undefined_buffer():
    check_error(undefined_buffer, 5)
Example #5
0
def test_high_dim_store():
    check_error(high_dim_store, 5)
Example #6
0
def test_convert_slice_to_bufferload():
    check_error(convert_slice_to_bufferload, 6)
Example #7
0
def test_error_index_with_stop_slice():
    check_error(error_index_with_stop, 6)
    check_error(error_bufferslice_index_with_stop, 8)
Example #8
0
def test_error_remap_args():
    check_error(error_remap_type, 4)
    check_error(error_remap_value, 4)
Example #9
0
def test_invalid_block_axes():
    check_error(invalid_block_axes, 5)
Example #10
0
def test_allocate_with_buffers():
    check_error(allocate_with_buffers, 2)
Example #11
0
def test_inconsistent_binding():
    check_error(inconsistent_binding_value, 3)
    check_error(inconsistent_binding_type, 3)
Example #12
0
def test_no_body():
    check_error(no_body, 3)
Example #13
0
def test_tir_assert():
    check_error(tir_assert, 2)
Example #14
0
def test_return_not_allowed():
    check_error(return_not_allowed, 2)
Example #15
0
def test_duplicate_block_signature():
    check_error(duplicate_reads, 7)
    check_error(duplicate_writes, 7)
    check_error(duplicate_predicate, 6)
    check_error(duplicate_annotations, 6)
    check_error(duplicate_init, 7)
    check_error(duplicate_axes, 5)
Example #16
0
def test_duplicate_block_axes():
    check_error(duplicate_block_axes, 5)
    check_error(duplicate_block_axes_remap, 4)
Example #17
0
def test_opaque_access_during_complete():
    check_error(opaque_access_during_complete, 1)
Example #18
0
def test_miss_block_bind():
    check_error(miss_block_bind_value, 4)
Example #19
0
def test_error_index_type():
    check_error(error_index_type, 6)
    check_error(error_bufferslice_index_type, 8)
Example #20
0
def test_invalid_loop_var():
    check_error(invalid_loop_var, 2)
Example #21
0
def test_tvm_exception_catch():
    # test catching c++ side exception
    check_error(special_stmt_except, 2)
    check_error(scope_handler_except, 2)
    check_error(intrin_except_unassign, 3)
    check_error(intrin_except_assign, 3)
Example #22
0
def test_inconsistent_grid():
    check_error(inconsistent_grid, 2)
Example #23
0
def test_match_buffer_shape_mismatch():
    check_error(buffer_shape_mismatch, 7)
Example #24
0
def test_invalid_match_buffer_region():
    check_error(invalid_match_buffer_region, 5)
Example #25
0
def test_block_has_option_vars():
    check_error(block_has_option_vars, 2)
Example #26
0
def test_duplicate_buffer():
    check_error(duplicate_buffer, 6)
Example #27
0
def test_unsupported_stmt():
    check_error(unsupported_stmt, 3)
Example #28
0
def test_buffer_bind():
    check_error(buffer_bind_missing_args, 2)
Example #29
0
def test_store_var():
    check_error(store_var_multiple, 3)
Example #30
0
def test_invalid_for_function():
    check_error(invalid_for_function, 4)