# Restore original thread count after tests if (exists(".ggmlr_old_threads")) { ggml_set_n_threads(.ggmlr_old_threads) } ggml_set_n_threads(.ggmlr_old_threads) if (requireNamespace("RhpcBLASctl", quietly = TRUE)) { RhpcBLASctl::blas_set_num_threads(1L) RhpcBLASctl::omp_set_num_threads(1L) }