Skip to content

Commit

Permalink
[TVMC] rename composite target "acl" to "compute-library" (#7508)
Browse files Browse the repository at this point in the history
* Renames the "acl" composite target to point to the specific
   library it represents
  • Loading branch information
leandron authored Feb 24, 2021
1 parent 086dbfe commit 9c5333e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/tvm/driver/tvmc/composite_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# to be used in the PassContext (if any), and a function
# responsible for partitioning to that target.
REGISTERED_CODEGEN = {
"acl": {
"compute-library": {
"config_key": None,
"pass_pipeline": partition_for_arm_compute_lib,
},
Expand Down
4 changes: 2 additions & 2 deletions tests/python/driver/tvmc/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ def test_parse_single_target_with_opts():


def test_parse_multiple_target():
targets = tvmc.common.parse_target("acl, llvm -device=arm_cpu --system-lib")
targets = tvmc.common.parse_target("compute-library, llvm -device=arm_cpu --system-lib")

assert len(targets) == 2
assert "acl" == targets[0]["name"]
assert "compute-library" == targets[0]["name"]
assert "llvm" == targets[1]["name"]


Expand Down
2 changes: 1 addition & 1 deletion tests/python/driver/tvmc/test_composite_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_get_codegen_names():


def test_valid_codegen():
codegen = tvmc.composite_target.get_codegen_by_target("acl")
codegen = tvmc.composite_target.get_codegen_by_target("compute-library")

assert codegen is not None
assert codegen["pass_pipeline"] is not None
Expand Down

0 comments on commit 9c5333e

Please sign in to comment.