upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/audit_shader4_regs.py4
-rw-r--r--scripts/bench_wave64.py4
-rw-r--r--scripts/run_gpu_tests.py4
3 files changed, 12 insertions, 0 deletions
diff --git a/scripts/audit_shader4_regs.py b/scripts/audit_shader4_regs.py
index 6a6c449de..b87b77631 100644
--- a/scripts/audit_shader4_regs.py
+++ b/scripts/audit_shader4_regs.py
@@ -382,4 +382,8 @@ def main(argv=None):
382 382
383 383
384if __name__ == "__main__": 384if __name__ == "__main__":
385 try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
386 sys.stdout.reconfigure(errors="replace")
387 except (AttributeError, ValueError, OSError):
388 pass
385 sys.exit(main()) 389 sys.exit(main())
diff --git a/scripts/bench_wave64.py b/scripts/bench_wave64.py
index 14b397f97..57b0c31ef 100644
--- a/scripts/bench_wave64.py
+++ b/scripts/bench_wave64.py
@@ -116,4 +116,8 @@ def main():
116 116
117 117
118if __name__ == "__main__": 118if __name__ == "__main__":
119 try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
120 sys.stdout.reconfigure(errors="replace")
121 except (AttributeError, ValueError, OSError):
122 pass
119 sys.exit(main()) 123 sys.exit(main())
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 698ec36d0..5eb7b4161 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -1281,4 +1281,8 @@ def run_suite(a, work: str) -> int:
1281 1281
1282 1282
1283if __name__ == "__main__": 1283if __name__ == "__main__":
1284 try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode
1285 sys.stdout.reconfigure(errors="replace")
1286 except (AttributeError, ValueError, OSError):
1287 pass
1284 sys.exit(main()) 1288 sys.exit(main())