소스 검색

add setup and placeholders to build interoperability doc

Olivier Aumage 7 년 전
부모
커밋
71c4087106

+ 5 - 4
doc/doxygen/Makefile.am

@@ -277,7 +277,8 @@ dox_inputs = $(DOX_CONFIG) 				\
 	$(top_srcdir)/sc_hypervisor/include/sc_hypervisor_config.h 	\
 	$(top_srcdir)/sc_hypervisor/include/sc_hypervisor_lp.h		\
 	$(top_srcdir)/sc_hypervisor/include/sc_hypervisor_monitoring.h	\
-	$(top_srcdir)/sc_hypervisor/include/sc_hypervisor_policy.h
+	$(top_srcdir)/sc_hypervisor/include/sc_hypervisor_policy.h	\
+	$(top_srcdir)/starpurm/include/starpurm.h
 
 $(DOX_TAG): $(dox_inputs)
 	@rm -fr $(DOX_HTML_DIR) $(DOX_LATEX_DIR)
@@ -301,9 +302,9 @@ $(DOX_PDF): $(DOX_TAG) refman.tex
 	$(SED) -i -e 's/__configure__/\\_Configure Options!/' -e 's/\\-\\_\\-\\-\\_\\-configure\\-\\_\\-\\-\\_\\-//' CompilationConfiguration.tex ;\
 	$(SED) -i s'/\\item Module\\-Documentation/\\item \\hyperlink{ModuleDocumentation}{Module Documentation}/' index.tex ;\
 	$(SED) -i s'/\\item File\\-Documentation/\\item \\hyperlink{FileDocumentation}{File Documentation}/' index.tex ;\
-	$(PDFLATEX) refman.tex > /dev/null ;\
-	$(MAKEINDEX) refman.idx > /dev/null 2>&1 ;\
-	$(PDFLATEX) refman.tex > /dev/null ;\
+	$(PDFLATEX) refman.tex ;\
+	$(MAKEINDEX) refman.idx ;\
+	$(PDFLATEX) refman.tex ;\
 	done=0; repeat=5 ;\
 	while test $$done = 0 -a $$repeat -gt 0; do \
            if $(EGREP) 'Rerun (LaTeX|to get cross-references right)' refman.log > /dev/null 2>&1; then \

+ 8 - 1
doc/doxygen/chapters/495_interoperability.doxy

@@ -14,11 +14,18 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-/*! \page InteropSupport Interoperability Support
+/*! \page InteroperabilitySupport Interoperability Support
 
+TODO
 
 \section ResourceManagement StarPU Resource Management
 
 This section will present the 'starpurm' module.
 
+All functions are defined in \ref API_Interop_Support.
+
+\subsection InitExit Initialization and Shutdown
+
+TODO
+
 */

+ 2 - 0
doc/doxygen/chapters/520_files.doxy

@@ -71,4 +71,6 @@
 
 \file starpufft.h
 
+\file starpurm.h
+
 */

+ 283 - 4
doc/doxygen/chapters/api/interoperability.doxy

