Commit c60905d1 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber

Restoring the install script.

parent 45a3714c
/usr/local/share/automake-1.11/INSTALL
\ No newline at end of file
#!/bin/bash
TARGET=TNL
INSTALL_PREFIX=${HOME}/local
WITH_CUDA=no
WITH_CUSPARSE=no
CUDA_ARCHITECTURE=2.0
TEMPLATE_EXPLICIT_INSTANTIATION=yes
VERBOSE=1
CMAKE="cmake"
CPUS=`grep -c processor /proc/cpuinfo`
echo "Building $TARGET using $CPUS processors."
if [ ! -d Debug ];
then
mkdir Debug
fi
if [ ! -d Release ];
then
mkdir Release
fi
cd Debug
${CMAKE} .. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=${HOME}/local \
-DCUDA_ARCHITECTURE=${CUDA_ARCHITECTURE} \
-DWITH_CUDA=${WITH_CUDA} \
-DWITH_CUSPARSE=${WITH_CUSPARSE} \
-DPETSC_DIR=${PETSC_DIR} \
-DWITH_TEMPLATE_EXPLICIT_INSTANTIATION=${TEMPLATE_EXPLICIT_INSTANTIATION}
make -j${CPUS} #VERBOSE=1
make -j${CPUS} test
make -j${CPUS} install
cd ../Release
${CMAKE} .. -DCMAKE_INSTALL_PREFIX=${HOME}/local \
-DCUDA_ARCHITECTURE=${CUDA_ARCHITECTURE} \
-DWITH_CUDA=${WITH_CUDA} \
-DWITH_CUSPARSE=${WITH_CUSPARSE} \
-DPETSC_DIR=${PETSC_DIR} \
-DWITH_TEMPLATE_EXPLICIT_INSTANTIATION=${TEMPLATE_EXPLICIT_INSTANTIATION}
make -j${CPUS} #VERBOSE=1
make -j${CPUS} test
make -j${CPUS} install
......@@ -226,7 +226,7 @@ class tnlCSRMatrix : public tnlMatrix< Real, Device, Index >
*/
bool backwardSpMV;
template< typename, typename, typename >
template< typename Real2, typename Device2, typename Index2 >
friend class tnlCSRMatrix;
friend class tnlMatrix< Real, tnlHost, Index >;
friend class tnlMatrix< Real, tnlCuda, Index >;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment