How to Build the Project¶
Step-by-Step Instructions¶
Assuming you already have the project available locally and your Docker container is running with /workspace
set as the project root, follow these steps to build the project:
-
Navigate to the Project Root:
Ensure you are in the project root directory (i.e.,
/workspace
). You can verify this by running:It should display
/workspace
(the project root). -
Run the Build Script:
From the project root, execute the build script to configure and compile the project:
This script will:
- Create a build directory
- Change into the build directory.
- Run CMake to generate the build system.
- Invoke make to compile the source code into executables.
- Return you to the project root once the build is complete.
-
Run the Executables:
You can now run the executables using the
run
command from anywhere. For example:-
Compute the sum of elements in a vector using different methods:
-
Perform daxpy operation (d=a*x + y) with random vectors:
or, to override default parameters:
More details on properly using the executables are provided in the subsequent sections of this documentation.
-