File size: 550 Bytes
9679fcd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/bin/bash
# GraphWiz Build Runner - Sets threading environment for macOS compatibility
# Set threading limits to avoid conflicts on macOS
export OMP_NUM_THREADS=8
export MKL_NUM_THREADS=8
export OPENBLAS_NUM_THREADS=8
export VECLIB_MAXIMUM_THREADS=8
export NUMEXPR_NUM_THREADS=8
# Activate virtual environment
if [ -d ".venv" ]; then
source .venv/bin/activate
elif [ -d "venv" ]; then
source venv/bin/activate
else
echo "❌ No virtual environment found (.venv or venv)"
exit 1
fi
# Run the build script
python build_graphwiz.py
|