mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Build without LIME
This commit is contained in:
parent
c2b688abc9
commit
dd8d70eeff
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#include "Benchmark_IO.hpp"
|
#include "Benchmark_IO.hpp"
|
||||||
|
|
||||||
#ifndef BENCH_IO_LMIN
|
#ifndef BENCH_IO_LMIN
|
||||||
@ -13,6 +12,7 @@
|
|||||||
#define BENCH_IO_NPASS 10
|
#define BENCH_IO_NPASS 10
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LIME
|
||||||
using namespace Grid;
|
using namespace Grid;
|
||||||
|
|
||||||
std::string filestem(const int l)
|
std::string filestem(const int l)
|
||||||
@ -196,3 +196,6 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main(int argc,char ** argv){}
|
||||||
|
#endif
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
#define Benchmark_IO_hpp_
|
#define Benchmark_IO_hpp_
|
||||||
|
|
||||||
#include <Grid/Grid.h>
|
#include <Grid/Grid.h>
|
||||||
#ifdef HAVE_LIME
|
|
||||||
#define MSG std::cout << GridLogMessage
|
#define MSG std::cout << GridLogMessage
|
||||||
#define SEP \
|
#define SEP \
|
||||||
"-----------------------------------------------------------------------------"
|
"-----------------------------------------------------------------------------"
|
||||||
#define BIGSEP \
|
#define BIGSEP \
|
||||||
"============================================================================="
|
"============================================================================="
|
||||||
|
#ifdef HAVE_LIME
|
||||||
|
|
||||||
namespace Grid {
|
namespace Grid {
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "Benchmark_IO.hpp"
|
#include "Benchmark_IO.hpp"
|
||||||
|
#ifdef HAVE_LIME
|
||||||
using namespace Grid;
|
using namespace Grid;
|
||||||
|
|
||||||
int main (int argc, char ** argv)
|
int main (int argc, char ** argv)
|
||||||
@ -97,3 +97,6 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main(int argc,char ** argv){}
|
||||||
|
#endif
|
||||||
|
@ -26,11 +26,10 @@ for subdir in $dirs; do
|
|||||||
echo "tests-local: ${TESTLIST} " > Make.inc
|
echo "tests-local: ${TESTLIST} " > Make.inc
|
||||||
echo ${PREF}_PROGRAMS = ${TESTLIST} >> Make.inc
|
echo ${PREF}_PROGRAMS = ${TESTLIST} >> Make.inc
|
||||||
echo >> Make.inc
|
echo >> Make.inc
|
||||||
HADLINK=`[ $subdir = './hadrons' ] && echo '-lHadrons '`
|
|
||||||
for f in $TESTS; do
|
for f in $TESTS; do
|
||||||
BNAME=`basename $f .cc`
|
BNAME=`basename $f .cc`
|
||||||
echo ${BNAME}_SOURCES=$f >> Make.inc
|
echo ${BNAME}_SOURCES=$f >> Make.inc
|
||||||
echo ${BNAME}_LDADD=${HADLINK}-lGrid >> Make.inc
|
echo ${BNAME}_LDADD='$(top_builddir)/Grid/libGrid.a' >> Make.inc
|
||||||
echo >> Make.inc
|
echo >> Make.inc
|
||||||
done
|
done
|
||||||
if [ $subdir != '.' ]; then
|
if [ $subdir != '.' ]; then
|
||||||
@ -49,7 +48,7 @@ echo >> Make.inc
|
|||||||
for f in $TESTS; do
|
for f in $TESTS; do
|
||||||
BNAME=`basename $f .cc`
|
BNAME=`basename $f .cc`
|
||||||
echo ${BNAME}_SOURCES=$f >> Make.inc
|
echo ${BNAME}_SOURCES=$f >> Make.inc
|
||||||
echo ${BNAME}_LDADD=-lGrid>> Make.inc
|
echo ${BNAME}_LDADD='$(top_builddir)/Grid/libGrid.a' >> Make.inc
|
||||||
echo >> Make.inc
|
echo >> Make.inc
|
||||||
done
|
done
|
||||||
cd ..
|
cd ..
|
||||||
@ -65,7 +64,7 @@ echo >> Make.inc
|
|||||||
for f in $TESTS; do
|
for f in $TESTS; do
|
||||||
BNAME=`basename $f .cc`
|
BNAME=`basename $f .cc`
|
||||||
echo ${BNAME}_SOURCES=$f >> Make.inc
|
echo ${BNAME}_SOURCES=$f >> Make.inc
|
||||||
echo ${BNAME}_LDADD=-lGrid>> Make.inc
|
echo ${BNAME}_LDADD='$(top_builddir)/Grid/libGrid.a'>> Make.inc
|
||||||
echo >> Make.inc
|
echo >> Make.inc
|
||||||
done
|
done
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user