Merge pull request #1187 from mine260309/develop

build: fix libxlmass errors building on Power CPU
This commit is contained in:
Zhang Xianyi 2017-05-24 15:54:58 +08:00 committed by GitHub
commit c8322c65e4
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ endif
ifeq ($(USE_MASS), 1) ifeq ($(USE_MASS), 1)
# Path to MASS libs, change it if the libs are installed at any other location # Path to MASS libs, change it if the libs are installed at any other location
MASSPATH = /opt/ibm/xlmass/8.1.3/lib MASSPATH = /opt/ibm/xlmass/8.1.5/lib
COMMON_OPT += -mveclibabi=mass -ftree-vectorize -funsafe-math-optimizations -DUSE_MASS COMMON_OPT += -mveclibabi=mass -ftree-vectorize -funsafe-math-optimizations -DUSE_MASS
EXTRALIB += -L$(MASSPATH) -lmass -lmassvp8 -lmass_simdp8 EXTRALIB += -L$(MASSPATH) -lmass -lmassvp8 -lmass_simdp8
endif endif

View File

@ -54,7 +54,7 @@ The library can be installed as below -
wget -q http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/ubuntu/public.gpg -O- | sudo apt-key add -</br> wget -q http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/ubuntu/public.gpg -O- | sudo apt-key add -</br>
echo "deb http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/ubuntu/ trusty main" | sudo tee /etc/apt/sources.list.d/ibm-xl-compiler-eval.list</br> echo "deb http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/ubuntu/ trusty main" | sudo tee /etc/apt/sources.list.d/ibm-xl-compiler-eval.list</br>
sudo apt-get update</br> sudo apt-get update</br>
sudo apt-get install libxlmass-devel.8.1.3</br> sudo apt-get install libxlmass-devel.8.1.5</br>
* On RHEL/CentOS: * On RHEL/CentOS:
@ -62,7 +62,7 @@ The library can be installed as below -
sudo rpm --import repomd.xml.key</br> sudo rpm --import repomd.xml.key</br>
wget http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/rhel7/ibm-xl-compiler-eval.repo</br> wget http://public.dhe.ibm.com/software/server/POWER/Linux/xl-compiler/eval/ppc64le/rhel7/ibm-xl-compiler-eval.repo</br>
sudo cp ibm-xl-compiler-eval.repo /etc/yum.repos.d/</br> sudo cp ibm-xl-compiler-eval.repo /etc/yum.repos.d/</br>
sudo yum install libxlmass-devel.8.1.3</br> sudo yum install libxlmass-devel.8.1.5</br>
After installing MASS library, compile openblas with USE_MASS=1. After installing MASS library, compile openblas with USE_MASS=1.