这是在PCA下的基于IPP库示例代码例子,在网上下了IPP的库之后,设置相关参数就可以编译该代码.

源代码在线查看: build64.sh

软件大小: 2828 K
上传用户: wldxmy
关键词: IPP PCA 代码 参数
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/bin/sh				#				# Usage: build.sh {g++}				#								MAKE="make -f Makefile.lnx"								ARCH=ia64				ARCHL=itanium								[ -f Makefile.lnx ] || exit 0								[ -f "$IPPENV" ] || IPPENV=../../ippenv.sh				[ -f "$IPPENV" ] || IPPENV=${IPPROOT}/tools/env/ippvars${ARCH#ia}.sh				[ -f "$IPPENV" ] || IPPENV=/opt/intel/ipp/5.0/${ARCHL:-$ARCH}/tools/env/ippvars${ARCH#ia}.sh				if [ ! -x "${IPPENV}" ]; then				        echo				        echo "*************************************************************************"				        echo " Intel(R) IPP is not found!"				        echo " Please install Intel(R) IPP or set IPPROOT environment variable correctly."				        echo "*************************************************************************"				        exit 255				fi								ARG=$1								CC=`\which gcc`				CXX=`\which g++`								if [ "${ARG}" = "" ]; then								        CCFIND=/opt/intel/compiler80/ia32/bin/iccvars.sh				        [ -x "${CCFIND}" ] && CCENV=${CCFIND}								        CCFIND=/opt/intel_cc_80/bin/iccvars.sh				        [ -x "${CCFIND}" ] && CCENV=${CCFIND}									CCFIND=/opt/intel/cc/9.0/bin/iccvars.sh				        [ -x "${CCFIND}" ] && CCENV=${CCFIND}									[ -x "${CCENV_EXT}" ] && CCENV=$CCENV_EXT								        if [ "${CCENV}" ]; then				                . ${CCENV}				                CC=`\which icc`				                CXX=`\which icpc`				        fi								fi								DIR_NAME=`expr $PWD : '.*/\([^/]\+\)$'`				LOG_DIR=./../../_log/linux${ARCH#ia}_${CC##*/}				ROOT_DIR=./../../_bin/linux${ARCH#ia}_${CC##*/}				LOG_FILE=${LOG_DIR}/${DIR_NAME}.log				[ -d ${LOG_DIR} ] || mkdir -p ${LOG_DIR}								. ${IPPENV}								rtn=FAILED				${MAKE} ARCH=${ARCH} ROOT_BIN_DIR=${ROOT_DIR} clean                > ${LOG_FILE} 2>&1				${MAKE} CXX=${CXX} CC=${CC} ARCH=${ARCH} ROOT_BIN_DIR=${ROOT_DIR} >> ${LOG_FILE} 2>&1 && rtn=PASSED								comp_name=`expr $PWD : ".*/\([^/]\+\)$"`				printf "******* %-25s %s\n" $comp_name $rtn								if [ "$rtn" == "PASSED" ]; then				        echo `pwd` >> $LOG_DIR/_compilation.success				else				        echo `pwd` >> $LOG_DIR/_compilation.failed				fi							

相关资源