Sets package-wide options controlling whether optimize_alpha() uses
GPU-accelerated optimization (PB-SGD) or CPU-only methods.
Details
When GPU is enabled, optimize_alpha() uses torch-based PB-SGD
(per-bracket stochastic gradient descent). This requires the torch
package to be installed with a working GPU backend (CUDA for NVIDIA,
MPS for Apple Silicon).
The per-call use_gpu parameter in optimize_alpha() always overrides
the global setting.
See also
check_torch() to diagnose GPU setup,
setup_torch() to install torch with GPU support.