NRVec: colexicographic ordering and rank/unrank
This commit is contained in:
1 parent
0b3343f878
commit
562f807243
5 files changed
+220
-8
No files matched your search
+16
-5
@@ -47,7 +47,7 @@ accordingly:
|
||||
\textbf{Option} & \textbf{Effect} \\
|
||||
\midrule
|
||||
\endhead
|
||||
\code{--disable-debug} & do not define \code{DEBUG}; by default range checks and other consistency checks are compiled in (section~\ref{sec:concepts:errors}) \\
|
||||
\code{--enable-debug} & define \code{DEBUG}: range checks and other consistency checks are compiled in (section~\ref{sec:concepts:errors}). The library is then called \code{libla\_debug}, without \code{DEBUG} (the default, production build) \code{libla} \\
|
||||
\code{--enable-optimize=<flags>} & compiler optimization flags, default \code{-O3 -finline-limit=1000}; \code{--disable-optimize} for none \\
|
||||
\code{--enable-profile} & compile with \code{-pg} \\
|
||||
\code{--enable-matptr} & define \code{MATPTR}: \code{NRMat} stores an array of row pointers (\code{T**}), see chapter~\ref{ch:mat}; incompatible with CUDA \\
|
||||
@@ -85,18 +85,29 @@ The headers \header{fortran.h}, \header{noncblas.h}, \header{cuda_la.h}, \header
|
||||
|
||||
\section{Compiling and linking user programs}
|
||||
|
||||
Include \header{la.h} (or the individual headers) and link with \code{-lla}, followed by the
|
||||
libraries found by \code{configure}, e.g.
|
||||
Include \header{la.h} (or the individual headers) and link with \code{-lla\_debug} (program compiled with
|
||||
\code{-DDEBUG}) or \code{-lla} (without it), followed by the libraries found by \code{configure}, e.g.
|
||||
\begin{lstlisting}[language=bash]
|
||||
g++ -O3 -DDEBUG -DFORTRAN_ -DNONCLAPACK -I$PREFIX/include prog.cc \
|
||||
-L$PREFIX/lib -lla_debug -llapack -lcblas -lblas
|
||||
g++ -O3 -DFORTRAN_ -DNONCLAPACK -I$PREFIX/include prog.cc \
|
||||
-L$PREFIX/lib -lla -llapack -lcblas -lblas
|
||||
\end{lstlisting}
|
||||
Both libraries can be installed together; the headers are common, and their inline code follows the \code{DEBUG} setting
|
||||
of the user program, which should therefore match the library. They are built by two runs of \code{configure} and
|
||||
\code{make install}, either in the source directory with \code{make clean} in between, or in two separate build
|
||||
directories:
|
||||
\begin{lstlisting}[language=bash]
|
||||
mkdir build_prod build_debug
|
||||
(cd build_prod; ../configure; make; make install)
|
||||
(cd build_debug; ../configure --enable-debug; make; make install)
|
||||
\end{lstlisting}
|
||||
The variables \code{AM_CXXFLAGS} and \code{AM_LDFLAGS} in the generated \header{Makefile} show the exact
|
||||
options used for the library itself.
|
||||
|
||||
The string \code{LA::version} (declared in \header{LA_version.h}) contains the git version, the commit date
|
||||
and the time and place of compilation of the library; it is generated by the script \header{get_git_version}
|
||||
at every \code{make}.
|
||||
and the time and place of compilation of the library, followed by \code{(debug build)} or \code{(production build)};
|
||||
it is generated by the script \header{get_git_version} at every \code{make}.
|
||||
|
||||
\section{Test programs}
|
||||
|
||||
|
||||
Reference in new issue
Block a user