Improve the documentation in the readme for benches building

This commit is contained in:
Alejandro Gallo 2022-12-06 14:17:53 +01:00
parent 8f7d05efda
commit 0fa24404e5
2 changed files with 20 additions and 4 deletions

View File

@ -69,10 +69,10 @@ And then you can see the =configure= options
../../configure --help ../../configure --help
#+end_src #+end_src
** Benchmarks ** Benches
The script =tools/configure-benches.sh= can be used to create 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 #+begin_src sh :exports results :results verbatim org :results verbatim drawer replace output
awk '/begin +doc/,/end +doc/ { print $NL }' tools/configure-benches.sh | 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. and it should use a CUDA aware MPI implementation.
It also only uses the routines that involve dgemm. It also only uses the routines that involve dgemm.
:end: :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

View File

@ -164,8 +164,7 @@ AC_TYPE_SIZE_T
dnl ----------------------------------------------------------------------- dnl -----------------------------------------------------------------------
dnl CHECK CTF dnl CHECK CTF
if test xYES = x${BUILD_CTF}; then if test xYES = x${BUILD_CTF}; then
AC_MSG_WARN([Sorry, building CTF not supported yet provide a build path AC_MSG_WARN([You will have to do make ctf before building the project.])
with --with-ctf=path/to/ctf/installation])
else else
CPPFLAGS="$CPPFLAGS -I${LIBCTF_CPATH}" CPPFLAGS="$CPPFLAGS -I${LIBCTF_CPATH}"
LDFLAGS="$LDFLAGS -L${LIBCTF_LD_LIBRARY_PATH} -lctf" LDFLAGS="$LDFLAGS -L${LIBCTF_LD_LIBRARY_PATH} -lctf"