Date: Tue, 30 Apr 2013 16:41:45 +0200 From: magnum <john.magnum@...hmail.com> To: john-dev@...ts.openwall.com Subject: Re: --fork On 30 Apr, 2013, at 16:33 , magnum <john.magnum@...hmail.com> wrote: > I will unify some MPI/fork-code (prefering core stuff over the old HAVE_MPI stuff when at all possible). > > My goal is to have MPI and -fork so very similar that a forked run can be resumed with MPI, or vice versa. The contest branch was almost there. Speaking of that, I have plenty of these in bleeding: +#if HAVE_MPI + if (mpi_id == 1) +#endif printf("Something (often with unchanged indentation)"); In contest, I had a global variable 'options.rootnode' that was used instead, not ifdef'ed MPI but also valid for node/fork. -#if HAVE_MPI - if (mpi_id == 1) -#endif + if (options.root_node) printf("Something... Will you do something like that in code? If so, I'll just drop my MPI stuff. magnum
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.