Skip to content

Commit

Permalink
print stack traces for all threads on SIGUSR1
Browse files Browse the repository at this point in the history
  • Loading branch information
hartmark committed Sep 16, 2024
1 parent 56e8f5e commit 4174ddb
Showing 1 changed file 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 @@ -65,6 +65,9 @@ def execute_script(script_path):
import logging
import utils.extra_config

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

0 comments on commit 4174ddb

Please sign in to comment.