]> https://gitweb.dealii.org/ - candi.git/commitdiff
add openblas
authorTimo Heister <timo.heister@gmail.com>
Fri, 5 Oct 2018 11:49:52 +0000 (13:49 +0200)
committerTimo Heister <timo.heister@gmail.com>
Fri, 5 Oct 2018 11:49:52 +0000 (13:49 +0200)
candi.cfg
deal.II-toolchain/packages/openblas.package [new file with mode: 0644]

index fb4adbfc02bd0888282414dddc7267dc110a0e11..97defe5239b386495908097eed51e3dd848471fa 100644 (file)
--- a/candi.cfg
+++ b/candi.cfg
@@ -37,6 +37,7 @@ PACKAGES="load:dealii-prepare"
 #PACKAGES="${PACKAGES} once:cmake"
 #PACKAGES="${PACKAGES} once:boost"
 #PACKAGES="${PACKAGES} once:numdiff"
+#PACKAGES="${PACKAGES} once:openblas"
 
 # These packages are not dependencies but are tools used for deal.II development:
 #PACKAGES="${PACKAGES} once:astyle"
diff --git a/deal.II-toolchain/packages/openblas.package b/deal.II-toolchain/packages/openblas.package
new file mode 100644 (file)
index 0000000..ee3837d
--- /dev/null
@@ -0,0 +1,39 @@
+VERSION=0.2.20
+CHECKSUM=48637eb29f5b492b91459175dcc574b1
+NAME=v${VERSION}
+SOURCE=https://github.com/xianyi/OpenBLAS/archive/
+PACKING=.tar.gz
+EXTRACTSTO=OpenBLAS-${VERSION}
+BUILDDIR=${BUILD_PATH}/${EXTRACTSTO}
+INSTALL_PATH=${INSTALL_PATH}/${EXTRACTSTO}
+
+BUILDCHAIN=custom
+
+package_specific_build () {
+    cd ${BUILDDIR}
+    cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
+
+    make -j ${PROCS} PREFIX=${INSTALL_PATH}
+    quit_if_fail "make failed"
+
+    make install -j ${PROCS} PREFIX=${INSTALL_PATH}
+    quit_if_fail "make install failed"
+}
+
+package_specific_register () {
+    export LAPACK_DIR=${INSTALL_PATH}/lib
+    export BLAS_DIR=${INSTALL_PATH}/lib
+    # older cmake (for example 3.5) does not detect openblas by default so
+    # we force detection by adding to the deal.II configure line:
+    export DEAL_CONFOPTS="-D LAPACK_FOUND=true -D LAPACK_LIBRARIES=${INSTALL_PATH}/lib/libopenblas.so ${DEAL_CONFOPTS}"
+}
+
+package_specific_conf () {
+    # Generate configuration file
+    CONFIG_FILE=${CONFIGURATION_PATH}/${EXTRACTSTO}
+    rm -f $CONFIG_FILE
+    echo "
+export LAPACK_DIR=${INSTALL_PATH}/lib
+export BLAS_DIR=${INSTALL_PATH}/lib
+" >> $CONFIG_FILE
+}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.