- 报错:
- OSError: /usr/local/python3.7.5/lib/python3.7/site-packages/torch/lib/libgomp-d22c30c5.so.1: cannot allocate memory in static TLS bloc
- 参考:
- [报错记录]cannot allocate memory in static TLS block-CSDN博客中,提到了, 要
-
vim ~/.bashrc
-
export LD_PRELOAD=/lib/aarch64-linux-gnu/libGLdispatch.so.0
- 但是我会报错: ERROR: ld.so: object '/usr/local/lib/python3.6/dist-packages/scikit_learn.libs/libgomp-d22c30c5.so.1.0.0' from LD_PRELOAD cannot be preloaded: ignored.
-
- 又参考: libgomp-d22c30c5.so.1.0.0:cannot allocate memory in static TLS block问题_libgomp-d22c30c5.so.1.0.0: cannot allocate memory -CSDN博客
- 发现要把LD_PRELOAD的内容换成自己的报错的信息
- 故:
export LD_PRELOAD=/usr/local/python3.7.5/lib/python3.7/site-packages/torch/lib/libgomp-d22c30c5.so.1
- [报错记录]cannot allocate memory in static TLS block-CSDN博客中,提到了, 要
03-22
1956
03-06
2618
01-05
1万+
06-01
3770