forked from kokkos/stdBLAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdo-configure
More file actions
executable file
·29 lines (23 loc) · 775 Bytes
/
do-configure
File metadata and controls
executable file
·29 lines (23 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Requirements:
#
# - CMake >= 3.12
# - C++14 or greater compiler (requirement of mdspan)
# Build instructions
#
# 1. Download and install googletest
# - https://github.com/google/googletest
# - (master appears to work)
# 2. Download and install mdspan:
# - git@github.com:kokkos/mdspan.git
# Set this to the path of your stdBLAS source directory.
SRC_DIR=$HOME/Documents/Code/CPP/src/stdBLAS
# Set this to the root directory of the place where you
# installed googletest and mdspan.
INSTALL_ROOT=$HOME/Documents/Code/CPP/install
cmake \
-D CMAKE_INSTALL_PREFIX=${INSTALL_ROOT}/stdBLAS \
-D CMAKE_PREFIX_PATH="${INSTALL_ROOT}/mdspan;${INSTALL_ROOT}/googletest" \
-D LINALG_ENABLE_TESTS:BOOL=ON \
-D LINALG_ENABLE_EXAMPLES:BOOL=ON \
${SRC_DIR}