Skip to content

Commit

Permalink
Watch for SIGUSR1 and print stack traces for all threads if signal re…
Browse files Browse the repository at this point in the history
…ceived
  • Loading branch information
hartmark committed Aug 11, 2024
1 parent 75b9b55 commit 6f5b3f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def execute_script(script_path):

import logging

import faulthandler, signal
faulthandler.register(signal.SIGUSR1)

if os.name == "nt":
logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage())

Expand Down
Empty file.

0 comments on commit 6f5b3f1

Please sign in to comment.