Permalink
Browse files

--download-blas-lapack seems to work

  • Loading branch information...
ShadenSmith committed May 3, 2016
1 parent 46db29f commit 264600b42b60b3ba917ec0f3d37366fb50010f43
Showing with 42 additions and 3 deletions.
  1. +10 −0 CMakeLists.txt
  2. +5 −0 configure
  3. +1 −1 lib/CMakeLists.txt
  4. +24 −0 scripts/download-blas-lapack.sh
  5. +1 −1 src/CMakeLists.txt
  6. +1 −1 tests/CMakeLists.txt
View
@@ -49,6 +49,16 @@ else()
endif()
# BLAS/LAPACK
if (DOWNLOAD_BLAS_LAPACK)
message("Downloading generic BLAS/LAPACK libraries.")
message(" NOTE: performance may suffer.")
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/scripts/download-blas-lapack.sh ${CMAKE_BINARY_DIR})
set(USER_LAPACK_LIB ${CMAKE_BINARY_DIR}/lapack/lib/liblapack.a)
set(USER_BLAS_LIB ${CMAKE_BINARY_DIR}/lapack/lib/libblas.a)
endif()
if (DEFINED USER_LAPACK_LIB)
message("Using user supplied LAPACK=${USER_LAPACK_LIB}")
set(SPLATT_LIBS ${SPLATT_LIBS} ${USER_LAPACK_LIB})
View
@@ -54,6 +54,8 @@ show_help() {
echo " Set the BLAS library (e.g., /usr/.../libblas.so)."
echo " --with-lapack-lib=<lib>"
echo " Set the LAPACK library (e.g., /usr/.../liblapack.so)."
echo " --download-blas-lapack"
echo " Download generic BLAS/LAPACK libraries (with possible performance loss!)"
echo " --mpi"
echo " Build with MPI support"
@@ -136,6 +138,9 @@ for i in "${@}"; do
--with-lapack-lib=*)
CONFIG_FLAGS="${CONFIG_FLAGS} -DUSER_LAPACK_LIB=${i#*=}"
;;
--download-blas-lapack)
CONFIG_FLAGS="${CONFIG_FLAGS} -DDOWNLOAD_BLAS_LAPACK=TRUE"
;;
--mtmetis)
View
@@ -1,6 +1,6 @@
project(SPLATT_LIB)
cmake_minimum_required(VERSION 2.6.0)
cmake_minimum_required(VERSION 2.8.0)
add_library(splatt ${SPLATT_SOURCES})
@@ -0,0 +1,24 @@
#!/bin/bash
LAPACK_VERSION=3.6.0
LAPACK_LOC=http://www.netlib.org/lapack/lapack-${LAPACK_VERSION}.tgz
if [ "$#" -eq 0 ]; then
echo "usage: <build directory>";
exit 1;
fi
wget ${LAPACK_LOC} --output-document=$1/lapack.tgz;
pushd $1/
tar xf lapack.tgz
rm lapack.tgz;
mv lapack-${LAPACK_VERSION} lapack
pushd lapack
cmake .
make -j
popd
popd
View
@@ -1,6 +1,6 @@
project(CSPLATT_APPS)
cmake_minimum_required(VERSION 2.6.0)
cmake_minimum_required(VERSION 2.8.0)
file(GLOB CMD_SOURCES cmds/*.c)
add_executable(splatt_bin ${CMD_SOURCES})
View
@@ -1,6 +1,6 @@
project(CSPLATT_TEST)
cmake_minimum_required(VERSION 2.6.0)
cmake_minimum_required(VERSION 2.8.0)
add_definitions(-DSPLATT_TEST_DATASETS="${CMAKE_CURRENT_SOURCE_DIR}/tensors/")
add_definitions(-DSPLATT_TEST_GRAPHS="${CMAKE_CURRENT_SOURCE_DIR}/graphs/")

0 comments on commit 264600b

Please sign in to comment.