Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 18a5acb4 authored by Thierry's avatar Thierry
Browse files

[add] memory scheduling constraint

These extensions are defined to constraint the scheduling with constrainted memory resources.
The idea is to let the user to define memory attributs for its OpenMP task and to set memory limits.
The scheduler will try to do the best by memory usage under the memory limits.

Attribut is given by calling new OpenMP runtime function.
  - omp_set_task_alloc_size(rsrc,size,ptr): to give to the runtime information on the usage of memory resource for the next created task.
  - omp_set_task_free_size(rsrc,size,ptr): to give to the runtime information information on task that may potential reduce memory by size bytes.
  - omp_info_alloc_memory(rsrc, size, ptr): used to indicate that 'size' byte on the resource 'rsrc' is allocated.
  - omp_info_free_memory(rsrc, size, ptr): used to indicate that 'size' byte on the resource 'rsrc' is freed.
  - omp_set_memory_limit( rsrc, size_max, percent ): to set limits on the set of resources in rsrc (xored value).
  The percent (float) will be used for future usage.
  By default there is no limit for each kind resource, nevertheless the defined limit has default
  value given by env. var. KAAPI_SCHED_MEM_LIMIT before any call to omp_set_memory_limit.

Add counter of used memory from declaration of the task' allocation and the free call in the program.
Katracereader generates memory.csv
parent 31d8d826
No related branches found
No related tags found
No related merge requests found
Showing
with 491 additions and 29 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment