Adds helper program for reading max_vcores
authorBarret Rhoden <brho@cs.berkeley.edu>
Sat, 4 May 2013 05:51:35 +0000 (22:51 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Sat, 4 May 2013 05:51:35 +0000 (22:51 -0700)
commitdf53d96f66bbeb3552d9af0f7f50a619dc33f51c
tree363d42f15b89a1bbb98d9c1d71b27b03ce8e5cef
parentf6fb5bd7a347a50974dd6e3b2b8fb810c179336f
Adds helper program for reading max_vcores

This is used by shell scripts to get max_vcores.  We don't have pipes
working yet, so the answer is passed via the return value.  You can do
something like:

maxvcores
MAXVC=$?
pthread_test $MAXVC 9999999999999999 $MAXVC &

to launch pthread test so that it will run forever and want all of the
cores available.
tests/max_vcores.c [new file with mode: 0644]