@@ -26,17 +26,16 @@ \subsection{Installation on Linux}
2626\item Build ALP: Create a build directory and invoke the provided bootstrap script to configure the project with CMake, then compile and install:
2727\ begin{lstlisting} [language=bash, basicstyle=\ttfamily\small, showstringspaces=false]
2828$ cd ALP && mkdir build && cd build
29- $ ../bootstrap.sh --prefix=../install # configure the build
29+ $ export ALP_INSTALL_DIR=../install # Set ALP installation directory
30+ $ ../bootstrap.sh --prefix=$ALP_INSTALL_DIR # configure the build
3031$ make -j # compile the ALP library
31- $ make -j install # install to ../install
32- $ source ../install/bin/setenv
33-
32+ $ make -j install # install to $ALP_INSTALL_DIR
3433\end {lstlisting }
3534(You can choose a different installation prefix as needed.)
3635
3736\item Set up environment: After installation, activate the ALP environment by sourcing the script setenv in the install directory:
3837\ begin{lstlisting} [language=bash, basicstyle=\ttfamily\small, showstringspaces=false]
39- $ source ../install /bin/setenv
38+ $ source $ALP_INSTALL_DIR /bin/setenv
4039\end {lstlisting }
4140This script updates paths to make ALP's compiler wrapper and libraries available.
4241
@@ -195,10 +194,10 @@ \section*{Building and Running the Example}
195194To compile the above code with ALP, we will use the direct linking option as discussed.
196195\ begin{lstlisting} [language=bash, basicstyle=\ttfamily\small, showstringspaces=false]
197196g++ example.cpp -o cg_demo \
198- -I install /include \
199- -L install /lib \
200- -L install /lib/sequential \
201- -Wl,-rpath,$PWD/install /lib/sequential \
197+ -I $ALP_INSTALL_DIR /include \
198+ -L $ALP_INSTALL_DIR /lib \
199+ -L $ALP_INSTALL_DIR /lib/sequential \
200+ -Wl,-rpath,$ALP_INSTALL_DIR /lib/sequential \
202201 -lspsolver_shmem_parallel \
203202 -lalp_cspblas_shmem_parallel \
204203 -lgraphblas \
0 commit comments