Open YiningWang2 opened 2 years ago
已经试过类似issue的解决方案,import numpy正常,求助大家~
同 paddle:2.4.0 System:Ubuntu 20.04.1 LTS cuda version:CUDA11.7 python:3.7 显卡:4070ti
import paddle后直接Illegal instruction (core dumped)
Please support error: Illegal instruction (core dumped) when install package paddle (pip install paddlepaddle)
I think this solution might work,
Usually paddle default library is supported on AVX machine only. So, please check whether your machine has AVX extension or not.
You can check whether your machine/server is AVX machine or not by using command
cat /proc/cpuinfo | grep -i avx
and if it gives some output then your machine has AVX otherwise and its not issue of paddle library.
Otherwise change NOAVX machine to AVX machine or download NOAVX version of paddle library from this link:
Could you please share the link ? I use the link follow this page: https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/pip/linux-pip.html
cpu、mkl 版本 noavx 机器安装: python3 -m pip download paddlepaddle==2.4.2 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/noavx/stable.html --no-index --no-deps
cpu、openblas 版本 noavx 机器安装: python3 -m pip download paddlepaddle==2.4.2 -f https://www.paddlepaddle.org.cn/whl/linux/openblas/noavx/stable.html --no-index --no-deps
gpu 版本 cuda10.2 noavx 机器安装: python3 -m pip download paddlepaddle-gpu==2.4.2 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/noavx/stable.html --no-index --no-deps
Unfortunately, I got this error:(
ERROR: Could not find a version that satisfies the requirement paddlepaddle==2.4.2 (from versions: none) ERROR: No matching distribution found for paddlepaddle==2.4.2
paddle:2.6.0 System:Ubuntu 20.04.1 LTS 子系统 cuda version:CUDA12.4 python:3.12.1 显卡:2080ti cpu: Intel(R) Xeon(R) CPU E5-2680 v2
系统信息:
(.conda) (base) root@k_win:~/project# uname -m && cat /etc/*release
x86_64
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
(.conda) (base) root@k_win:~/project#
安装命令:
python3 -m pip install paddlepaddle-gpu==2.6.0.post120 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
安装完成后import 报错:
(.conda) (base) root@k_win:~/project# python
Python 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 15:51:05) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
Illegal instruction
(.conda) (base) root@k_win:~/project#
检查 CPU 是否支持 AVX 指令集:
(.conda) (base) root@k_win:~/project# grep avx /proc/cpuinfo
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 popcnt aes xsave avx f16c rdrand hypervisor lahf_lm pti ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid ept_ad fsgsbase smep erms xsaveopt flush_l1d arch_capabilities
......
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq vmx ssse3 cx16 pcid sse4_1 sse4_2 popcnt aes xsave avx f16c rdrand hypervisor lahf_lm pti ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid ept_ad fsgsbase smep erms xsaveopt flush_l1d arch_capabilities
(.conda) (base) root@k_win:~/project#
bug描述 Describe the Bug
安装paddlepaddle-gpu 0.0.0 后
import paddle
报错:Detailed info: System:Ubuntu 20.04.1 LTS cuda version:CUDA11.0 python:3.7 DGX_PLATFORM:DGX Server for DGX A100 系统支持avx、avx2指令集
paddlepaddle安装指令:
python -m pip install paddlepaddle-gpu==0.0.0.post110 -f https://www.paddlepaddle.org.cn/whl/linux/gpu/develop.html
其他补充信息 Additional Supplementary Information
No response