1.报错场景
在利用多GPU训练yolov5,yolov8,yolov11时均遇到如下错误,而利用单卡时不会报错
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp-a34b3233.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
完整报错提示如下:
Transferred 643/649 items from pretrained weights
DDP: debug command /home/ssk/anaconda3/envs/train/bin/python -m torch.distributed.run --nproc_per_node 2 --master_port 35383 /home/ssk/.config/Ultralytics/DDP/_temp_4z6zn3tf139922484374176.py
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp-a34b3233.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
Traceback (most recent call last):
File "/home/ssk/anaconda3/envs/train/bin