BentoML icon indicating copy to clipboard operation
BentoML copied to clipboard

chore: Set `OMP_NUM_THREADS` and related env vars prior to importing `numpy`

Open ssheng opened this issue 1 year ago • 0 comments

OMP_NUM_THREADS must be set before numpy is imported for it to work, our current implementation doesn’t guarantee that.

ssheng avatar Jul 22 '22 08:07 ssheng