Labs
More integer optimization test cases are available here. The directory test/x has tests for x variables and inequalities. The input is in file i, and there are two solution files for each test, a.sol from a commercial solver and intopt.sol from the reference program.
- Appendix B updated April 13, 2020. The "else break" was missing in the last loop on page 719.
Lab 1 | File input and memory allocation, basic valgrind and Google sanitizer |
Lab 2 | gdb |
Lab 3 | Advanced valgrind and Google sanitizer |
Lab 4 | Performance measurements: operf, gprof, valgrind, gcov |
Lab 5 | POWER8 instruction execution |
Lab 6 | Compiler optimizations with GCC, Clang, Nvidia/PGI, and IBM XLC |