Set memory opts for the runtime.