Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/mkl/
Date: Sat, 29 Sep 2012 23:24:06
Message-Id: 1348960894.66c3fb0e158b26528698505e080e9b0bb11e6924.bicatali@gentoo
1 commit: 66c3fb0e158b26528698505e080e9b0bb11e6924
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 29 23:21:34 2012 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 29 23:21:34 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=66c3fb0e
7
8 sci-libs/mkl: Version bump
9
10 (Portage version: 2.2.0_alpha133/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 sci-libs/mkl/ChangeLog | 7 +-
14 sci-libs/mkl/mkl-10.3.7.256.ebuild | 136 --------------------
15 ...mkl-10.3.4.191.ebuild => mkl-11.0.0.079.ebuild} | 9 +-
16 3 files changed, 11 insertions(+), 141 deletions(-)
17
18 diff --git a/sci-libs/mkl/ChangeLog b/sci-libs/mkl/ChangeLog
19 index 487c897..f298a3f 100644
20 --- a/sci-libs/mkl/ChangeLog
21 +++ b/sci-libs/mkl/ChangeLog
22 @@ -2,6 +2,12 @@
23 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
24 # $Header: $
25
26 +*mkl-11.0.0.079 (29 Sep 2012)
27 +
28 + 29 Sep 2012; Sébastien Fabbro <bicatali@g.o> +mkl-11.0.0.079.ebuild,
29 + -mkl-10.3.4.191.ebuild, -mkl-10.3.7.256.ebuild:
30 + sci-libs/mkl: Version bump
31 +
32 *mkl-10.3.7.256 (16 Feb 2012)
33
34 16 Feb 2012; Sébastien Fabbro <bicatali@g.o> +mkl-10.3.7.256.ebuild:
35 @@ -24,4 +30,3 @@
36
37 03 Dec 2010; Sébastien Fabbro <bicatali@g.o> mkl-10.3.0.084.ebuild:
38 Version bump. refactored ebuilds
39 -
40
41 diff --git a/sci-libs/mkl/mkl-10.3.7.256.ebuild b/sci-libs/mkl/mkl-10.3.7.256.ebuild
42 deleted file mode 100644
43 index 2e5cb62..0000000
44 --- a/sci-libs/mkl/mkl-10.3.7.256.ebuild
45 +++ /dev/null
46 @@ -1,136 +0,0 @@
47 -# Copyright 1999-2012 Gentoo Foundation
48 -# Distributed under the terms of the GNU General Public License v2
49 -# $Header: $
50 -
51 -EAPI=4
52 -INTEL_DPN=parallel_studio_xe
53 -INTEL_DID=2405
54 -INTEL_DPV=2011_sp1_update1
55 -INTEL_SUBDIR=composerxe
56 -
57 -inherit intel-sdp multilib alternatives-2
58 -
59 -DESCRIPTION="Intel Math Kernel Library: linear algebra, fft, math functions"
60 -HOMEPAGE="http://software.intel.com/en-us/articles/intel-mkl/"
61 -
62 -IUSE=""
63 -
64 -DEPEND=""
65 -RDEPEND=">=dev-libs/intel-common-12"
66 -
67 -QA_PREBUILT="
68 - ${INTEL_SDP_DIR}/mkl/lib/*/*
69 - ${INTEL_SDP_DIR}/mkl/examples/lapack/lib/*
70 - ${INTEL_SDP_DIR}/mkl/tests/cblas/source/*
71 - ${INTEL_SDP_DIR}/mkl/benchmarks/linpack/*
72 - ${INTEL_SDP_DIR}/mkl/benchmarks/mp_linpack/*/*/*"
73 -
74 -CHECKREQS_DISK_BUILD=1536M
75 -
76 -INTEL_BIN_RPMS="mkl-sp1 mkl-sp1-devel"
77 -INTEL_DAT_RPMS="mkl-sp1-common"
78 -
79 -src_prepare() {
80 - chmod u+w -R opt
81 -}
82 -
83 -mkl_add_prof() {
84 - local pcname=${1} libs cflags x
85 - shift
86 - [[ ${pcname} = *int64* ]] && cflags=-DMKL_ILP64
87 - cat <<-EOF > ${pcname}.pc
88 - prefix=${INTEL_SDP_EDIR}/mkl
89 - libdir=\${prefix}/lib/${IARCH}
90 - includedir=\${prefix}/include
91 - Name: ${pcname}
92 - Description: ${DESCRIPTION}
93 - Version: ${PV}
94 - URL: ${HOMEPAGE}
95 - Libs: -L\${libdir} ${libs}
96 - Cflags: -I\${includedir} ${cflags}
97 - EOF
98 - insinto /usr/$(get_libdir)/pkgconfig
99 - doins ${pcname}.pc
100 - for x in $*; do
101 - alternatives_for ${x} ${pcname/-${x}} 0 \
102 - /usr/$(get_libdir)/pkgconfig/${x}.pc ${pcname}.pc
103 - done
104 -}
105 -
106 -# mkl_prof [_ilp64 or _lp64]
107 -# help: http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
108 -mkl_prof() {
109 - local bits=""
110 - if [[ ${IARCH} == intel64 ]]; then
111 - bits=_lp64
112 - [[ ${1} == int64 ]] && bits=_ilp64
113 - fi
114 - local gf="-Wl,--start-group -lmkl_gf${bits}"
115 - local intel="-Wl,--start-group -lmkl_intel${bits}"
116 - local core="-lmkl_core -Wl,--end-group"
117 - local prof=mkl${IARCH:((${#IARCH} - 2)):2}
118 - [[ ${1} == int64 ]] && prof=${prof}-int64
119 - local libs
120 -
121 - libs="${gf} -lmkl_sequential ${core} -lpthread" \
122 - mkl_add_prof ${prof}-gfortran blas lapack
123 - libs="${intel} -lmkl_sequential ${core} -lpthread" \
124 - mkl_add_prof ${prof}-intel blas lapack cblas lapacke
125 - libs="${gf} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \
126 - mkl_add_prof ${prof}-gfortran-openmp blas lapack
127 - libs="${intel} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \
128 - mkl_add_prof ${prof}-gcc-openmp cblas lapacke
129 - libs="${intel} -lmkl_intel_thread ${core} -openmp -lpthread" \
130 - mkl_add_prof ${prof}-intel-openmp blas lapack cblas lapacke
131 - libs="-lmkl_rt -lpthread" \
132 - mkl_add_prof ${prof}-dynamic blas lapack cblas lapacke
133 - libs="-lmkl_rt -liomp5 -lpthread" \
134 - mkl_add_prof ${prof}-dynamic-openmp blas lapack cblas lapacke
135 -
136 - # blacs and scalapack
137 - local scal="-lmkl_scalapack${bits:-_core}"
138 - local blacs="-lmkl_blacs_intelmpi${bits}"
139 - core="-lmkl_core ${blacs} -Wl,--end-group"
140 -
141 - libs="${gf} -lmkl_sequential ${core} -lpthread" \
142 - mkl_add_prof ${prof}-gfortran-blacs blacs
143 - libs="${scal} ${gf} -lmkl_sequential ${core} -lpthread" \
144 - mkl_add_prof ${prof}-gfortran-scalapack scalapack
145 - libs="${intel} -lmkl_sequential ${core} -lpthread" \
146 - mkl_add_prof ${prof}-intel-blacs blacs
147 - libs="${scal} ${intel} -lmkl_sequential ${core} -lpthread" \
148 - mkl_add_prof ${prof}-intel-scalapack scalapack
149 - libs="${gf} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \
150 - mkl_add_prof ${prof}-gfortran-openmp-blacs blacs
151 - libs="${scal} ${gf} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \
152 - mkl_add_prof ${prof}-gfortran-openmp-scalapack scalapack
153 - libs="${intel} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \
154 - mkl_add_prof ${prof}-gcc-openmp-blacs blacs
155 - libs="${scal} ${intel} -lmkl_gnu_thread ${core} -fopenmp -lpthread" \
156 - mkl_add_prof ${prof}-gcc-openmp-scalapack scalapack
157 - libs="${intel} -lmkl_intel_thread ${core} -liomp5 -lpthread" \
158 - mkl_add_prof ${prof}-intel-openmp-blacs blacs
159 - libs="${scal} ${intel} -lmkl_intel_thread ${core} -liomp5 -lpthread" \
160 - mkl_add_prof ${prof}-intel-openmp-scalapack scalapack
161 - libs="-lmkl_rt ${blacs} -lpthread" \
162 - mkl_add_prof ${prof}-dynamic-blacs blacs
163 - libs="${scal} -lmkl_rt ${blacs} -lpthread" \
164 - mkl_add_prof ${prof}-dynamic-scalapack scalapack
165 - libs="-lmkl_rt ${blacs} -liomp5 -lpthread" \
166 - mkl_add_prof ${prof}-dynamic-openmp-blacs blacs
167 - libs="${scal} -lmkl_rt ${blacs} -liomp5 -lpthread" \
168 - mkl_add_prof ${prof}-dynamic-openmp-scalapack scalapack
169 -}
170 -
171 -src_install() {
172 - intel-sdp_src_install
173 - echo -n > 35mkl "LDPATH="
174 - for IARCH in ${INTEL_ARCH}; do
175 - mkl_prof
176 - sed -i -e '/mkl/s/$/:/' 35mkl
177 - echo -n >> 35mkl "${INTEL_SDP_EDIR}/mkl/lib/${IARCH}"
178 - [[ ${IARCH} == intel64 ]] && mkl_prof int64
179 - done
180 - echo >> 35mkl
181 - doenvd 35mkl
182 -}
183
184 diff --git a/sci-libs/mkl/mkl-10.3.4.191.ebuild b/sci-libs/mkl/mkl-11.0.0.079.ebuild
185 similarity index 97%
186 rename from sci-libs/mkl/mkl-10.3.4.191.ebuild
187 rename to sci-libs/mkl/mkl-11.0.0.079.ebuild
188 index a2634cf..54aa193 100644
189 --- a/sci-libs/mkl/mkl-10.3.4.191.ebuild
190 +++ b/sci-libs/mkl/mkl-11.0.0.079.ebuild
191 @@ -1,11 +1,12 @@
192 -# Copyright 1999-2011 Gentoo Foundation
193 +# Copyright 1999-2012 Gentoo Foundation
194 # Distributed under the terms of the GNU General Public License v2
195 # $Header: $
196
197 EAPI=4
198 +
199 INTEL_DPN=parallel_studio_xe
200 -INTEL_DID=2158
201 -INTEL_DPV=2011_update2
202 +INTEL_DID=2749
203 +INTEL_DPV=2013
204 INTEL_SUBDIR=composerxe
205
206 inherit intel-sdp multilib alternatives-2
207 @@ -25,7 +26,7 @@ QA_PREBUILT="
208 ${INTEL_SDP_DIR}/mkl/benchmarks/linpack/*
209 ${INTEL_SDP_DIR}/mkl/benchmarks/mp_linpack/*/*/*"
210
211 -CHECKREQS_DISK_BUILD=1536
212 +CHECKREQS_DISK_BUILD=1536M
213
214 INTEL_BIN_RPMS="mkl mkl-devel"
215 INTEL_DAT_RPMS="mkl-common"