@@ -14,10 +14,289 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-/*! \defgroup API_InteropSupport Interoperability Support
+/*! \defgroup API_Interop_Support Interoperability Support
 
-\def INTEROP_DUMMY
-\ingroup API_InteropSupport
-TODO
+\brief This section describes the interface supplied by StarPU to interoperate with other runtime systems.
+
+\enum e_starpurm_drs_ret
+\ingroup API_Interop_Support
+StarPU Resource Manager return type.
+
+@name Initialisation
+\ingroup API_Interop_Support
+
+\fn void starpurm_initialize(void)
+\ingroup API_Interop_Support
+TODO.
+
+\fn void starpurm_shutdown(void)
+\ingroup API_Interop_Support
+TODO.
+
+
+@name Spawn
+\ingroup API_Interop_Support
+
+\fn void starpurm_spawn_kernel_on_cpus(void *data, void(*f)(void *), void *args, hwloc_cpuset_t cpuset)
+\ingroup API_Interop_Support
+TODO.
+
+\fn void starpurm_spawn_kernel_on_cpus_callback(void *data, void(*f)(void *), void *args, hwloc_cpuset_t cpuset, void(*cb_f)(void *), void *cb_args)
+\ingroup API_Interop_Support
+TODO.
+
+
+@name DynamicResourceSharing
+\ingroup API_Interop_Support
+
+
+\fn starpurm_drs_ret_t starpurm_set_drs_enable(starpurm_drs_desc_t *spd)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_set_drs_disable(starpurm_drs_desc_t *spd)
+\ingroup API_Interop_Support
+TODO.
+
+\fn int starpurm_drs_enabled_p(void)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_set_max_parallelism(starpurm_drs_desc_t *spd, int max)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_callback_set(starpurm_drs_desc_t *spd, starpurm_drs_cbs_t which, starpurm_drs_cb_t callback)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_callback_get(starpurm_drs_desc_t *spd, starpurm_drs_cbs_t which, starpurm_drs_cb_t *callback)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_assign_cpu_to_starpu(starpurm_drs_desc_t *spd, int cpuid)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_assign_cpus_to_starpu(starpurm_drs_desc_t *spd, int ncpus)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_assign_cpu_mask_to_starpu(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_assign_all_cpus_to_starpu(starpurm_drs_desc_t *spd)
+\ingroup API_Interop_Support
+TODO.
+
+
+\fn starpurm_drs_ret_t starpurm_withdraw_cpu_from_starpu(starpurm_drs_desc_t *spd, int cpuid)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_withdraw_cpus_from_starpu(starpurm_drs_desc_t *spd, int ncpus)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_withdraw_cpu_mask_from_starpu(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_withdraw_all_cpus_from_starpu(starpurm_drs_desc_t *spd)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_lend(starpurm_drs_desc_t *spd)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_lend_cpu(starpurm_drs_desc_t *spd, int cpuid)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_lend_cpus(starpurm_drs_desc_t *spd, int ncpus)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_lend_cpu_mask(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_reclaim(starpurm_drs_desc_t *spd)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_reclaim_cpu(starpurm_drs_desc_t *spd, int cpuid)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_reclaim_cpus(starpurm_drs_desc_t *spd, int ncpus)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_reclaim_cpu_mask(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_acquire(starpurm_drs_desc_t *spd)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_acquire_cpu(starpurm_drs_desc_t *spd, int cpuid)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_acquire_cpus(starpurm_drs_desc_t *spd, int ncpus)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_acquire_cpu_mask(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_return_all(starpurm_drs_desc_t *spd)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_return_cpu(starpurm_drs_desc_t *spd, int cpuid)
+\ingroup API_Interop_Support
+TODO.
+
+
+@name Devices
+\ingroup API_Interop_Support
+
+\fn int starpurm_get_device_type_id(const char *type_str)
+\ingroup API_Interop_Support
+TODO.
+
+\fn const char *starpurm_get_device_type_name(int type_id)
+\ingroup API_Interop_Support
+TODO.
+
+\fn int starpurm_get_nb_devices_by_type(int type_id)
+\ingroup API_Interop_Support
+TODO.
+
+\fn int starpurm_get_device_id(int type_id, int device_rank)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_assign_device_to_starpu(starpurm_drs_desc_t *spd, int type_id, int unit_rank)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_assign_devices_to_starpu(starpurm_drs_desc_t *spd, int type_id, int ndevices)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_assign_device_mask_to_starpu(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_assign_all_devices_to_starpu(starpurm_drs_desc_t *spd, int type_id)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_withdraw_device_from_starpu(starpurm_drs_desc_t *spd, int type_id, int unit_rank)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_withdraw_devices_from_starpu(starpurm_drs_desc_t *spd, int type_id, int ndevices)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_withdraw_device_mask_from_starpu(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_withdraw_all_devices_from_starpu(starpurm_drs_desc_t *spd, int type_id)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_lend_device(starpurm_drs_desc_t *spd, int type_id, int unit_rank)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_lend_devices(starpurm_drs_desc_t *spd, int type_id, int ndevices)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_lend_device_mask(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_lend_all_devices(starpurm_drs_desc_t *spd, int type_id)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_reclaim_device(starpurm_drs_desc_t *spd, int type_id, int unit_rank)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_reclaim_devices(starpurm_drs_desc_t *spd, int type_id, int ndevices)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_reclaim_device_mask(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_reclaim_all_devices(starpurm_drs_desc_t *spd, int type_id)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_acquire_device(starpurm_drs_desc_t *spd, int type_id, int unit_rank)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_acquire_devices(starpurm_drs_desc_t *spd, int type_id, int ndevices)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_acquire_device_mask(starpurm_drs_desc_t *spd, const hwloc_cpuset_t mask)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_acquire_all_devices(starpurm_drs_desc_t *spd, int type_id)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_return_all_devices(starpurm_drs_desc_t *spd, int type_id)
+\ingroup API_Interop_Support
+TODO.
+
+\fn starpurm_drs_ret_t starpurm_return_device(starpurm_drs_desc_t *spd, int type_id, int unit_rank)
+\ingroup API_Interop_Support
+TODO.
+
+
+@name CpusetsQueries
+\ingroup API_Interop_Support
+
+\fn hwloc_cpuset_t starpurm_get_device_worker_cpuset(int type_id, int unit_rank)
+\ingroup API_Interop_Support
+TODO.
+
+\fn hwloc_cpuset_t starpurm_get_global_cpuset(void)
+\ingroup API_Interop_Support
+TODO.
+
+\fn hwloc_cpuset_t starpurm_get_selected_cpuset(void)
+\ingroup API_Interop_Support
+TODO.
+
+\fn hwloc_cpuset_t starpurm_get_all_cpu_workers_cpuset(void)
+\ingroup API_Interop_Support
+TODO.
+
+\fn hwloc_cpuset_t starpurm_get_all_device_workers_cpuset(void)
+\ingroup API_Interop_Support
+TODO.
+
+\fn hwloc_cpuset_t starpurm_get_all_device_workers_cpuset_by_type(int typeid)
+\ingroup API_Interop_Support
+TODO.
 
 */

