(self)
| 572 | return device_version |
| 573 | |
| 574 | def get_serving_bin_name(self): |
| 575 | if device_type == "0": |
| 576 | device_version = self.get_device_version() |
| 577 | elif device_type == "1": |
| 578 | if version_suffix == "101" or version_suffix == "102" or version_suffix == "1028" or version_suffix == "112": |
| 579 | device_version = "gpu-" + version_suffix |
| 580 | else: |
| 581 | device_version = "gpu-cuda" + version_suffix |
| 582 | elif device_type == "2": |
| 583 | device_version = "xpu-" + platform.machine() |
| 584 | elif device_type == "3": |
| 585 | device_version = "rocm-" + platform.machine() |
| 586 | elif device_type == "4": |
| 587 | if self.use_lite: |
| 588 | device_version = "ascendcl-lite-" + platform.machine() |
| 589 | else: |
| 590 | device_version = "ascendcl-" + platform.machine() |
| 591 | return device_version |
| 592 | |
| 593 | def download_bin(self): |
| 594 | os.chdir(self.module_path) |
no test coverage detected