[m-rev.] diff: Change some default parallelism-related settings.

Julien Fischer juliensf at csse.unimelb.edu.au
Thu Apr 14 14:10:29 AEST 2011


On Wed, 13 Apr 2011, Paul Bone wrote:

>
> Adjust some default settings for automatic parallelism, and parallel runtime
> options.
>
> deep_profiler/mdprof_feedback.m:
>    Enable parallelisation of dependant conjunctions by default.
>
>    Enable the --report option by default.
>
>    Increase the desired amount of parallelism from 4.0 to 8.0.
>
>    Reduce the cost of waits from 250csc to 200csc
>
>    Reduce the clique cost threashold from 100,000csc to 2,000csc
>
>    Reduce the call site cost threashold from 50,000csc to 2,000csc
>
> runtime/mercury_context.h:
> runtime/mercury_context.c:
> runtime/mercury_wrapper.c:
> doc/user_guide.texi:
>    Enable thread pinning by default.
>
>    Modify how the thread pinning option is handled.
>
> runtime/mercury_wrapper.c:
>    Change the default for --max-contexts-per-thread so that it is much more
>    generous in stack segment grades.

...

> Index: runtime/mercury_wrapper.c
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/runtime/mercury_wrapper.c,v
> retrieving revision 1.218
> diff -u -p -b -r1.218 mercury_wrapper.c
> --- runtime/mercury_wrapper.c	5 Apr 2011 10:27:26 -0000	1.218
> +++ runtime/mercury_wrapper.c	13 Apr 2011 06:28:06 -0000
> @@ -203,8 +203,17 @@ size_t      MR_stack_margin_size = 128;
> /* primary cache size to optimize for, in bytes */
> size_t      MR_pcache_size = 8192;
>
> -/* soft limits on the number of contexts we can create */
> +/*
> +** Limits on the number of contexts we can create.
> +** These allow 64MB of det stacks regardless of which grade is being used.
> +** Where sizeof(MR_Word) 8 and the detstack is 64 and 4098 Kwords big for stseg
> +** and non stseg grades.

That last sentence makes no sense.

> +*/
> +#ifdef MR_STACK_SEGMENTS
> +MR_Unsigned MR_max_contexts_per_thread = 128;
> +#else
> MR_Unsigned MR_max_contexts_per_thread = 2;
> +#endif
> MR_Unsigned MR_max_outstanding_contexts;

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list