This project is distributed in association with the INFORMS Journal on Computing under the MIT License.
The software and data in this repository are associated with the paper This is a Template by T. Ralphs.
The version used in the paper is
To cite this software, please cite the paper and the software, using the following DOI.
The goal of this software is to demonstrate the effect of cache optimization.
In Linux, to build the version that multiplies all elements of a vector by a constant (used to obtain the results in Figure 1 in the paper), stepping K elements at a time, execute the following commands.
make mult
Alternatively, to build the version that sums the elements of a vector (used to obtain the results Figure 2 in the paper), stepping K elements at a time, do the following.
make clean
make sum
Be sure to make clean before building a different version of the code.
Figure 1 in the paper shows the results of the multiplication test with different
values of K using gcc
7.5 on an Ubuntu Linux box.
Figure 2 in the paper shows the results of the sum test with different
values of K using gcc
7.5 on an Ubuntu Linux box.
To replicate the results in Figure 1, do either
make mult-test
or
python test.py mult
To replicate the results in Figure 2, do either
make sum-test
or
python test.py sum
This code is being developed on an on-going basis at the author's Github site.
For support in using this software, submit an issue.