| 537 | |
| 538 | |
| 539 | def _tvm_test_targets(): |
| 540 | target_str = os.environ.get("TVM_TEST_TARGETS", "").strip() |
| 541 | if target_str: |
| 542 | # De-duplicate while preserving order. dict items can't be hashed |
| 543 | # directly, so use their str() form as the dedup key. |
| 544 | targets = [] |
| 545 | seen = set() |
| 546 | for t in target_str.split(";"): |
| 547 | t = t.strip() |
| 548 | if not t: |
| 549 | continue |
| 550 | parsed = _parse_target_entry(t) |
| 551 | key = str(parsed) |
| 552 | if key in seen: |
| 553 | continue |
| 554 | seen.add(key) |
| 555 | targets.append(parsed) |
| 556 | return targets |
| 557 | |
| 558 | return DEFAULT_TEST_TARGETS |
| 559 | |
| 560 | |
| 561 | def _compose(args, decs): |