Compiling the Splash2 Benchmarks on Solaris


In order to run the Splash2 Benchmarks on GEMS they have to be compiled for Solaris. Unfortunately it is hard to find working ANL m4 macros for Solaris.

Mats Brorsson posted a set of macros to the comp.parallel newsgroup on March 2, 1998. I've taken those macros and included them here: solaris_macros.m4.

Below is a quick guide to using the macros. The following assumes you are using gcc to compile on Solaris 9.

Copy the above "solaris_macros.m4" file to the directory with the benchmark you want to compile (for example, splash2/codes/apps/barnes). Modify the makefile to have MACROS equal "solaris_macros.m4". Make sure to add "-lpthread" to the LDFLAGS line or else you'll get odd errors when trying to run the benchmarks in multi-thread mode.

NOTE! I have not extensively tested the correctness of these macros! Please make sure to verify them yourself before using the results.