Andra Hugo 12 년 전
부모
커밋
66d28ce390
2개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      doc/doxygen/chapters/api/scheduling_context_hypervisor.doxy
  2. 10 0
      doc/doxygen/chapters/api/scheduling_contexts.doxy

+ 9 - 0
doc/doxygen/chapters/api/scheduling_context_hypervisor.doxy

@@ -169,6 +169,15 @@ Forbid resizing of a context
 Allow resizing of a context. The user can then provide information to
 the hypervisor concerning the conditions of resizing.
 
+\fn void sc_hypervisor_post_resize_request(unsigned sched_ctx, int task_tag)
+\ingroup API_Scheduling_Context_Hypervisor
+Requires resizing the context \p sched_ctx whenever a task tagged with the id \p task_tag
+finished executing 
+
+\fn void sc_hypervisor_resize_ctxs(int *sched_ctxs, int nsched_ctxs , int *workers, int nworkers)
+\ingroup API_Scheduling_Context_Hypervisor
+Requires reconsidering the distribution of ressources over the indicated scheduling contexts 
+
 \fn void sc_hypervisor_ioctl(unsigned sched_ctx, ...)
 \ingroup API_Scheduling_Context_Hypervisor
 Inputs conditions to the context sched_ctx with the following

+ 10 - 0
doc/doxygen/chapters/api/scheduling_contexts.doxy

@@ -85,6 +85,16 @@ just been created. It will be further used to indicate the context the
 tasks will be submitted to. The return value should be at most
 \ref STARPU_NMAX_SCHED_CTXS.
 
+\fn unsigned starpu_sched_ctx_create_with_custom_policy(struct starpu_sched_policy *policy, int *workerids_ctx, int nworkers_ctx, const char *sched_ctx_name)
+\ingroup API_Scheduling_Contexts
+This function creates a scheduling context which uses the scheduling
+policy \p policy (the pointer to the custom scheduling policy) and assigns the workers in \p workerids_ctx to
+execute the tasks submitted to it.
+The return value represents the identifier of the context that has
+just been created. It will be further used to indicate the context the
+tasks will be submitted to. The return value should be at most
+\ref STARPU_NMAX_SCHED_CTXS.
+
 \fn unsigned starpu_sched_ctx_create_inside_interval(const char *policy_name, const char *sched_name, int min_ncpus, int max_ncpus, int min_ngpus, int max_ngpus, unsigned allow_overlap)
 \ingroup API_Scheduling_Contexts
 Create a context indicating an approximate interval of resources