This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ROCm-Research-Archive/_TestScripts/Scripts and Tests/check_threads_mgmt.sh
T
2026-08-20 00:45:43 +02:00

11 lines
582 B
Bash

#!/bin/bash
# Check threading settings + model caching behavior
echo "=== THREADS ==="
grep -n -i -E "thread|num_worker|dataloader|OMP|MKL|parallel" /home/fabian/ComfyUI/comfy/model_management.py | head -20
echo "=== torch threads ==="
grep -rn -i "set_num_threads\|num_threads\|OMP_NUM\|MKL_NUM\|torch.get_num_threads\|interop" /home/fabian/ComfyUI/comfy/ --include="*.py" | head -15
echo "=== free_memory function ==="
sed -n '636,680p' /home/fabian/ComfyUI/comfy/model_management.py
echo "=== load_models_gpu ==="
sed -n '680,780p' /home/fabian/ComfyUI/comfy/model_management.py