From 0fa24404e5b8df4e8bf3adc4d2a32600fb2f93d1 Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Tue, 6 Dec 2022 14:17:53 +0100 Subject: [PATCH] Improve the documentation in the readme for benches building --- README.org | 21 +++++++++++++++++++-- configure.ac | 3 +-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 294da39..1db407e 100644 --- a/README.org +++ b/README.org @@ -69,10 +69,10 @@ And then you can see the =configure= options ../../configure --help #+end_src -** Benchmarks +** Benches The script =tools/configure-benches.sh= can be used to create -a couple of configurations for benchmarks: +a couple of configurations for benches: #+begin_src sh :exports results :results verbatim org :results verbatim drawer replace output awk '/begin +doc/,/end +doc/ { print $NL }' tools/configure-benches.sh | @@ -92,3 +92,20 @@ sed "s/^# //; s/^# *$//; /^$/d" and it should use a CUDA aware MPI implementation. It also only uses the routines that involve dgemm. :end: + +In order to generate the benches just create a suitable directory for it + +#+begin_src sh :eval no +mkdir -p build/benches +cd buid/benches +../../tools/configure-benches.sh CXX=g++ ... +#+end_src + +and you will get a Makefile together with several project folders. +You can either configure all projects with =make all= or +then go in each folder. + +Notice that you can give a path for ctf for all of them by doing +#+begin_src sh :eval no +../../tools/configure-benches.sh --with-ctf=/absolute/path/to/ctf +#+end_src diff --git a/configure.ac b/configure.ac index 4bd956b..eb75fbe 100644 --- a/configure.ac +++ b/configure.ac @@ -164,8 +164,7 @@ AC_TYPE_SIZE_T dnl ----------------------------------------------------------------------- dnl CHECK CTF if test xYES = x${BUILD_CTF}; then - AC_MSG_WARN([Sorry, building CTF not supported yet provide a build path - with --with-ctf=path/to/ctf/installation]) + AC_MSG_WARN([You will have to do make ctf before building the project.]) else CPPFLAGS="$CPPFLAGS -I${LIBCTF_CPATH}" LDFLAGS="$LDFLAGS -L${LIBCTF_LD_LIBRARY_PATH} -lctf"