Print detection status (for debugging).
(self)
| 907 | } |
| 908 | |
| 909 | def print_status(self): |
| 910 | """Print detection status (for debugging).""" |
| 911 | tools = self.get_all_tools() |
| 912 | |
| 913 | print(f"\n{'='*70}") |
| 914 | print(f" CUDA Toolchain Detection - {self.platform}") |
| 915 | print(f"{'='*70}\n") |
| 916 | |
| 917 | for name, info in tools.items(): |
| 918 | # Use ASCII-safe characters for Windows compatibility |
| 919 | status = '[OK]' if info.available else '[NO]' |
| 920 | color = '\033[32m' if info.available else '\033[31m' |
| 921 | reset = '\033[0m' |
| 922 | |
| 923 | print(f"{color}{status}{reset} {name.upper():<15}", end='') |
| 924 | |
| 925 | if info.available: |
| 926 | print(f" {info.version or 'Unknown version'}") |
| 927 | print(f"{'':20} {info.path}") |
| 928 | else: |
| 929 | print(f" Not found") |
| 930 | if info.error: |
| 931 | print(f"{'':20} {info.error}") |
| 932 | |
| 933 | print() |
| 934 | |
| 935 | |
| 936 | # ============================================================================ |
no test coverage detected