I started getting the following warning repeatedly when running my PyTorch Lightning deep learning scripts, at execution start and then all through the training:
"OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead."
I get them when executing the main.py script; my scripts are publicly available here.
Symptoms:
- I don’t think it has anything to do with PyTorch Lightning, maybe even PyTorch.
- It appeared overnight, so I don’t know what could cause it.
- It runs fine without those warnings on my PC.
- I get the warnings when I run from my M1 Mac.
- I use VSCode for both, each up to date.
- I use separate miniconda environments.
2
Answers
Thanks for taking the time to reply!
I managed to sort myself out in the end. I spotted the numba package in my miniconda env, which is a Python compiler and that seemed to be the root of the problem. It was version 0.55.2 but the last version to date is 0.56.0. Trying to upgrade it via conda or pip didn't work for some reason (the 0.55.2 version couldn't be replaced). I recreated my env step by step, and noticed this package comes with torch-audiomentations, a package for audio data augmentation for deep learning, under torch, that I use. Re-installing it had numba version 0.56.0 installed properly, and the warnings disappeared.
That routine is deprecated, meaning that newer standards want you to use another routine. If you can not edit the code, just ignore. For now it’s only an info message. You got that message when you switched to a newer OS / compiler version / OpenMP version.