[CSC 435] Testing specific libraries

Andrew J. Pounds pounds_aj at mercer.edu
Mon Mar 26 09:26:44 EDT 2018


I got a question this weekend asking how to test specific libraries that
you are building.  I showed you in class how to specifically order the
libraries on the link line in the makefile to determine the library
search order.  When searching for a function, the linker will chose the
first occurence it finds based on your ordering of the libraries.   In
class we built the parallel matrix multiplication code, stuck it in a
library, but then "erroneously" had the serial library first on the link
line so we saw no parallel speedup when we ran the driver.  Only after
we swapped the location of the  threaded version of the library with the
serial version did we actually see speedup.   You can use the same
technique to determine which library gets called when you test them.


-- 
Andrew J. Pounds, Ph.D.  (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
http://faculty.mercer.edu/pounds_aj



More information about the csc435 mailing list