Skip to content

Build Options

Yihe (William) Huang edited this page Mar 14, 2018 · 1 revision

Build Options

Various environment variables control how STO test programs are built. In all our benchmarks, we use the following environment variable setup:

PROFILE_COUNTERS=1 # enable STO accounting for abort/commit rates
DEBUG_ABORTS=0     # disable accounting for abort reasons
BOUND=7            # set bound for bounded spin in locks to 2^7
ADAPTIVE=1         # enable adaptive reader-writer lock
NDEBUG=0           # disable assertions

One can start a build with these variable values by supplying them to the make command:

$ make PROFILE_COUNTERS=1 DEBUG_ABORTS=0 BOUND=7 ADAPTIVE=1 NDEBUG=0 <target>
Clone this wiki locally