Allow user to specify memory and cpu settings

Work in progress.

Signed-off-by: Prakash Surya <surya1@llnl.gov>