+ 2 - 1
doc/doxygen/doxygen-config.cfg.in

@@ -64,7 +64,8 @@ INPUT                  = @top_srcdir@/doc/doxygen/chapters \
 			 @top_srcdir@/mpi/include/ \
 			 @top_srcdir@/mpi/include/fstarpu_mpi_mod.f90 \
 			 @top_srcdir@/starpufft/include/starpufft.h \
-			 @top_srcdir@/sc_hypervisor/include
+			 @top_srcdir@/sc_hypervisor/include \
+			 @top_srcdir@/starpurm/include/starpurm.h
 
 EXAMPLE_PATH           = @top_srcdir@/doc/doxygen \
 		       	 @top_srcdir@/doc/doxygen/chapters \

+ 3 - 1
doc/doxygen/refman.tex

@@ -194,7 +194,7 @@ Documentation License”.
 \chapter{Interoperability Support}
 \label{InteropSupport}
 \hypertarget{InteropSupport}{}
-\input{InteropSupport}
+\input{InteroperabilitySupport}
 
 \part{StarPU Reference API}
 
@@ -256,6 +256,7 @@ Documentation License”.
 \input{group__API__SC__Hypervisor}
 \input{group__API__Modularized__Scheduler}
 \input{group__API__Clustering__Machine}
+\input{group__API__Interop__Support}
 
 \chapter{File Index}
 \input{files}
@@ -309,6 +310,7 @@ Documentation License”.
 \input{sc__hypervisor__lp_8h}
 \input{sc__hypervisor__monitoring_8h}
 \input{sc__hypervisor__policy_8h}
+\input{starpurm_8h}
 
 \chapter{Deprecated List}
 \label{deprecated}