From: suter Date: Wed, 20 Jun 2012 10:30:17 +0000 (+0200) Subject: Solve white space conflicts X-Git-Tag: v3_8~563 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c7b463c9c17665403d001fc59cb649551e93d950?hp=c2405c1a902dc830946d96db7e46d9c1d6d489bc Solve white space conflicts Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot//simgrid/simgrid Conflicts: include/simdag/datatypes.h include/simdag/simdag.h src/simdag/sd_task.c --- diff --git a/.gitignore b/.gitignore index 8edd0e3a78..21923512cd 100644 --- a/.gitignore +++ b/.gitignore @@ -93,11 +93,12 @@ doc/footer.html *.doc.toc doc/latex/ doc/html -doc/index-API.doc +doc/user_guide/html +doc/user_guide/latex +doc/ref_guide/html +doc/ref_guide/latex doc/index.php -doc/logcategories.doc doc/simgrid.tag -doc/simgrid_modules.map doc/publis_core.bib doc/publis_core_bib.html doc/publis_count.html @@ -105,6 +106,19 @@ doc/publis_extern.bib doc/publis_extern_bib.html doc/publis_intra.bib doc/publis_intra_bib.html +doc/ref_guide/doxygen/RefGuideDoxyfile +doc/user_guide/doxygen/UserGuideDoxyfile +doc/ref_guide/doxygen/logcategories.doc +doc/user_guide/doxygen/logcategories.doc +doc/ref_guide/doxygen/simgrid_modules.map +doc/user_guide/doxygen/simgrid_modules.map +doc/index-API.doc +doc/ref_guide/doxygen/index-API.doc +doc/user_guide/doxygen/index-API.doc +doc/simgrid_modules.map +doc/logcategories.doc +doc/shared/doxygen/simgridrefguide.tag +doc/shared/doxygen/simgriduserguide.tag ################################################ ### Specific of project diff --git a/buildtools/Cmake/DefinePackages.cmake b/buildtools/Cmake/DefinePackages.cmake index f09be9309f..a96c0092e6 100644 --- a/buildtools/Cmake/DefinePackages.cmake +++ b/buildtools/Cmake/DefinePackages.cmake @@ -567,83 +567,57 @@ elseif(${HAVE_LUA}) ${LUA_SRC} ) endif(${HAVE_LUA}) - + set(DOC_SOURCES - doc/install.doc - doc/bindings.doc - doc/options.doc - doc/use.doc - doc/tracing.doc - doc/pls.doc - doc/gtut-howto-design.doc - doc/gtut-howto.doc - doc/gtut-introduction.doc - doc/gtut-main.doc - doc/gtut-tour-00-install.doc - doc/gtut-tour-01-bones.doc - doc/gtut-tour-02-simple.doc - doc/gtut-tour-03-args.doc - doc/gtut-tour-04-callback.doc - doc/gtut-tour-05-globals.doc - doc/gtut-tour-06-logs.doc - doc/gtut-tour-07-timers.doc - doc/gtut-tour-08-exceptions.doc - doc/gtut-tour-09-simpledata.doc - doc/gtut-tour-10-rpc.doc - doc/gtut-tour-11-explicitwait.doc - doc/gtut-tour-12-staticstruct.doc - doc/gtut-tour-13-pointers.doc - doc/gtut-tour-14-dynar.doc - doc/gtut-tour-15-manualdatadef.doc - doc/gtut-tour-16-exchangecb.doc - doc/gtut-tour.doc - doc/gtut-tour-recap-messages.doc - - #doc/index-API.doc doc/index.doc - ${CMAKE_HOME_DIRECTORY}/doc/logcategories.doc - doc/module-amok.doc - doc/module-gras.doc - doc/module-msg.doc - doc/module-sd.doc - doc/modules.doc - doc/module-surf.doc - doc/module-xbt.doc + doc/Doxyfile.in +) + +set(USER_GUIDE_SOURCES + doc/user_guide/doxygen/install.doc + doc/user_guide/doxygen/bindings.doc + doc/user_guide/doxygen/options.doc + doc/user_guide/doxygen/use.doc + doc/user_guide/doxygen/tracing.doc + doc/user_guide/doxygen/pls.doc + doc/user_guide/doxygen/index.doc + ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/logcategories.doc + doc/user_guide/doxygen/modules.doc - doc/gtut-files/01-bones.c - doc/gtut-files/01-bones.output - doc/gtut-files/02-simple.c - doc/gtut-files/02-simple.output - doc/gtut-files/03-args.c - doc/gtut-files/03-args.output - doc/gtut-files/03-args.xml - doc/gtut-files/04-callback.c - doc/gtut-files/04-callback.output - doc/gtut-files/05-globals.c - doc/gtut-files/05-globals.output - doc/gtut-files/06-logs.c - doc/gtut-files/06-logs.output - doc/gtut-files/06-logs.output.error - doc/gtut-files/06-logs.output.fmt - doc/gtut-files/06-logs.output.fmt-bt - doc/gtut-files/06-logs.output.verbose - doc/gtut-files/07-timers.c - doc/gtut-files/07-timers.output - doc/gtut-files/08-exceptions.c - doc/gtut-files/08-exceptions.output - doc/gtut-files/09-datatype-dump.c - doc/gtut-files/09-simpledata.c - doc/gtut-files/09-simpledata.output - doc/gtut-files/10-rpc.c - doc/gtut-files/10-rpc.output - doc/gtut-files/11-explicitwait.c - doc/gtut-files/11-explicitwait.output - doc/gtut-files/11-explicitwait.xml - doc/gtut-files/gtut-platform-3nodes.xml - doc/gtut-files/gtut-platform.xml - doc/gtut-files/Makefile - doc/gtut-files/README - doc/gtut-files/test.xml + doc/user_guide/doxygen/gtut-files/01-bones.c + doc/user_guide/doxygen/gtut-files/01-bones.output + doc/user_guide/doxygen/gtut-files/02-simple.c + doc/user_guide/doxygen/gtut-files/02-simple.output + doc/user_guide/doxygen/gtut-files/03-args.c + doc/user_guide/doxygen/gtut-files/03-args.output + doc/user_guide/doxygen/gtut-files/03-args.xml + doc/user_guide/doxygen/gtut-files/04-callback.c + doc/user_guide/doxygen/gtut-files/04-callback.output + doc/user_guide/doxygen/gtut-files/05-globals.c + doc/user_guide/doxygen/gtut-files/05-globals.output + doc/user_guide/doxygen/gtut-files/06-logs.c + doc/user_guide/doxygen/gtut-files/06-logs.output + doc/user_guide/doxygen/gtut-files/06-logs.output.error + doc/user_guide/doxygen/gtut-files/06-logs.output.fmt + doc/user_guide/doxygen/gtut-files/06-logs.output.fmt-bt + doc/user_guide/doxygen/gtut-files/06-logs.output.verbose + doc/user_guide/doxygen/gtut-files/07-timers.c + doc/user_guide/doxygen/gtut-files/07-timers.output + doc/user_guide/doxygen/gtut-files/08-exceptions.c + doc/user_guide/doxygen/gtut-files/08-exceptions.output + doc/user_guide/doxygen/gtut-files/09-datatype-dump.c + doc/user_guide/doxygen/gtut-files/09-simpledata.c + doc/user_guide/doxygen/gtut-files/09-simpledata.output + doc/user_guide/doxygen/gtut-files/10-rpc.c + doc/user_guide/doxygen/gtut-files/10-rpc.output + doc/user_guide/doxygen/gtut-files/11-explicitwait.c + doc/user_guide/doxygen/gtut-files/11-explicitwait.output + doc/user_guide/doxygen/gtut-files/11-explicitwait.xml + doc/user_guide/doxygen/gtut-files/gtut-platform-3nodes.xml + doc/user_guide/doxygen/gtut-files/gtut-platform.xml + doc/user_guide/doxygen/gtut-files/Makefile + doc/user_guide/doxygen/gtut-files/README + doc/user_guide/doxygen/gtut-files/test.xml doc/webcruft/awstats_logo3.png doc/webcruft/Paje_MSG_screenshot.jpg @@ -654,24 +628,56 @@ set(DOC_SOURCES doc/triva-graph_configuration.png doc/triva-graph_visualization.png doc/simgrid.css + + doc/shared/doxygen/gras-examples.doc + doc/shared/doxygen/msg-examples.doc - doc/Doxyfile.in - doc/footer.html.in + doc/user_guide/doxygen/UserGuideDoxyfile.in - tools/doxygen/doxygen_postprocesser.pl tools/doxygen/index_create.pl tools/doxygen/toc_create.pl - tools/doxygen/bibtex2html_wrapper.pl tools/doxygen/fig2dev_postprocessor.pl tools/doxygen/xbt_log_extract_hierarchy.pl ) +set(REF_GUIDE_SOURCES + ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/doxygen/logcategories.doc + doc/ref_guide/doxygen/module-amok.doc + doc/ref_guide/doxygen/module-gras.doc + doc/ref_guide/doxygen/module-msg.doc + doc/ref_guide/doxygen/module-sd.doc + doc/ref_guide/doxygen/modules.doc + doc/ref_guide/doxygen/module-surf.doc + doc/ref_guide/doxygen/module-xbt.doc + doc/ref_guide/doxygen/module-simix.doc + doc/ref_guide/doxygen/index-API.doc + doc/ref_guide/doxygen/main.doc + + + doc/webcruft/awstats_logo3.png + doc/webcruft/Paje_MSG_screenshot.jpg + doc/webcruft/Paje_MSG_screenshot_thn.jpg + doc/webcruft/poster_thumbnail.png + doc/webcruft/simgrid_logo_2011.png + doc/webcruft/simgrid_logo_small.png + doc/triva-graph_configuration.png + doc/triva-graph_visualization.png + doc/simgrid.css + + doc/ref_guide/doxygen/RefGuideDoxyfile.in + + tools/doxygen/index_create.pl + tools/doxygen/toc_create.pl + tools/doxygen/fig2dev_postprocessor.pl + tools/doxygen/xbt_log_extract_hierarchy.pl +) + set(DOC_FIGS - ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules.fig - ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules2.fig - ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_test.fig - ${CMAKE_HOME_DIRECTORY}/doc/fig/amok_bw_sat.fig - ${CMAKE_HOME_DIRECTORY}/doc/fig/gras_comm.fig + ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules.fig + ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules2.fig + ${CMAKE_HOME_DIRECTORY}/doc/user_guide/fig/amok_bw_test.fig + ${CMAKE_HOME_DIRECTORY}/doc/user_guide/fig/amok_bw_sat.fig + ${CMAKE_HOME_DIRECTORY}/doc/user_guide/fig/gras_comm.fig ) set(bin_files @@ -799,10 +805,10 @@ buildtools/Cmake/Scripts/generate_memcheck_tests.pl buildtools/Cmake/MaintainerMode.cmake buildtools/Cmake/Supernovae.cmake buildtools/Cmake/Pipol.cmake -buildtools/Cmake/GenerateDoc.cmake +buildtools/Cmake/GenerateUserGuide.cmake +buildtools/Cmake/GenerateRefGuide.cmake buildtools/Cmake/test_prog/prog_getline.c buildtools/Cmake/test_prog/prog_mutex_timedlock.c -buildtools/Cmake/test_prog/prog_gtnets.cpp buildtools/Cmake/test_prog/prog_GRAS_ARCH.c buildtools/Cmake/test_prog/prog_printf_null.c buildtools/Cmake/test_prog/prog_sem_timedwait.c diff --git a/buildtools/Cmake/Distrib.cmake b/buildtools/Cmake/Distrib.cmake index 34d620b302..b4892041d8 100644 --- a/buildtools/Cmake/Distrib.cmake +++ b/buildtools/Cmake/Distrib.cmake @@ -3,11 +3,26 @@ ######################################### # doc -if(NOT EXISTS ${CMAKE_HOME_DIRECTORY}/doc/html/) - file(MAKE_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/html/) -endif(NOT EXISTS ${CMAKE_HOME_DIRECTORY}/doc/html/) -install(DIRECTORY "${CMAKE_HOME_DIRECTORY}/doc/html/" - DESTINATION "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/doc/simgrid/html/" +if(NOT EXISTS ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html/) + file(MAKE_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html/) +endif(NOT EXISTS ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html/) + +if(NOT EXISTS ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/) + file(MAKE_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/) +endif(NOT EXISTS ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/) + + +install(DIRECTORY "${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html/" + DESTINATION "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/doc/simgrid/ref_guide/html/" + PATTERN ".svn" EXCLUDE + PATTERN ".git" EXCLUDE + PATTERN "*.o" EXCLUDE + PATTERN "*~" EXCLUDE +) + + +install(DIRECTORY "${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/" + DESTINATION "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/doc/simgrid/user_guide/html/" PATTERN ".svn" EXCLUDE PATTERN ".git" EXCLUDE PATTERN "*.o" EXCLUDE @@ -226,8 +241,10 @@ add_custom_target(dist-dir COMMAND ${CMAKE_COMMAND} -E remove_directory ${PROJECT_NAME}-${release_version}/ COMMAND ${CMAKE_COMMAND} -E remove ${PROJECT_NAME}-${release_version}.tar.gz COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_NAME}-${release_version} - COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_NAME}-${release_version}/doc/html/ - COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_HOME_DIRECTORY}/doc/html/ ${PROJECT_NAME}-${release_version}/doc/html/ + COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_NAME}-${release_version}/doc/user_guide/html/ + COMMAND ${CMAKE_COMMAND} -E make_directory ${PROJECT_NAME}-${release_version}/doc/ref_guide/html/ + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/ ${PROJECT_NAME}-${release_version}/doc/user_guide/html/ + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html/ ${PROJECT_NAME}-${release_version}/doc/ref_guide/html/ ) add_dependencies(dist-dir simgrid_documentation) add_dependencies(dist-dir maintainer_files) @@ -376,23 +393,6 @@ WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" ### Fill in the "make sync-gforge" target ### ############################################# -add_custom_target(sync-gforge-doc -COMMAND chmod g+rw -R doc/ -COMMAND chmod a+rX -R doc/ -COMMAND ssh scm.gforge.inria.fr mkdir /home/groups/simgrid/htdocs/simgrid/${release_version}/ || true -COMMAND rsync --verbose --cvs-exclude --compress --delete --delete-excluded --rsh=ssh --ignore-times --recursive --links --perms --times --omit-dir-times -doc/html/ scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/doc/ || true -COMMAND scp doc/html/simgrid_modules2.png doc/html/simgrid_modules.png doc/webcruft/simgrid_logo_2011.png doc/webcruft/simgrid_logo_small.png scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/ -WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" -) -add_dependencies(sync-gforge-doc simgrid_documentation) - -add_custom_target(sync-gforge-dtd -COMMAND scp src/surf/simgrid.dtd scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/simgrid.dtd -COMMAND scp src/surf/simgrid.dtd scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid.dtd -WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" -) - #PIPOL add_custom_target(sync-pipol COMMAND scp -r Experimental_bindings.sh Experimental.sh MemCheck.sh pre-simgrid.sh navarro@pipol.inria.fr:~/ diff --git a/buildtools/Cmake/GenerateDoc.cmake b/buildtools/Cmake/GenerateDoc.cmake index 21f403f6f9..6856a07c7d 100644 --- a/buildtools/Cmake/GenerateDoc.cmake +++ b/buildtools/Cmake/GenerateDoc.cmake @@ -1,297 +1,54 @@ -#### Generate the html documentation +#### Generate the whole html documentation -if(BIBTEX2HTML) - set(BIBTEX2HTML_PATH ${BIBTEX2HTML}) -else(BIBTEX2HTML) - find_path(BIBTEX2HTML_PATH NAMES bibtex2html PATHS NO_DEFAULT_PATHS) -endif(BIBTEX2HTML) +find_path(DOXYGEN_PATH NAMES doxygen PATHS NO_DEFAULT_PATHS) +find_path(FIG2DEV_PATH NAMES fig2dev PATHS NO_DEFAULT_PATHS) -find_path(FIG2DEV_PATH NAMES fig2dev PATHS NO_DEFAULT_PATHS) -find_path(DOXYGEN_PATH NAMES doxygen PATHS NO_DEFAULT_PATHS) +if(DOXYGEN_PATH) -### Check whether the bibtex2html that we found is the one that Arnaud requires -exec_program("${BIBTEX2HTML_PATH}/bibtex2html -version" OUTPUT_VARIABLE OUTPUT_BIBTEX2HTML_VERSION) -STRING(REPLACE "[-bibtex]" "" OUTPUT_BIBTEX2HTML_VERSION_2 ${OUTPUT_BIBTEX2HTML_VERSION}) + execute_process(COMMAND ${DOXYGEN_PATH}/doxygen --version OUTPUT_VARIABLE DOXYGEN_VERSION ) + string(REGEX MATCH "^[0-9]" DOXYGEN_MAJOR_VERSION "${DOXYGEN_VERSION}") + string(REGEX MATCH "^[0-9].[0-9]" DOXYGEN_MINOR_VERSION "${DOXYGEN_VERSION}") + string(REGEX MATCH "^[0-9].[0-9].[0-9]" DOXYGEN_PATCH_VERSION "${DOXYGEN_VERSION}") + string(REGEX REPLACE "^${DOXYGEN_MINOR_VERSION}." "" DOXYGEN_PATCH_VERSION "${DOXYGEN_PATCH_VERSION}") + string(REGEX REPLACE "^${DOXYGEN_MAJOR_VERSION}." "" DOXYGEN_MINOR_VERSION "${DOXYGEN_MINOR_VERSION}") + message(STATUS "Doxygen version : ${DOXYGEN_MAJOR_VERSION}.${DOXYGEN_MINOR_VERSION}.${DOXYGEN_PATCH_VERSION}") -file(GLOB_RECURSE source_doxygen - "${CMAKE_HOME_DIRECTORY}/tools/gras/*.[chl]" - "${CMAKE_HOME_DIRECTORY}/src/*.[chl]" - "${CMAKE_HOME_DIRECTORY}/include/*.[chl]" -) - -if(${OUTPUT_BIBTEX2HTML_VERSION_2} STREQUAL ${OUTPUT_BIBTEX2HTML_VERSION}) # wrong version - SET(GOOD_BIBTEX2HTML_VERSION 0) -else(${OUTPUT_BIBTEX2HTML_VERSION_2} STREQUAL ${OUTPUT_BIBTEX2HTML_VERSION}) # good version - SET(GOOD_BIBTEX2HTML_VERSION 1) -endif(${OUTPUT_BIBTEX2HTML_VERSION_2} STREQUAL ${OUTPUT_BIBTEX2HTML_VERSION}) - -if(DOXYGEN_PATH AND FIG2DEV_PATH AND BIBTEX2HTML_PATH AND GOOD_BIBTEX2HTML_VERSION) - - #DOC_SOURCE=doc/*.doc, defined in DefinePackage - set(DOCSSOURCES "${source_doxygen}\n${DOC_SOURCE}") - string(REPLACE "\n" ";" DOCSSOURCES ${DOCSSOURCES}) - - - set(DOC_PNGS - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_small.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/poster_thumbnail.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_01.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_02.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_03.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_04.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_05.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_06.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_001.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_002.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_003.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_004.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_005.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_006.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_007.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_008.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_009.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_010.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_011.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_012.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_013.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_014.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_015.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_016.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_017.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_018.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_019.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_020.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_021.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_022.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_023.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_024.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_025.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_026.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_027.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_028.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_029.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101_030.png - ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid-101.pdf - ) - - configure_file(${CMAKE_HOME_DIRECTORY}/doc/Doxyfile.in ${CMAKE_HOME_DIRECTORY}/doc/Doxyfile @ONLY) - configure_file(${CMAKE_HOME_DIRECTORY}/doc/footer.html.in ${CMAKE_HOME_DIRECTORY}/doc/footer.html @ONLY) - - ADD_CUSTOM_TARGET(simgrid_documentation - COMMENT "Generating the SimGrid documentation..." - DEPENDS ${DOC_SOURCES} ${DOC_FIGS} ${source_doxygen} - COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_HOME_DIRECTORY}/doc/html - COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_HOME_DIRECTORY}/doc/html - COMMAND ${FIG2DEV_PATH}/fig2dev -Lmap ${CMAKE_HOME_DIRECTORY}/doc/fig/simgrid_modules.fig | perl -pe 's/imagemap/simgrid_modules/g'| perl -pe 's/ ${CMAKE_HOME_DIRECTORY}/doc/simgrid_modules.map - WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc - ) - - ADD_CUSTOM_COMMAND( - OUTPUT ${CMAKE_HOME_DIRECTORY}/doc/logcategories.doc - DEPENDS ${source_doxygen} - COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_HOME_DIRECTORY}/doc/logcategories.doc - COMMAND ${CMAKE_HOME_DIRECTORY}/tools/doxygen/xbt_log_extract_hierarchy.pl > ${CMAKE_HOME_DIRECTORY}/doc/logcategories.doc - WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY} - ) - - foreach(file ${DOC_FIGS}) - string(REPLACE ".fig" ".png" tmp_file ${file}) - string(REPLACE "${CMAKE_HOME_DIRECTORY}/doc/fig/" "${CMAKE_HOME_DIRECTORY}/doc/html/" tmp_file ${tmp_file}) - ADD_CUSTOM_COMMAND(TARGET simgrid_documentation - COMMAND ${FIG2DEV_PATH}/fig2dev -Lpng -S 4 ${file} ${tmp_file} - ) - endforeach(file ${DOC_FIGS}) - - foreach(file ${DOC_PNGS}) - ADD_CUSTOM_COMMAND(TARGET simgrid_documentation - COMMAND ${CMAKE_COMMAND} -E copy ${file} ${CMAKE_HOME_DIRECTORY}/doc/html/ - ) - endforeach(file ${DOC_PNGS}) - - ADD_CUSTOM_COMMAND(TARGET simgrid_documentation - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot_thn.jpg ${CMAKE_HOME_DIRECTORY}/doc/html/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot.jpg ${CMAKE_HOME_DIRECTORY}/doc/html/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/triva-graph_configuration.png ${CMAKE_HOME_DIRECTORY}/doc/html/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/triva-graph_visualization.png ${CMAKE_HOME_DIRECTORY}/doc/html/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/AS_hierarchy.png ${CMAKE_HOME_DIRECTORY}/doc/html/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/simgrid.css ${CMAKE_HOME_DIRECTORY}/doc/html/ - ) - - ADD_CUSTOM_COMMAND(TARGET simgrid_documentation - COMMAND ${CMAKE_COMMAND} -E echo "XX First Doxygen pass" - COMMAND ${DOXYGEN_PATH}/doxygen Doxyfile - COMMAND ${CMAKE_HOME_DIRECTORY}/tools/doxygen/index_create.pl simgrid.tag index-API.doc - COMMAND ${CMAKE_HOME_DIRECTORY}/tools/doxygen/toc_create.pl pls.doc index.doc FAQ.doc gtut-introduction.doc install.doc bindings.doc options.doc tracing.doc platform.doc - - COMMAND ${CMAKE_COMMAND} -E echo "XX Second Doxygen pass" - COMMAND ${DOXYGEN_PATH}/doxygen Doxyfile - - COMMAND ${CMAKE_COMMAND} -E echo "XX Post-processing Doxygen result" - COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_HOME_DIRECTORY}/doc/html/dir* - COMMAND ${CMAKE_HOME_DIRECTORY}/tools/doxygen/doxygen_postprocesser.pl - - COMMAND ${CMAKE_COMMAND} -E echo "XX Create shortcuts pages" - COMMAND ${CMAKE_COMMAND} -E echo \"\" > ${CMAKE_HOME_DIRECTORY}/doc/html/gras.html - COMMAND ${CMAKE_COMMAND} -E echo \"


Grid Reality And Simulation.

\" >> ${CMAKE_HOME_DIRECTORY}/doc/html/gras.html - - COMMAND ${CMAKE_COMMAND} -E echo \"\" > ${CMAKE_HOME_DIRECTORY}/doc/html/amok.html - COMMAND ${CMAKE_COMMAND} -E echo \"


Advanced Metacomputing Overlay Kit.

\" >> ${CMAKE_HOME_DIRECTORY}/doc/html/amok.html - - COMMAND ${CMAKE_COMMAND} -E echo \"\" > ${CMAKE_HOME_DIRECTORY}/doc/html/msg.html - COMMAND ${CMAKE_COMMAND} -E echo \"


Meta SimGrid.

\" >> ${CMAKE_HOME_DIRECTORY}/doc/html/msg.html - - COMMAND ${CMAKE_COMMAND} -E echo \"\" > ${CMAKE_HOME_DIRECTORY}/doc/html/simdag.html - COMMAND ${CMAKE_COMMAND} -E echo \"


DAG Simulator.

\" >> ${CMAKE_HOME_DIRECTORY}/doc/html/simdag.html - WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/ - ) - -else(DOXYGEN_PATH AND FIG2DEV_PATH AND BIBTEX2HTML_PATH AND GOOD_BIBTEX2HTML_VERSION) - - ADD_CUSTOM_TARGET(simgrid_documentation - COMMENT "Generating the SimGrid documentation..." - ) - - if(NOT GOOD_BIBTEX2HTML_VERSION) # wrong version - ADD_CUSTOM_COMMAND(TARGET simgrid_documentation - COMMAND ${CMAKE_COMMAND} -E echo "This is not the good bibtex2html program !!!" - COMMAND ${CMAKE_COMMAND} -E echo "You can download it from:" - COMMAND ${CMAKE_COMMAND} -E echo " ftp://ftp-sop.inria.fr/epidaure/Softs/bibtex2html/bibtex2html-1.02.tar.gz" - COMMAND ${CMAKE_COMMAND} -E echo "There is also an unofficial Debian/Ubuntu package, see:" - COMMAND ${CMAKE_COMMAND} -E echo " http://www.loria.fr/~lnussbau/bibtex2html/README" - ) - endif(NOT GOOD_BIBTEX2HTML_VERSION) - - ADD_CUSTOM_COMMAND(TARGET simgrid_documentation - COMMAND ${CMAKE_COMMAND} -E echo "DOXYGEN_PATH = ${DOXYGEN_PATH}" - COMMAND ${CMAKE_COMMAND} -E echo "FIG2DEV_PATH = ${FIG2DEV_PATH}" - COMMAND ${CMAKE_COMMAND} -E echo "BIBTEX2HTML_PATH = ${BIBTEX2HTML_PATH}" - COMMAND ${CMAKE_COMMAND} -E echo "IN ORDER TO GENERATE THE DOCUMENTATION YOU NEED ALL TOOLS !!!" - COMMAND ${CMAKE_COMMAND} -E echo "FAIL TO MAKE SIMGRID DOCUMENTATION see previous messages for details ..." - COMMAND false - ) - - -endif(DOXYGEN_PATH AND FIG2DEV_PATH AND BIBTEX2HTML_PATH AND GOOD_BIBTEX2HTML_VERSION) - -##############################################################################" + include(${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/GenerateUserGuide.cmake) + include(${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/GenerateRefGuide.cmake) -message(STATUS "Check individual TOCs") -set(LISTE_GTUT - doc/gtut-tour-00-install.doc - doc/gtut-tour-01-bones.doc - doc/gtut-tour-02-simple.doc - doc/gtut-tour-03-args.doc - doc/gtut-tour-04-callback.doc - doc/gtut-tour-05-globals.doc - doc/gtut-tour-06-logs.doc - doc/gtut-tour-07-timers.doc - doc/gtut-tour-08-exceptions.doc - doc/gtut-tour-09-simpledata.doc - doc/gtut-tour-10-rpc.doc - doc/gtut-tour-11-explicitwait.doc - doc/gtut-tour-recap-messages.doc - doc/gtut-tour-12-staticstruct.doc - doc/gtut-tour-13-pointers.doc - doc/gtut-tour-14-dynar.doc - doc/gtut-tour-15-manualdatadef.doc - doc/gtut-tour-16-exchangecb.doc -) - -foreach(file_name ${LISTE_GTUT}) - file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc) - file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc) - - file(READ "${file_name}" file_content) - string(REGEX MATCH "Table of Contents.*
" valeur_line "${file_content}") - string(REPLACE "\n" ";" valeur_line "${valeur_line}") - string(REPLACE "\n" ";" file_content "${file_content}") - - file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc "\n") # make sure it exists - foreach(line ${file_content}) - string(REGEX MATCH "[\\]s?u?b?s?u?b?section.*" line2 "${line}") - string(REGEX MATCH ".*_toc.*" line3 "${line}") - if(line2 AND NOT line3) - string(REPLACE "\\section " "" line2 ${line2}) - string(REPLACE "\\subsection " "subsection" line2 ${line2}) - string(REPLACE "\\subsubsection " "subsubsection" line2 ${line2}) - string(REGEX REPLACE " .*" "" line2 ${line2}) - set(line2 " - \\ref ${line2}") - string(REPLACE " - \\ref subsection" " - \\ref " line2 ${line2}) - string(REPLACE " - \\ref subsubsection" " - \\ref " line2 ${line2}) - file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc "${line2}\n") - endif(line2 AND NOT line3) - endforeach(line ${file_content}) - - file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc "\n") # make sure it exists - foreach(line ${valeur_line}) - string(REGEX MATCH ".*ref.*" line_ok ${line}) - if(line_ok) - file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc "${line_ok}\n") - endif(line_ok) - endforeach(line ${valeur_line}) - - exec_program("${CMAKE_COMMAND} -E compare_files ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc" OUTPUT_VARIABLE compare_files) - if(compare_files) - message(STATUS "Wrong toc for ${file_name}. Should be:") - file(READ "${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc" file_content) - message("${file_content}") - exec_program("diff -u ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc") - endif(compare_files) -endforeach(file_name ${LISTE_GTUT}) - -file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc) -file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc) - -message(STATUS "Check main TOC") - -foreach(file_name ${LISTE_GTUT}) - file(READ "${file_name}" file_content) - string(REGEX MATCH "Table of Contents.*
" valeur_line "${file_content}") - string(REPLACE "\n" ";" valeur_line "${valeur_line}") - string(REPLACE "\n" ";" file_content "${file_content}") - - foreach(line ${file_content}) - string(REGEX MATCH ".*@page.*" line2 "${line}") - if(line2) - string(REPLACE "@page " "" line2 "${line2}") - string(REGEX REPLACE " .*" "" line2 "${line2}") - set(line2 " - \\ref ${line2}") - file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc "${line2}\n") - endif(line2) - endforeach(line ${file_content}) - - foreach(line ${valeur_line}) - string(REGEX MATCH ".*toc.*" line1 "${line}") - string(REGEX MATCH ".*
.*" line2 "${line}") - string(REGEX MATCH "^[ ]*$" line3 "${line}") - string(REGEX MATCH "Table of Contents" line4 "${line}") - if(NOT line1 AND NOT line2 AND NOT line3 AND NOT line4) - file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc " ${line}\n") - endif(NOT line1 AND NOT line2 AND NOT line3 AND NOT line4) - endforeach(line ${valeur_line}) -endforeach(file_name ${LISTE_GTUT}) - -file(READ "${CMAKE_HOME_DIRECTORY}/doc/gtut-tour.doc" file_content) -string(REPLACE "\n" ";" file_content "${file_content}") -foreach(line ${file_content}) - string(REGEX MATCH "^[ ]+.*\\ref" line1 "${line}") - if(line1) - file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc "${line}\n") - endif(line1) -endforeach(line ${file_content}) - -exec_program("${CMAKE_COMMAND} -E compare_files ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc" OUTPUT_VARIABLE compare_files) -if(compare_files) - message(STATUS "Wrong toc for gtut-tour.doc Right one is in tmp.realtoc") - exec_program("diff -u ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc") -else(compare_files) - file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/tmp.realtoc) -endif(compare_files) + set(DOC_PNGS + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011_small.png + ) -file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/tmp.curtoc) - -ADD_CUSTOM_TARGET(pdf + configure_file(${CMAKE_HOME_DIRECTORY}/doc/Doxyfile.in ${CMAKE_HOME_DIRECTORY}/doc/Doxyfile @ONLY) + + ADD_CUSTOM_TARGET(simgrid_documentation + COMMENT "Generating the SimGrid documentation..." + DEPENDS ${DOC_SOURCES} ${DOC_FIGS} ${source_doxygen} + COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_HOME_DIRECTORY}/doc/html + COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_HOME_DIRECTORY}/doc/html + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc + ) + + foreach(file ${DOC_PNGS}) + ADD_CUSTOM_COMMAND( + TARGET simgrid_documentation + COMMAND ${CMAKE_COMMAND} -E copy ${file} ${CMAKE_HOME_DIRECTORY}/doc/html/ + ) + endforeach(file ${DOC_PNGS}) + + ADD_CUSTOM_COMMAND(TARGET simgrid_documentation + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/simgrid.css ${CMAKE_HOME_DIRECTORY}/doc/html/ + ) + + ADD_CUSTOM_COMMAND(TARGET simgrid_documentation + COMMAND ${CMAKE_COMMAND} -E echo "XX Doxygen pass" + COMMAND ${DOXYGEN_PATH}/doxygen Doxyfile + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc + ) + + ADD_CUSTOM_TARGET(pdf COMMAND ${CMAKE_COMMAND} -E echo "XX First pass simgrid_documentation.pdf" COMMAND make clean COMMAND make pdf || true @@ -300,7 +57,51 @@ ADD_CUSTOM_TARGET(pdf COMMAND make pdf || true COMMAND ${CMAKE_COMMAND} -E echo "XX Write Simgrid_documentation.pdf" COMMAND ${CMAKE_COMMAND} -E rename ${CMAKE_HOME_DIRECTORY}/doc/latex/refman.pdf ${CMAKE_HOME_DIRECTORY}/doc/latex/simgrid_documentation.pdf - WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/latex/ + ) + add_dependencies(pdf simgrid_documentation) + + ADD_CUSTOM_TARGET(error_doxygen + COMMAND ${CMAKE_COMMAND} -E echo "Doxygen must be at least version 1.8 to generate documentation" + COMMAND false + ) + + if(DOXYGEN_MAJOR_VERSION STRLESS "2" AND DOXYGEN_MINOR_VERSION STRLESS "8") + add_dependencies(simgrid_documentation error_doxygen) + else(DOXYGEN_MAJOR_VERSION STRLESS "2" AND DOXYGEN_MINOR_VERSION STRLESS "8") + add_dependencies(simgrid_documentation ref_guide) + add_dependencies(simgrid_documentation user_guide) + endif(DOXYGEN_MAJOR_VERSION STRLESS "2" AND DOXYGEN_MINOR_VERSION STRLESS "8") + +endif(DOXYGEN_PATH) + +############################################# +### Fill in the "make sync-gforge" target ### +############################################# + +### TODO: LBO: CHECK IF CORRECT +add_custom_target(sync-gforge-doc +COMMAND chmod g+rw -R doc/ +COMMAND chmod a+rX -R doc/ +COMMAND ssh scm.gforge.inria.fr mkdir /home/groups/simgrid/htdocs/simgrid/${release_version}/ || true +COMMAND ssh scm.gforge.inria.fr mkdir /home/groups/simgrid/htdocs/simgrid/${release_version}/user_guide/ || true +COMMAND ssh scm.gforge.inria.fr mkdir /home/groups/simgrid/htdocs/simgrid/${release_version}/ref_guide/ || true +COMMAND ssh scm.gforge.inria.fr mkdir /home/groups/simgrid/htdocs/simgrid/${release_version}/user_guide/html/ || true +COMMAND ssh scm.gforge.inria.fr mkdir /home/groups/simgrid/htdocs/simgrid/${release_version}/ref_guide/html/ || true +COMMAND rsync --verbose --cvs-exclude --compress --delete --delete-excluded --rsh=ssh --ignore-times --recursive --links --perms --times --omit-dir-times +doc/html/ scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/doc/ || true +COMMAND rsync --verbose --cvs-exclude --compress --delete --delete-excluded --rsh=ssh --ignore-times --recursive --links --perms --times --omit-dir-times +doc/user_guide/html/ scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/user_guide/html/ || true +COMMAND rsync --verbose --cvs-exclude --compress --delete --delete-excluded --rsh=ssh --ignore-times --recursive --links --perms --times --omit-dir-times +doc/ref_guide/html/ scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/ref_guide/html || true +COMMAND scp doc/user_guide/html/simgrid_modules2.png doc/user_guide/html/simgrid_modules.png doc/webcruft/simgrid_logo_2011.png +doc/webcruft/simgrid_logo_2011_small.png scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/ +WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" +) +add_dependencies(sync-gforge-doc simgrid_documentation) + +add_custom_target(sync-gforge-dtd +COMMAND scp src/surf/simgrid.dtd scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/simgrid.dtd +COMMAND scp src/surf/simgrid.dtd scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid.dtd +WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" ) -add_dependencies(pdf simgrid_documentation) diff --git a/buildtools/Cmake/GenerateDocWin.cmake b/buildtools/Cmake/GenerateDocWin.cmake index c605e937e7..b1fa93ce57 100644 --- a/buildtools/Cmake/GenerateDocWin.cmake +++ b/buildtools/Cmake/GenerateDocWin.cmake @@ -1,23 +1,23 @@ #### Generate the html documentation -find_path(WGET_PATH NAMES wget.exe PATHS NO_DEFAULT_PATHS) +find_path(WGET_PATH NAMES wget.exe PATHS NO_DEFAULT_PATHS) find_path(NSIS_PATH NAMES makensis.exe PATHS NO_DEFAULT_PATHS) message(STATUS "wget: ${WGET_PATH}") message(STATUS "nsis: ${NSIS_PATH}") if(WGET_PATH) - ADD_CUSTOM_TARGET(simgrid_documentation - COMMENT "Downloading the SimGrid documentation..." - COMMAND ${WGET_PATH}/wget.exe -r -np -nH -nd http://simgrid.gforge.inria.fr/simgrid/${release_version}/doc/ - WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/html - ) + ADD_CUSTOM_TARGET(simgrid_documentation + COMMENT "Downloading the SimGrid documentation..." + COMMAND ${WGET_PATH}/wget.exe -r -np -nH -nd http://simgrid.gforge.inria.fr/simgrid/${release_version}/doc/ + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/html + ) endif(WGET_PATH) if(NSIS_PATH) ADD_CUSTOM_TARGET(nsis - COMMENT "Generating the SimGrid installor for Windows..." - DEPENDS simgrid simgrid gras graphicator tesh simgrid-colorizer simgrid_update_xml - COMMAND ${NSIS_PATH}/makensis.exe simgrid.nsi - WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/ + COMMENT "Generating the SimGrid installor for Windows..." + DEPENDS simgrid simgrid gras graphicator tesh simgrid-colorizer simgrid_update_xml + COMMAND ${NSIS_PATH}/makensis.exe simgrid.nsi + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/ ) endif(NSIS_PATH) \ No newline at end of file diff --git a/buildtools/Cmake/GenerateRefGuide.cmake b/buildtools/Cmake/GenerateRefGuide.cmake new file mode 100644 index 0000000000..4005c0bc17 --- /dev/null +++ b/buildtools/Cmake/GenerateRefGuide.cmake @@ -0,0 +1,102 @@ +#### Generate the html documentation + +file(GLOB_RECURSE source_doxygen + "${CMAKE_HOME_DIRECTORY}/tools/gras/*.[chl]" + "${CMAKE_HOME_DIRECTORY}/src/*.[chl]" + "${CMAKE_HOME_DIRECTORY}/include/*.[chl]" +) + +if(FIG2DEV_PATH) + + set(REFDOCSSOURCES "${source_doxygen}\n${REF_GUIDE_SOURCES}") + string(REPLACE "\n" ";" REFDOCSSOURCES ${REFDOCSSOURCES}) + + + set(DOC_PNGS + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011_small.png + ) + + configure_file(${CMAKE_HOME_DIRECTORY}/doc/ref_guide/doxygen/RefGuideDoxyfile.in ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/doxygen/RefGuideDoxyfile @ONLY) + + ADD_CUSTOM_TARGET(ref_guide + COMMENT "Generating the SimGrid ref guide..." + DEPENDS ${DOC_SOURCES} ${DOC_FIGS} ${source_doxygen} + COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html + COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/ + ) + + ADD_CUSTOM_COMMAND(TARGET ref_guide + DEPENDS ${source_doxygen} + COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/doxygen/logcategories.doc + COMMAND ${CMAKE_HOME_DIRECTORY}/tools/doxygen/xbt_log_extract_hierarchy.pl > ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/doxygen/logcategories.doc + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY} + ) + + foreach(file ${DOC_FIGS}) + string(REPLACE ".fig" ".png" tmp_file ${file}) + string(REPLACE "${CMAKE_HOME_DIRECTORY}/doc/shared/fig/" "${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html/" tmp_file ${tmp_file}) + ADD_CUSTOM_COMMAND(TARGET ref_guide + COMMAND ${FIG2DEV_PATH}/fig2dev -Lpng -S 4 ${file} ${tmp_file} + ) + endforeach(file ${DOC_FIGS}) + + foreach(file ${DOC_PNGS}) + ADD_CUSTOM_COMMAND(TARGET ref_guide + COMMAND ${CMAKE_COMMAND} -E copy ${file} ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html/ + ) + endforeach(file ${DOC_PNGS}) + + ADD_CUSTOM_COMMAND(TARGET ref_guide + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/simgrid.css ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html/ + ) + + ADD_CUSTOM_COMMAND(TARGET ref_guide + COMMAND ${FIG2DEV_PATH}/fig2dev -Lmap ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules.fig | perl -pe 's/imagemap/simgrid_modules/g'| perl -pe 's/ ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/doxygen/simgrid_modules.map + COMMAND ${CMAKE_COMMAND} -E echo "XX First Doxygen pass" + COMMAND ${DOXYGEN_PATH}/doxygen RefGuideDoxyfile + COMMAND ${CMAKE_HOME_DIRECTORY}/tools/doxygen/index_create.pl simgridrefguide.tag index-API.doc + + COMMAND ${CMAKE_COMMAND} -E echo "XX Second Doxygen pass" + COMMAND ${DOXYGEN_PATH}/doxygen RefGuideDoxyfile + + COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/html/dir* + + + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/ref_guide/doxygen + ) + +else(DOXYGEN_PATH AND FIG2DEV_PATH) + + ADD_CUSTOM_TARGET(ref_guide + COMMENT "Generating the SimGrid documentation..." + ) + + ADD_CUSTOM_COMMAND(TARGET ref_guide + COMMAND ${CMAKE_COMMAND} -E echo "DOXYGEN_PATH = ${DOXYGEN_PATH}" + COMMAND ${CMAKE_COMMAND} -E echo "FIG2DEV_PATH = ${FIG2DEV_PATH}" + COMMAND ${CMAKE_COMMAND} -E echo "IN ORDER TO GENERATE THE DOCUMENTATION YOU NEED ALL TOOLS !!!" + COMMAND ${CMAKE_COMMAND} -E echo "FAIL TO MAKE SIMGRID DOCUMENTATION see previous messages for details ..." + COMMAND false + ) + + +endif(FIG2DEV_PATH) + +##############################################################################" + + +ADD_CUSTOM_TARGET(ref_guide_pdf + COMMAND ${CMAKE_COMMAND} -E echo "XX First pass simgrid_documentation.pdf" + COMMAND make clean + COMMAND make pdf || true + COMMAND ${CMAKE_COMMAND} -E echo "XX Second pass simgrid_documentation.pdf" + COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_HOME_DIRECTORY}/doc/latex/refman.pdf + COMMAND make pdf || true + COMMAND ${CMAKE_COMMAND} -E echo "XX Write Simgrid_documentation.pdf" + COMMAND ${CMAKE_COMMAND} -E rename ${CMAKE_HOME_DIRECTORY}/doc/latex/refman.pdf ${CMAKE_HOME_DIRECTORY}/doc/latex/simgrid_documentation.pdf + + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/latex/ +) +add_dependencies(ref_guide_pdf ref_guide) diff --git a/buildtools/Cmake/GenerateUserGuide.cmake b/buildtools/Cmake/GenerateUserGuide.cmake new file mode 100644 index 0000000000..5bee891ccd --- /dev/null +++ b/buildtools/Cmake/GenerateUserGuide.cmake @@ -0,0 +1,227 @@ +#### Generate the html documentation for the user guide. + +file(GLOB_RECURSE source_doxygen + "${CMAKE_HOME_DIRECTORY}/tools/gras/*.[chl]" + "${CMAKE_HOME_DIRECTORY}/src/*.[chl]" + "${CMAKE_HOME_DIRECTORY}/include/*.[chl]" +) + +if(FIG2DEV_PATH) + + set(DOCSSOURCES "${source_doxygen}\n${USER_GUIDE_SOURCES}") + string(REPLACE "\n" ";" DOCSSOURCES ${DOCSSOURCES}) + + + set(DOC_PNGS + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/simgrid_logo_2011_small.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/poster_thumbnail.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_01.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_02.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_03.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_04.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_05.png + ${CMAKE_HOME_DIRECTORY}/doc/webcruft/win_install_06.png + ) + + configure_file(${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/UserGuideDoxyfile.in ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/UserGuideDoxyfile @ONLY) + + ADD_CUSTOM_TARGET(user_guide + COMMENT "Generating the SimGrid user guide..." + DEPENDS ${DOC_SOURCES} ${DOC_FIGS} ${source_doxygen} + COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html + COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen + ) + + ADD_CUSTOM_COMMAND(TARGET user_guide + DEPENDS ${source_doxygen} + COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_HOME_DIRECTORY}/doc/logcategories.doc + COMMAND ${CMAKE_HOME_DIRECTORY}/tools/doxygen/xbt_log_extract_hierarchy.pl > ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/logcategories.doc + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY} + ) + + foreach(file ${DOC_FIGS}) + string(REPLACE ".fig" ".png" tmp_file ${file}) + string(REPLACE "${CMAKE_HOME_DIRECTORY}/doc/shared/fig/" "${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/" tmp_file ${tmp_file}) + ADD_CUSTOM_COMMAND(TARGET user_guide + COMMAND ${FIG2DEV_PATH}/fig2dev -Lpng -S 4 ${file} ${tmp_file} + ) + endforeach(file ${DOC_FIGS}) + + foreach(file ${DOC_PNGS}) + ADD_CUSTOM_COMMAND(TARGET user_guide + COMMAND ${CMAKE_COMMAND} -E copy ${file} ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/ + ) + endforeach(file ${DOC_PNGS}) + + ADD_CUSTOM_COMMAND(TARGET user_guide + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot_thn.jpg ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/ + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/webcruft/Paje_MSG_screenshot.jpg ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/ + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/triva-graph_configuration.png ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/ + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/triva-graph_visualization.png ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/ + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/AS_hierarchy.png ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/ + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/doc/simgrid.css ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/ + ) + + ADD_CUSTOM_COMMAND(TARGET user_guide + COMMAND ${FIG2DEV_PATH}/fig2dev -Lmap ${CMAKE_HOME_DIRECTORY}/doc/shared/fig/simgrid_modules.fig | perl -pe 's/imagemap/simgrid_modules/g'| perl -pe 's/ ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/simgrid_modules.map + COMMAND ${CMAKE_COMMAND} -E echo "XX First Doxygen pass" + COMMAND ${DOXYGEN_PATH}/doxygen UserGuideDoxyfile + COMMAND ${CMAKE_HOME_DIRECTORY}/tools/doxygen/index_create.pl simgriduserguide.tag index-API.doc + + COMMAND ${CMAKE_COMMAND} -E echo "XX Second Doxygen pass" + COMMAND ${DOXYGEN_PATH}/doxygen UserGuideDoxyfile + + COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_HOME_DIRECTORY}/doc/user_guide/html/dir* + + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen + ) + +else(FIG2DEV_PATH) + + ADD_CUSTOM_TARGET(user_guide + COMMENT "Generating the SimGrid user guide..." + ) + + ADD_CUSTOM_COMMAND(TARGET user_guide + COMMAND ${CMAKE_COMMAND} -E echo "DOXYGEN_PATH = ${DOXYGEN_PATH}" + COMMAND ${CMAKE_COMMAND} -E echo "FIG2DEV_PATH = ${FIG2DEV_PATH}" + COMMAND ${CMAKE_COMMAND} -E echo "IN ORDER TO GENERATE THE DOCUMENTATION YOU NEED ALL TOOLS !!!" + COMMAND ${CMAKE_COMMAND} -E echo "FAIL TO MAKE SIMGRID DOCUMENTATION see previous messages for details ..." + COMMAND false + ) + + +endif(FIG2DEV_PATH) + +##############################################################################" + +message(STATUS "Check individual TOCs") +set(LISTE_GTUT + doc/user_guide/doxygen/gtut-tour-00-install.doc + doc/user_guide/doxygen/gtut-tour-01-bones.doc + doc/user_guide/doxygen/gtut-tour-02-simple.doc + doc/user_guide/doxygen/gtut-tour-03-args.doc + doc/user_guide/doxygen/gtut-tour-04-callback.doc + doc/user_guide/doxygen/gtut-tour-05-globals.doc + doc/user_guide/doxygen/gtut-tour-06-logs.doc + doc/user_guide/doxygen/gtut-tour-07-timers.doc + doc/user_guide/doxygen/gtut-tour-08-exceptions.doc + doc/user_guide/doxygen/gtut-tour-09-simpledata.doc + doc/user_guide/doxygen/gtut-tour-10-rpc.doc + doc/user_guide/doxygen/gtut-tour-11-explicitwait.doc + doc/user_guide/doxygen/gtut-tour-recap-messages.doc + doc/user_guide/doxygen/gtut-tour-12-staticstruct.doc + doc/user_guide/doxygen/gtut-tour-13-pointers.doc + doc/user_guide/doxygen/gtut-tour-14-dynar.doc + doc/user_guide/doxygen/gtut-tour-15-manualdatadef.doc + doc/user_guide/doxygen/gtut-tour-16-exchangecb.doc +) + +foreach(file_name ${LISTE_GTUT}) + file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc) + file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc) + + file(READ "${file_name}" file_content) + string(REGEX MATCH "Table of Contents.*
" valeur_line "${file_content}") + string(REPLACE "\n" ";" valeur_line "${valeur_line}") + string(REPLACE "\n" ";" file_content "${file_content}") + + file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc "\n") # make sure it exists + foreach(line ${file_content}) + string(REGEX MATCH "[\\]s?u?b?s?u?b?section.*" line2 "${line}") + string(REGEX MATCH ".*_toc.*" line3 "${line}") + if(line2 AND NOT line3) + string(REPLACE "\\section " "" line2 ${line2}) + string(REPLACE "\\subsection " "subsection" line2 ${line2}) + string(REPLACE "\\subsubsection " "subsubsection" line2 ${line2}) + string(REGEX REPLACE " .*" "" line2 ${line2}) + set(line2 " - \\ref ${line2}") + string(REPLACE " - \\ref subsection" " - \\ref " line2 ${line2}) + string(REPLACE " - \\ref subsubsection" " - \\ref " line2 ${line2}) + file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc "${line2}\n") + endif(line2 AND NOT line3) + endforeach(line ${file_content}) + + file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc "\n") # make sure it exists + foreach(line ${valeur_line}) + string(REGEX MATCH ".*ref.*" line_ok ${line}) + if(line_ok) + file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc "${line_ok}\n") + endif(line_ok) + endforeach(line ${valeur_line}) + + exec_program("${CMAKE_COMMAND} -E compare_files ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc" OUTPUT_VARIABLE compare_files) + if(compare_files) + message(STATUS "Wrong toc for ${file_name}. Should be:") + file(READ "${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc" file_content) + message("${file_content}") + exec_program("diff -u ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc") + endif(compare_files) +endforeach(file_name ${LISTE_GTUT}) + +file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc) +file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc) + +message(STATUS "Check main TOC") + +foreach(file_name ${LISTE_GTUT}) + file(READ "${file_name}" file_content) + string(REGEX MATCH "Table of Contents.*
" valeur_line "${file_content}") + string(REPLACE "\n" ";" valeur_line "${valeur_line}") + string(REPLACE "\n" ";" file_content "${file_content}") + + foreach(line ${file_content}) + string(REGEX MATCH ".*@page.*" line2 "${line}") + if(line2) + string(REPLACE "@page " "" line2 "${line2}") + string(REGEX REPLACE " .*" "" line2 "${line2}") + set(line2 " - \\ref ${line2}") + file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc "${line2}\n") + endif(line2) + endforeach(line ${file_content}) + + foreach(line ${valeur_line}) + string(REGEX MATCH ".*toc.*" line1 "${line}") + string(REGEX MATCH ".*
.*" line2 "${line}") + string(REGEX MATCH "^[ ]*$" line3 "${line}") + string(REGEX MATCH "Table of Contents" line4 "${line}") + if(NOT line1 AND NOT line2 AND NOT line3 AND NOT line4) + file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc " ${line}\n") + endif(NOT line1 AND NOT line2 AND NOT line3 AND NOT line4) + endforeach(line ${valeur_line}) +endforeach(file_name ${LISTE_GTUT}) + +file(READ "${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/gtut-tour.doc" file_content) +string(REPLACE "\n" ";" file_content "${file_content}") +foreach(line ${file_content}) + string(REGEX MATCH "^[ ]+.*\\ref" line1 "${line}") + if(line1) + file(APPEND ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc "${line}\n") + endif(line1) +endforeach(line ${file_content}) + +exec_program("${CMAKE_COMMAND} -E compare_files ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc" OUTPUT_VARIABLE compare_files) +if(compare_files) + message(STATUS "Wrong toc for gtut-tour.doc Right one is in tmp.realtoc") + exec_program("diff -u ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc") +else(compare_files) + file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.realtoc) +endif(compare_files) + +file(REMOVE ${CMAKE_HOME_DIRECTORY}/doc/user_guide/doxygen/tmp.curtoc) + +ADD_CUSTOM_TARGET(user_guide_pdf + COMMAND ${CMAKE_COMMAND} -E echo "XX First pass simgrid_user_guide.pdf" + COMMAND make clean + COMMAND make pdf || true + COMMAND ${CMAKE_COMMAND} -E echo "XX Second pass simgrid_user_guide.pdf" + COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_HOME_DIRECTORY}/doc/latex/refman.pdf + COMMAND make pdf || true + COMMAND ${CMAKE_COMMAND} -E echo "XX Write Simgrid_documentation.pdf" + COMMAND ${CMAKE_COMMAND} -E rename ${CMAKE_HOME_DIRECTORY}/doc/latex/refman.pdf ${CMAKE_HOME_DIRECTORY}/doc/latex/simgrid_documentation.pdf + + WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/doc/latex/ +) +add_dependencies(user_guide_pdf user_guide) diff --git a/buildtools/Cmake/test_prog/prog_sem_open.c b/buildtools/Cmake/test_prog/prog_sem_open.c index e9f04456bd..2295b0ee43 100644 --- a/buildtools/Cmake/test_prog/prog_sem_open.c +++ b/buildtools/Cmake/test_prog/prog_sem_open.c @@ -16,9 +16,9 @@ int main(void) { #ifdef WIN32 - int s; + int s; #else - sem_t * s; + sem_t * s; #endif s = sem_open("/0", O_CREAT, 0644, 10); if (s == SEM_FAILED){ diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index 01866594a2..cab5267a15 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -586,7 +586,7 @@ FILE_VERSION_FILTER = # You can optionally specify a file name after the option, if omitted # DoxygenLayout.xml will be used as the name of the layout file. -LAYOUT_FILE = DoxygenLayoutSimgrid.xml +LAYOUT_FILE = SimgridDoxygenLayout.xml # The CITE_BIB_FILES tag can be used to specify one or more bib files # containing the references data. This must be a list of .bib files. The @@ -658,103 +658,8 @@ WARN_LOGFILE = # directories like "/usr/src/myproject". Separate the files or directories # with spaces. -INPUT = index.doc \ - FAQ.doc \ - install.doc \ - bindings.doc \ - options.doc \ - tracing.doc \ - platform.doc \ - use.doc \ - pls.doc \ - ./index-API.doc \ - modules.doc \ - module-xbt.doc \ - module-msg.doc \ - module-gras.doc \ - module-amok.doc \ - module-sd.doc \ - module-surf.doc \ - module-trace.doc \ - gtut-main.doc \ - gtut-introduction.doc \ - gtut-tour.doc \ - gtut-tour-00-install.doc \ - gtut-tour-01-bones.doc \ - gtut-tour-02-simple.doc \ - gtut-tour-03-args.doc \ - gtut-tour-04-callback.doc \ - gtut-tour-05-globals.doc \ - gtut-tour-06-logs.doc \ - gtut-tour-07-timers.doc \ - gtut-tour-08-exceptions.doc \ - gtut-tour-09-simpledata.doc \ - gtut-tour-10-rpc.doc \ - gtut-tour-11-explicitwait.doc \ - gtut-tour-recap-messages.doc \ - gtut-tour-12-staticstruct.doc \ - gtut-tour-13-pointers.doc \ - gtut-tour-14-dynar.doc \ - gtut-tour-15-manualdatadef.doc \ - gtut-tour-16-exchangecb.doc \ - gtut-howto.doc \ - gtut-howto-design.doc \ - @top_srcdir@/doc/logcategories.doc \ - @top_srcdir@/src/instr/ \ - @top_srcdir@/include/ \ - @top_srcdir@/include/msg \ - @top_srcdir@/include/gras \ - @top_srcdir@/include/amok \ - @top_srcdir@/include/xbt \ - @top_srcdir@/include/simdag \ - @top_srcdir@/include/simgrid \ - @top_srcdir@/src/include/surf \ - @top_srcdir@/src/xbt/ \ - @top_srcdir@/src/xbt/datadesc \ - @top_srcdir@/src/surf/ \ - @top_srcdir@/src/msg/ \ - @top_srcdir@/src/gras \ - @top_srcdir@/src/gras/Msg \ - @top_srcdir@/src/gras/Transport \ - @top_srcdir@/src/gras/Virtu \ - @top_srcdir@/src/amok \ - @top_srcdir@/src/amok/Bandwidth \ - @top_srcdir@/src/amok/PeerManagement \ - @top_srcdir@/src/simdag \ - @top_srcdir@/src/simix - -################################################### -## PLEASE DON'T MESS WITH THE ORDER OF EXAMPLES ## (unless you know what you are doing, of course) -################################################### - -INPUT += @top_srcdir@/examples/msg/sendrecv/sendrecv.c \ - @top_srcdir@/examples/msg/masterslave/masterslave_forwarder.c \ - @top_srcdir@/examples/msg/masterslave/masterslave_console.c \ - @top_srcdir@/examples/msg/migration \ - @top_srcdir@/examples/msg/suspend \ - @top_srcdir@/examples/msg/properties \ - @top_srcdir@/examples/msg/parallel_task \ - @top_srcdir@/examples/msg/priority \ - @top_srcdir@/examples/msg/icomms/peer.c \ - @top_srcdir@/examples/msg/icomms/peer2.c \ - @top_srcdir@/examples/msg/icomms/peer3.c \ - @top_srcdir@/examples/msg/tracing/simple.c \ - @top_srcdir@/examples/msg/tracing/ms.c \ - @top_srcdir@/examples/msg/tracing/categories.c \ - @top_srcdir@/examples/msg/tracing/procmig.c \ - @top_srcdir@/examples/msg/tracing/trace_platform.c \ - @top_srcdir@/examples/msg/tracing/user_variables.c \ - @top_srcdir@/examples/msg/tracing/link_user_variables.c \ - @top_srcdir@/examples/msg/tracing/link_srcdst_user_variables.c \ - @top_srcdir@/examples/msg/ns3 \ - @top_srcdir@/examples/msg/gtnets \ - @top_srcdir@/examples/msg/io \ - @top_srcdir@/examples/msg/gpu \ - @top_srcdir@/examples/msg/actions \ - @top_srcdir@/examples/msg/token_ring \ - @top_srcdir@/examples/msg/pmm \ - @top_srcdir@/examples/msg/chord - +INPUT = index.doc + # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is # also the default input encoding. Doxygen uses libiconv (or the iconv built @@ -993,7 +898,7 @@ HTML_HEADER = # each generated HTML page. If it is left blank doxygen will generate a # standard footer. -HTML_FOOTER = footer.html +HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to diff --git a/doc/HelloWorld/HelloWorld.c b/doc/HelloWorld/HelloWorld.c index 1399ea9265..ae6a7fbcbf 100644 --- a/doc/HelloWorld/HelloWorld.c +++ b/doc/HelloWorld/HelloWorld.c @@ -4,5 +4,5 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(HelloWorld, "Messages specific for this Hello World example"); void main() { - XBT_INFO("Hello World !!!"); + XBT_INFO("Hello World !!!"); } diff --git a/doc/DoxygenLayoutSimgrid.xml b/doc/SimgridDoxygenLayout.xml similarity index 87% rename from doc/DoxygenLayoutSimgrid.xml rename to doc/SimgridDoxygenLayout.xml index 9b4d18942f..d892f97508 100644 --- a/doc/DoxygenLayoutSimgrid.xml +++ b/doc/SimgridDoxygenLayout.xml @@ -1,21 +1,28 @@ - + + + + + + + + - + - + - + @@ -62,6 +69,7 @@ + @@ -89,6 +97,7 @@ + @@ -116,6 +125,7 @@ + @@ -130,11 +140,11 @@ - - - + + + diff --git a/doc/footer.html.in b/doc/footer.html.in deleted file mode 100644 index ee7ebd905f..0000000000 --- a/doc/footer.html.in +++ /dev/null @@ -1,19 +0,0 @@ -

-


- - - - - - - -
- -Back to the main Simgrid Documentation page - -The version of SimGrid documented here is v@release_version@.
-Documentation of other versions can be found in their respective -archive files (directory doc/html). -
-Generated by doxygen -
diff --git a/doc/index.doc b/doc/index.doc index 95dd526e43..8b1414a8ac 100644 --- a/doc/index.doc +++ b/doc/index.doc @@ -1,143 +1,32 @@ -/*! \page index +/*! +@mainpage -
\htmlonly +
- SimGrid - Scalable simulation of distributed systems, ranging from grids to peer-to-peer systems -\endhtmlonly -\htmlinclude .index.doc.toc -\htmlonly
-\endhtmlonly
-SimGrid is a toolkit that provides core functionalities for the simulation -of distributed applications in heterogeneous distributed environments. -\htmlonly \endhtmlonly -The specific goal of the project is to facilitate research in the area of -distributed and parallel application scheduling on distributed computing -platforms ranging from simple network of workstations to Computational -Grids. -\htmlonly \endhtmlonly - +Currently, the documentation contains 3 main sections: + +\endhtmlonly +Other information sources: - The official webpage is simgrid.gforge.inria.fr. - The Frequently Asked Questions are here. - The development webpage is gforge.inria.fr/projects/simgrid. - The user mailing list is - The SimGrid software package can be downloaded from here. -
- -
- -\section overview Overview of the toolkit components - -As depicted by the following diagram, the SimGrid toolkit is basically -three-layered (click on the picture to jump to a specific component). - -\htmlonly \endhtmlonly -\htmlonly -
-\endhtmlonly -\htmlinclude simgrid_modules.map -\htmlonly -
Relationships between the SimGrid components (click to jump to API) -
-\endhtmlonly -\htmlonly \endhtmlonly - -\subsection overview_envs Programmation environments layer - -SimGrid provides several programmation environments built on top of a unique -simulation kernel. Each environment targets a specific audiance and -constitutes a different paradigm. To choose which of them you want to use, -you have to think about what you want to do and what would be the result of -your work. - - - If you want to study a theoritical problem and compare several - heuristics, you probably want to try \ref MSG_API (yet another - historical name). It was designed exactly to that extend and should allow - you to build easily rather realistic multi-agents simulation. Yet, - realism is not the main goal of this environment and the most annoying - technical issues of real platforms are masked here. Check the \ref - MSG_API section for more information. - - - If you want to study the behaviour of a MPI application using emulation - technics, you should have a look at the \ref SMPI_API (Simulated - MPI) programming environment. Unfortunately, this work is still underway. - Check the \ref SMPI_API section for more information. - - - If you want to develop a real distributed application, then you may find - \ref GRAS_API (Grid Reality And Simulation) useful. This is an API - for the realization of distributed applications. - \n\n - Moreover, there is two implementations of this API: one on top of the - SURF (allowing to develop and test your application within the comfort of - the simulator) and another suited for deployment on real platforms - (allowing the resulting application to be highly portable and extremely - efficient). - \n\n - Even if you do not plan to run your code for real, you may want to switch - to GRAS if you intend to use MSG in a very intensive way (e.g. for - simulating a peer-to-peer environment). - \n\n - See the \ref GRAS_API section for more details. - -If your favorite programming environment/model is not there (BSP, -components, OpenMP, etc.) is not represented in the SimGrid toolkit yet, you may -consider adding it. You should contact us first on the -SimGrid -developers mailing list, though. - -\subsection overview_kernel Simulation kernel layer - -The core functionnalities to simulate a virtual platform are provided by a -module called \ref SURF_API. It is -very low-level and is not intended to be used as such by end-users. Instead, -it serve as a basis for the higher level layer. - -SURF main features are a fast max-min linear solver and the ability to -change transparently the model used to describe the platform. This greatly -eases the comparison of the several models existing in the litterature. - -See the \ref SURF_API section for more details. - -\subsection overview_fondation Base layer - -The base of the whole toolkit is constituted by the \ref XBT_API -(eXtended Bundle of Tools). - -It is a portable library providing some grounding features such as \ref -XBT_log, \ref XBT_ex and \ref XBT_config. XBT also encompass -the following convenient datastructures: \ref XBT_dynar, \ref XBT_fifo, \ref -XBT_dict, \ref XBT_heap, \ref XBT_set and \ref XBT_swag. - -See the \ref XBT_API section for more details. - - -\subsection lucas_layer Tracing simulation -Finally, a transversal module allows you to trace your simulation. More documentation in the section \ref TRACE_doc - -\htmlonly \endhtmlonly -
-The SimGrid software package can be downloaded from -here.
- -If you are interested in the history of SimGrid and in current and planned development, -you can find out more here. - -Any question, remark or suggestion are welcome on the -SimGrid users -mailing list. - -\htmlonly \endhtmlonly -
\htmlonly
CC-GNU LGPL diff --git a/doc/ref_guide/doxygen/RefGuideDoxyfile.in b/doc/ref_guide/doxygen/RefGuideDoxyfile.in new file mode 100644 index 0000000000..1a5cbb7275 --- /dev/null +++ b/doc/ref_guide/doxygen/RefGuideDoxyfile.in @@ -0,0 +1,1844 @@ + +# @WARNING@ + +# Doxyfile 1.8.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" "). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or sequence of words) that should +# identify the project. Note that if you do not use Doxywizard you need +# to put quotes around the project name if it contains spaces. + +PROJECT_NAME = SimGrid + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = @release_version@ + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer +# a quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = "Scalable Simulation of Distributed Systems - Reference Manual" + +# With the PROJECT_LOGO tag one can specify an logo or icon that is +# included in the documentation. The maximum height of the logo should not +# exceed 55 pixels and the maximum width should not exceed 200 pixels. +# Doxygen will copy the logo to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = ../ + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = YES + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = @srcdir@ + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful if your file system +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding +# "class=itcl::class" will allow you to use the command class in the +# itcl::class meaning. + +#TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = YES + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this +# tag. The format is ext=language, where ext is a file extension, and language +# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, +# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions +# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all +# comments according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you +# can mix doxygen, HTML, and XML commands with Markdown formatting. +# Disable only in case of backward compatibilities issues. + +#MARKDOWN_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also makes the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and +# unions are shown inside the group in which they are included (e.g. using +# @ingroup) instead of on a separate page (for HTML and Man pages) or +# section (for LaTeX and RTF). + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and +# unions with only public data fields will be shown inline in the documentation +# of the scope in which they are defined (i.e. file, namespace, or group +# documentation), provided this scope is documented. If set to NO (the default), +# structs, classes, and unions are shown on a separate page (for HTML and Man +# pages) or section (for LaTeX and RTF). + +#INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penalty. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will roughly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols. + +SYMBOL_CACHE_SIZE = 0 + +# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be +# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given +# their name and scope. Since this can be an expensive process and often the +# same symbol appear multiple times in the code, doxygen keeps a cache of +# pre-resolved symbols. If the cache is too small doxygen will become slower. +# If the cache is too large, memory is wasted. The cache size is given by this +# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols. + +#LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal scope will be included in the documentation. + +#EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespaces are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = YES + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = YES + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen +# will list include files with double quotes in the documentation +# rather than with sharp brackets. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = NO + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen +# will sort the (brief and detailed) documentation of class members so that +# constructors and destructors are listed first. If set to NO (the default) +# the constructors will appear in the respective orders defined by +# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. +# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO +# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to +# do proper type resolution of all parameters of a function it will reject a +# match between the prototype and the implementation of a member function even +# if there is only one candidate or it is obvious which candidate to choose +# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen +# will still accept a match between prototype and implementation in such cases. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or macro consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and macros in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. The create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. +# You can optionally specify a file name after the option, if omitted +# DoxygenLayout.xml will be used as the name of the layout file. + +LAYOUT_FILE = RefGuideDoxygenLayout.xml + +# The CITE_BIB_FILES tag can be used to specify one or more bib files +# containing the references data. This must be a list of .bib files. The +# .bib extension is automatically appended if omitted. Using this command +# requires the bibtex tool to be installed. See also +# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style +# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this +# feature you need bibtex and perl available in the search path. + +#CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# The WARN_NO_PARAMDOC option can be enabled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = main.doc \ + modules.doc \ + module-xbt.doc \ + module-msg.doc \ + module-gras.doc \ + module-amok.doc \ + module-sd.doc \ + module-surf.doc \ + module-simix.doc \ + module-trace.doc \ + index-API.doc \ + @top_srcdir@/doc/ref_guide/doxygen/logcategories.doc \ + @top_srcdir@/src/instr/ \ + @top_srcdir@/include/ \ + @top_srcdir@/include/msg \ + @top_srcdir@/include/gras \ + @top_srcdir@/include/amok \ + @top_srcdir@/include/xbt \ + @top_srcdir@/include/simdag \ + @top_srcdir@/include/simgrid \ + @top_srcdir@/src/include/surf \ + @top_srcdir@/src/xbt/ \ + @top_srcdir@/src/xbt/datadesc \ + @top_srcdir@/src/surf/ \ + @top_srcdir@/src/msg/ \ + @top_srcdir@/src/gras \ + @top_srcdir@/src/gras/Msg \ + @top_srcdir@/src/gras/Transport \ + @top_srcdir@/src/gras/Virtu \ + @top_srcdir@/src/amok \ + @top_srcdir@/src/amok/Bandwidth \ + @top_srcdir@/src/amok/PeerManagement \ + @top_srcdir@/src/simdag \ + @top_srcdir@/src/simix + +################################################### +## PLEASE DON'T MESS WITH THE ORDER OF EXAMPLES ## (unless you know what you are doing, of course) +################################################### + + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh +# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py +# *.f90 *.f *.for *.vhd *.vhdl + +FILE_PATTERNS = + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = ./ \ + @top_srcdir@/doc/gtut-files \ + @top_srcdir@/src/surf/ \ + @top_srcdir@/src/xbt/ \ + @top_srcdir@/examples \ + @top_srcdir@/testsuite + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = YES + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = @top_srcdir@/doc + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty or if +# non of the patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) +# and it is also possible to disable source filtering for a specific pattern +# using *.ext= (so without naming a filter). This option only has effect when +# FILTER_SOURCE_FILES is enabled. + +FILTER_SOURCE_PATTERNS = + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. Note that when using a custom header you are responsible +# for the proper inclusion of any scripts and style sheets that doxygen +# needs, which is dependent on the configuration options used. +# It is advised to generate a default header using "doxygen -w html +# header.html footer.html stylesheet.css YourConfigFile" and then modify +# that header. Note that the header is subject to change so you typically +# have to redo this when upgrading to a newer version of doxygen or when +# changing the value of configuration settings such as GENERATE_TREEVIEW! + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# style sheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that +# the files will be copied as-is; there are no commands or markers available. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. +# Doxygen will adjust the colors in the style sheet and background images +# according to this color. Hue is specified as an angle on a colorwheel, +# see http://en.wikipedia.org/wiki/Hue for more information. +# For instance the value 0 represents red, 60 is yellow, 120 is green, +# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. +# The allowed range is 0 to 359. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of +# the colors in the HTML output. For a value of 0 the output will use +# grayscales only. A value of 255 will produce the most vivid colors. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to +# the luminance component of the colors in the HTML output. Values below +# 100 gradually make the output lighter, whereas values above 100 make +# the output darker. The value divided by 100 is the actual gamma applied, +# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, +# and 100 does not change the gamma. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting +# this to NO can help when comparing the output of multiple runs. + +HTML_TIMESTAMP = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. + +HTML_DYNAMIC_SECTIONS = NO + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of +# entries shown in the various tree structured indices initially; the user +# can expand and collapse entries dynamically later on. Doxygen will expand +# the tree to such a level that at most the specified number of entries are +# visible (unless a fully collapsed tree already exceeds this amount). +# So setting the number of entries 1 will produce a full collapsed tree by +# default. 0 is a special value representing an infinite number of entries +# and will result in a full expanded tree by default. + +#HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = YES + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated +# that can be used as input for Qt's qhelpgenerator to generate a +# Qt Compressed Help (.qch) of the generated HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to +# add. For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see +# +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's +# filter section matches. +# +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files +# will be generated, which together with the HTML files, form an Eclipse help +# plugin. To install this plugin and make it available under the help contents +# menu in Eclipse, the contents of the directory containing the HTML and XML +# files needs to be copied into the plugins directory of eclipse. The name of +# the directory within the plugins directory should be the same as +# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before +# the help appears. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have +# this name. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) +# at top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. Since the tabs have the same information as the +# navigation tree you can set this option to NO if you already set +# GENERATE_TREEVIEW to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. +# Since the tree basically has the same information as the tab index you +# could consider to set DISABLE_INDEX to NO when enabling this option. + +GENERATE_TREEVIEW = YES + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values +# (range [0,1..20]) that doxygen will group on one line in the generated HTML +# documentation. Note that a value of 0 will completely suppress the enum +# values from appearing in the overview section. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open +# links to external symbols imported via tag files in a separate window. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are +# not supported properly for IE 6.0, but are supported on all modern browsers. +# Note that when changing this option you need to delete any form_*.png files +# in the HTML output before the changes have effect. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax +# (see http://www.mathjax.org) which uses client side Javascript for the +# rendering instead of using prerendered bitmaps. Use this if you do not +# have LaTeX installed or if you want to formulas look prettier in the HTML +# output. When enabled you may also need to install MathJax separately and +# configure the path to it using the MATHJAX_RELPATH option. + +USE_MATHJAX = NO + +# When MathJax is enabled you need to specify the location relative to the +# HTML output directory using the MATHJAX_RELPATH option. The destination +# directory should contain the MathJax.js script. For instance, if the mathjax +# directory is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to +# the MathJax Content Delivery Network so you can quickly see the result without +# installing MathJax. +# However, it is strongly recommended to install a local +# copy of MathJax from http://www.mathjax.org before deployment. + +MATHJAX_RELPATH = http://www.mathjax.org/mathjax + +# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension +# names that should be enabled during MathJax rendering. + +#MATHJAX_EXTENSIONS = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box +# for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using +# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets +# (GENERATE_DOCSET) there is already a search function so this one should +# typically be disabled. For large projects the javascript based search engine +# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. + +SEARCHENGINE = YES + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a PHP enabled web server instead of at the web client +# using Javascript. Doxygen will generate the search PHP script and index +# file to put on the web server. The advantage of the server +# based approach is that it scales better to large projects and allows +# full text search. The disadvantages are that it is more difficult to setup +# and does not have live searching capabilities. + +SERVER_BASED_SEARCH = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. +# Note that when enabling USE_PDFLATEX this option is only used for +# generating bitmaps for formulas in the HTML output, but not in the +# Makefile that is written to the output directory. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = YES + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = pdfpages + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for +# the generated latex document. The footer should contain everything after +# the last chapter. If it is left blank doxygen will generate a +# standard footer. Notice: only use this tag if you know what you are doing! + +LATEX_FOOTER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = YES + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = YES + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include +# source code with syntax highlighting in the LaTeX output. +# Note that which sources are shown also depends on other settings +# such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +# The LATEX_BIB_STYLE tag can be used to specify the style to use for the +# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See +# http://en.wikipedia.org/wiki/BibTeX for more info. + +#LATEX_BIB_STYLE = plain + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load style sheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = YES + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# pointed to by INCLUDE_PATH will be searched when a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = DOXYGEN \ + DOXYGEN_SKIP_IT \ + XBT_PUBLIC= \ + XBT_INLINE= \ + HAVE_TRACING \ + MSG_USE_DEPRECATED + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition that +# overrules the definition found in the source code. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all references to function-like macros +# that are alone on a line, have an all uppercase name, and do not end with a +# semicolon, because these will confuse the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. For each +# tag file the location of the external documentation should be added. The +# format of a tag file without this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths +# or URLs. Note that each tag file must have a unique name (where the name does +# NOT include the path). If a tag file is not located in the directory in which +# doxygen is run, you must also specify the path to the tagfile here. + +TAGFILES = ../../shared/doxygen/simgriduserguide.tag=../../user_guide/html/ + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = ../../shared/doxygen/simgridrefguide.tag + + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = NO + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option also works with HAVE_DOT disabled, but it is recommended to +# install and use dot, since it yields more powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is +# allowed to run in parallel. When set to 0 (the default) doxygen will +# base this on the number of processors available in the system. You can set it +# explicitly to a value larger than 0 to get control over the balance +# between CPU load and processing speed. + +DOT_NUM_THREADS = 0 + +# By default doxygen will use the Helvetica font for all dot files that +# doxygen generates. When you want a differently looking font you can specify +# the font name using DOT_FONTNAME. You need to make sure dot is able to find +# the font, which can be done by putting it in a standard location or by setting +# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the +# directory containing the font. + +DOT_FONTNAME = Helvetica + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the Helvetica font. +# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to +# set the path where dot can find it. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If the UML_LOOK tag is enabled, the fields and methods are shown inside +# the class node. If there are many fields or methods and many nodes the +# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS +# threshold limits the number of items for each type to make the size more +# managable. Set this to 0 for no limit. Note that the threshold may be +# exceeded by 50% before the limit is enforced. + +#UML_LIMIT_NUM_FIELDS = 10 + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = NO + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = YES + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will generate a graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are svg, png, jpg, or gif. +# If left blank png will be used. If you choose svg you need to set +# HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible in IE 9+ (other browsers do not have this requirement). + +DOT_IMAGE_FORMAT = png + +# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to +# enable generation of interactive SVG images that allow zooming and panning. +# Note that this requires a modern browser other than Internet Explorer. +# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you +# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible. Older versions of IE do not have SVG support. + +#INTERACTIVE_SVG = NO + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MSCFILE_DIRS tag can be used to specify one or more directories that +# contain msc files that are included in the documentation (see the +# \mscfile command). + +MSCFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doc/ref_guide/doxygen/RefGuideDoxygenLayout.xml b/doc/ref_guide/doxygen/RefGuideDoxygenLayout.xml new file mode 100644 index 0000000000..4482d2ffac --- /dev/null +++ b/doc/ref_guide/doxygen/RefGuideDoxygenLayout.xml @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/ref_guide/doxygen/main.doc b/doc/ref_guide/doxygen/main.doc new file mode 100644 index 0000000000..a0c22026dd --- /dev/null +++ b/doc/ref_guide/doxygen/main.doc @@ -0,0 +1,153 @@ +/*! +@mainpage + +
+\htmlonly + + + + + +
+ SimGrid - Scalable simulation of distributed systems, ranging from grids to peer-to-peer systems + +\endhtmlonly +\htmlonly +
+\endhtmlonly +
+ +\section ref_guide_welcome SimGrid Reference Guide + +Welcome to the SimGrid Reference Guide. This guide contains a detailed list of functions, macros and structs provided by SimGrid. This guide is supposed to help you to code your simulator using SimGrid primitives, so it means that you already know the basics of SimGrid, have it installed and so on. If not, please refer either to the SimGrid user guide or to the various tutorials available either online or in the relevant doc section. + +\section a_quick_glance SimGrid ? + +SimGrid is a toolkit that provides core functionalities for the simulation +of distributed applications in heterogeneous distributed environments. + +The specific goal of the project is to facilitate research in the area of +distributed and parallel application scheduling on distributed computing +platforms ranging from simple network of workstations to Computational +Grids. + + + - The official webpage is simgrid.gforge.inria.fr. + - The Frequently Asked Questions are here. + - The development webpage is gforge.inria.fr/projects/simgrid. + - The user mailing list is + - The SimGrid software package can be downloaded from here. +
+ +
+ +\section overview Overview of the toolkit components + +As depicted by the following diagram, the SimGrid toolkit is basically +three-layered (click on the picture to jump to a specific component). + + +\htmlonly +
+\endhtmlonly +\htmlinclude simgrid_modules.map + +\htmlonly +
Relationships between the SimGrid components (click to jump to API) +
+\endhtmlonly + +\subsection overview_envs Programmation environments layer + +SimGrid provides several programmation environments built on top of a unique +simulation kernel. Each environment targets a specific audiance and +constitutes a different paradigm. To choose which of them you want to use, +you have to think about what you want to do and what would be the result of +your work. + + - If you want to study a theoritical problem and compare several + heuristics, you probably want to try \ref MSG_API (yet another + historical name). It was designed exactly to that extend and should allow + you to build easily rather realistic multi-agents simulation. Yet, + realism is not the main goal of this environment and the most annoying + technical issues of real platforms are masked here. Check the \ref + MSG_API section for more information. + + - If you want to study the behaviour of a MPI application using emulation + technics, you should have a look at the \ref SMPI_API (Simulated + MPI) programming environment. Unfortunately, this work is still underway. + Check the \ref SMPI_API section for more information. + + - If you want to develop a real distributed application, then you may find + \ref GRAS_API (Grid Reality And Simulation) useful. This is an API + for the realization of distributed applications. + \n\n + Moreover, there is two implementations of this API: one on top of the + SURF (allowing to develop and test your application within the comfort of + the simulator) and another suited for deployment on real platforms + (allowing the resulting application to be highly portable and extremely + efficient). + \n\n + Even if you do not plan to run your code for real, you may want to switch + to GRAS if you intend to use MSG in a very intensive way (e.g. for + simulating a peer-to-peer environment). + \n\n + See the \ref GRAS_API section for more details. + +If your favorite programming environment/model is not there (BSP, +components, OpenMP, etc.) is not represented in the SimGrid toolkit yet, you may +consider adding it. You should contact us first on the +SimGrid +developers mailing list, though. + +\subsection overview_kernel Simulation kernel layer + +The core functionnalities to simulate a virtual platform are provided by a +module called \ref SURF_API. It is +very low-level and is not intended to be used as such by end-users. Instead, +it serve as a basis for the higher level layer. + +SURF main features are a fast max-min linear solver and the ability to +change transparently the model used to describe the platform. This greatly +eases the comparison of the several models existing in the litterature. + +See the \ref SURF_API section for more details. + +\subsection overview_fondation Base layer + +The base of the whole toolkit is constituted by the \ref XBT_API +(eXtended Bundle of Tools). + +It is a portable library providing some grounding features such as \ref +XBT_log, \ref XBT_ex and \ref XBT_config. XBT also encompass +the following convenient datastructures: \ref XBT_dynar, \ref XBT_fifo, \ref +XBT_dict, \ref XBT_heap, \ref XBT_set and \ref XBT_swag. + +See the \ref XBT_API section for more details. + + +\subsection lucas_layer Tracing simulation +Finally, a transversal module allows you to trace your simulation. More documentation in the section \ref TRACE_doc + +\htmlonly +
+The SimGrid software package can be downloaded from +here.
+ +If you are interested in the history of SimGrid and in current and planned development, +you can find out more here. + +Any question, remark or suggestion are welcome on the +SimGrid users +mailing list. + +\endhtmlonly + +
+\htmlonly +
+CC-GNU LGPL +
+\endhtmlonly + +*/ diff --git a/doc/module-amok.doc b/doc/ref_guide/doxygen/module-amok.doc similarity index 100% rename from doc/module-amok.doc rename to doc/ref_guide/doxygen/module-amok.doc diff --git a/doc/ref_guide/doxygen/module-gras.doc b/doc/ref_guide/doxygen/module-gras.doc new file mode 100644 index 0000000000..7b8d028226 --- /dev/null +++ b/doc/ref_guide/doxygen/module-gras.doc @@ -0,0 +1,71 @@ +/** \addtogroup GRAS_API + + \section GRAS_funct GRAS offers the following functionnalities + - \ref GRAS_comm: Exchanging messages between peers + - \ref GRAS_dd : any data which may transit on the network must be + described beforehand so that GRAS can handle the platform + heterogeneity and convert them if needed. + - \ref GRAS_sock : this is how to open a communication channel to + other processes, and retrive information about them. + - \ref GRAS_msg : communications are message oriented. You have to + describe all possible messages and their payload beforehand, and + can then attach callbacks to the arrival of a given kind of message. + - \ref GRAS_timer : this is how to program repetitive and delayed + tasks, not unlike cron(8) and at(1). This cannot be used to timeout + a function (like setitimer(2) or signal(2) games could do). + - \ref GRAS_run: Running both on top of the simulator and on + top of real platforms, and portability support. + - \ref GRAS_virtu : You naturally don't want to call the + gettimeofday(2) function in simulation mode since it would give + you the time on the host running the simulation, not the time in + the simulated world (you are belonging to).\n + This a system call virtualization layer, which also acts as a + portability layer. + - \ref GRAS_globals : The use of globals is forbidden since the + "processes" are threads in simulation mode. \n + This is how to let GRAS handle your globals properly. + - \ref GRAS_emul : Support to emulate code excution (ie, reporting + execution time into the simulator and having code sections specific + to simulation or to real mode). + + + @{ */ + /** @defgroup GRAS_comm Communication facilities */ + /** @defgroup GRAS_run Virtualization */ + +/** @} */ +##################################################################### +/** @addtogroup GRAS_comm + + Here are the communication facilities. GRAS allows you to exchange + messages on sockets (which can be seen as pipes between + processes). On reception, messages start callbacks (that's the + default communication mode, not the only one). All messages of a given + type convey the same kind of data, and you have to describe it + beforehand. + + Timers are also seen as a mean of communication (with yourself). It + allows you to run a repetitive task ("do this every N second until I tell + you to stop"), or to deffer a treatment ("do this in 3 sec"). + + @{ */ + /** @defgroup GRAS_dd Data description */ + /** @defgroup GRAS_sock Sockets */ + /** @defgroup GRAS_msg Messages */ + /** @defgroup GRAS_timer Timers */ + +/** @} */ +##################################################################### +/** @addtogroup GRAS_run + + Virtualization facilities allow your code to run both on top of the simulator or in real setting. + + @{ */ + + /** @defgroup GRAS_globals Globals */ + /** @defgroup GRAS_emul Emulation support */ + /** @defgroup GRAS_virtu Syscalls */ + +/** @} */ + + diff --git a/doc/ref_guide/doxygen/module-msg.doc b/doc/ref_guide/doxygen/module-msg.doc new file mode 100644 index 0000000000..695efec3cc --- /dev/null +++ b/doc/ref_guide/doxygen/module-msg.doc @@ -0,0 +1,184 @@ +/** \addtogroup MSG_API + + MSG was the first distributed programming environment provided within + SimGrid. While almost realistic, it remains quite simple (simplistic?). + This describes the native to MSG. + + \section jMSG_who Who should use this (and who shouldn't) + + You should use MSG if you want to study some heuristics for a + given problem you don't really want to implement. If you want to + use the C programming language, your are in the right + section. To use the Java or Ruby programming interfaces, please refer to + the documentation provided in the relevant packages. + + \section MSG_funct Offered functionnalities + - \ref msg_simulation + - \ref m_process_management + - \ref m_host_management + - \ref m_task_management + - \ref msg_file_management + - \ref msg_task_usage + - \ref msg_VMs + - \ref msg_trace_driven + - \ref msg_deprecated_functions + + + Also make sure to visit the page @ref MSG_examples. +*/ + + + +/** +@defgroup msg_simulation Main MSG simulation Functions +@ingroup MSG_API +@brief Describes how to setup and control your simulation. + +The basic workflow is the following (check the \ref MSG_examples for +details). + + -# Initialize the library with #MSG_global_init + -# Create a platform (usually by parsing a file with + #MSG_create_environment) + -# Register the functions that your processes are supposed to run with + #MSG_function_register (and maybe #MSG_function_register_default) + -# Launch your processes from a deployment file with #MSG_launch_application + -# Run the simulation with #MSG_main + -# Cleanup the library with #MSG_clean before ending your program + (optional). + +@htmlonly @endhtmlonly +*/ + +/** @defgroup m_process_management Process Management Functions + * @ingroup MSG_API + * @brief This section describes the process structure of MSG + * (#m_process_t) and the functions for managing it. + */ + +/** @defgroup m_host_management Host Management Functions + * @ingroup MSG_API + * @brief This section describes the host structure of MSG + */ + +/** @defgroup m_task_management Task Management Functions + * @ingroup MSG_API + * @brief This section describes the task structure of MSG + * (#m_task_t) and the functions for managing it. See + * \ref msg_task_usage to see how to put the tasks in action. + * + * \htmlonly \endhtmlonly + */ + +/** @defgroup msg_task_usage Task Actions + * @ingroup MSG_API + * @brief This section describes the functions that can be used + * by a process to execute, communicate or otherwise handle some task. + */ + +/** @defgroup msg_VMs VMs + * @ingroup MSG_API + * @brief This section describes the interface created to mimick IaaS clouds. + * + * With it, you can create virtual machines to put your processes + * into, and interact directly with the VMs to manage groups of + * processes. + * + * This interface is highly experimental at this point. Testing is + * welcomed, but do not expect too much of it right now. Even the + * interfaces may be changed in future releases of SimGrid (although + * things are expected to stabilize nicely before SimGrid v3.8). + * There is no guaranty on the rest of SimGrid, and there is less + * than that on this part. + * + */ + +/** @defgroup msg_file_management File Management Functions + * @ingroup MSG_API + * @brief This section describes the file structure of MSG + * (#msg_file_t) and the functions for managing it. It + * is based on POSIX functions. + */ + + +/** +@defgroup msg_trace_driven Trace-driven simulations +@ingroup MSG_API +@brief This section describes the functions allowing to build trace-driven simulations. + +\htmlonly \endhtmlonly + +This is very handy when you want to test an algorithm or protocol that +does nothing unless it receives some events from outside. For example, +a P2P protocol reacts to requests from the user, but does nothing if +there is no such event. + +In such situations, SimGrid allows to write your protocol in your C +file, and the events to react to in a separate text file. Declare a +function handling each of the events that you want to accept in your +trace files, register them using #MSG_action_register in your main, +and then use #MSG_action_trace_run to launch the simulation. You can +either have one trace file containing all your events, or a file per +simulated process. + +Check the examples in examples/msg/actions/actions.c for details. + + */ + + + +/** +@defgroup MSG_LUA Lua bindings +@ingroup MSG_API +@brief Lua bindings to MSG (\ref MSG_API) + +@htmlonly @endhtmlonly + +This is the lua bindings of the \ref MSG_API interface. + +\section lMSG_who Who should use this (and who shouldn't) + +If you want to use MSG to study your algorithm, but you don't want to +use the C language (using \ref MSG_API), then you should use some +bindings such as this one. The advantage of the lua bindings is that +they are distributed directly with the main archive (in contrary to +Java and Ruby bindings, for example, that are distributed separately). +Another advantage of lua is that there is almost no performance loss +with regard to the C version (at least there shouln't be any -- it is +still to be precisely assessed). + +\section MSG_Lua_funct Lua offered functionnalities in MSG + +Almost all important features of the MSG interface are available from +the lua bindings. Unfortunately, since doxygen does not support the +lua modules implemented directly in C as we are using, there is no +ready to use reference documentation for this module. Even more than +for the other modules, you will have to dig into the source code of +the examples to learn how to use it. + +\section Lua_examples Examples of lua MSG + + - \ref MSG_ex_master_slave_lua + - \ref MSG_ex_master_slave_lua_bypass + - Also, the lua version of the Chord example (in the source tree) + is a working non-trivial example of use of the lua bindings +*/ + +/** +@defgroup msg_deprecated_functions MSG Deprecated +@ingroup MSG_API +@brief This section describes the deprecated functions. PLEASE STOP USING THEM. + +We don't remove them because the ability to run old scientific +code is something important to us. But these functionalities are +not actively supported anymore. + +To access these functions, you should define the relevant option +at configuration time in ccmake. + */ + + + + + + diff --git a/doc/module-sd.doc b/doc/ref_guide/doxygen/module-sd.doc similarity index 100% rename from doc/module-sd.doc rename to doc/ref_guide/doxygen/module-sd.doc diff --git a/doc/ref_guide/doxygen/module-simix.doc b/doc/ref_guide/doxygen/module-simix.doc new file mode 100644 index 0000000000..afd6de032a --- /dev/null +++ b/doc/ref_guide/doxygen/module-simix.doc @@ -0,0 +1,8 @@ +/** @addtogroup SIMIX_API + + \section Coming soon + @{ */ + /** @defgroup m_datatypes_management_details SIMIX datatypes management details */ +/** @} */ + + diff --git a/doc/module-surf.doc b/doc/ref_guide/doxygen/module-surf.doc similarity index 100% rename from doc/module-surf.doc rename to doc/ref_guide/doxygen/module-surf.doc diff --git a/doc/module-trace.doc b/doc/ref_guide/doxygen/module-trace.doc similarity index 100% rename from doc/module-trace.doc rename to doc/ref_guide/doxygen/module-trace.doc diff --git a/doc/module-xbt.doc b/doc/ref_guide/doxygen/module-xbt.doc similarity index 86% rename from doc/module-xbt.doc rename to doc/ref_guide/doxygen/module-xbt.doc index 646c948cb4..0a270af28e 100644 --- a/doc/module-xbt.doc +++ b/doc/ref_guide/doxygen/module-xbt.doc @@ -65,6 +65,7 @@ /** @defgroup XBT_fifo Fifo: generic workqueue */ /** @defgroup XBT_swag Swag: O(1) set datatype */ /** @defgroup XBT_heap Heap: generic heap data structure */ + /** @defgroup XBT_dd Data description */ /** @} */ @@ -78,13 +79,20 @@ @{ */ /** @defgroup XBT_graph General purpose graph library */ -/** @} */ End of XBT_misc + /** @defgroup XBT_parmap Parallel map */ + /** @defgroup XBT_peer Peer */ + /** @defgroup XBT_queue Queue */ + /** @defgroup XBT_sock Sock */ + /** @defgroup XBT_synchro Synchro stuff */ + /** @defgroup XBT_thread Thread stuff */ + /** @defgroup XBT_context Portable context implementation */ +/** @} */ /* ************************* * * * PORTABILITY-INTERNALS * * (not included in documentation) * ************************* */ - /** \defgroup XBT_context Portable context implementation + /** \addtogroup XBT_context Portable context implementation * \brief Contexts are a higher level system than setjump/longjmp * for non-preemptible threads. * diff --git a/doc/modules.doc b/doc/ref_guide/doxygen/modules.doc similarity index 100% rename from doc/modules.doc rename to doc/ref_guide/doxygen/modules.doc diff --git a/doc/ref_guide/doxygen/simgrid.tag b/doc/ref_guide/doxygen/simgrid.tag new file mode 100644 index 0000000000..0fa98773c5 --- /dev/null +++ b/doc/ref_guide/doxygen/simgrid.tag @@ -0,0 +1,7409 @@ + + + + index + + index + ref_guide_welcome + a_quick_glance + overview + overview_envs + overview_kernel + overview_fondation + lucas_layer + + + API_index + Full Index + group__API__index.html + + + SimGrid_API + SimGrid modules + group__SimGrid__API.html + API_index + XBT_API + MSG_API + SIMIX_API + GRAS_API + AMOK_API + SMPI_API + SD_API + SURF_API + TRACE_API + + + XBT_API + XBT + group__XBT__API.html + XBT_grounding + XBT_adt + XBT_misc + + + MSG_API + MSG + group__MSG__API.html + msg_simulation + m_process_management + m_host_management + m_task_management + msg_task_usage + msg_VMs + msg_file_management + msg_trace_driven + MSG_LUA + msg_deprecated_functions + MSG_who + jMSG_who + MSG_funct + + + SIMIX_API + SIMIX + group__SIMIX__API.html + + void + SIMIX_global_init + group__SIMIX__API.html + ga61a5c57ccf08e71bac21571b94ec1a38 + (int *argc, char **argv) + + + void + SIMIX_clean + group__SIMIX__API.html + gab937cbbe75ee53500824664ed940ad65 + (void) + + + double + SIMIX_get_clock + group__SIMIX__API.html + ga8298a6bf3cdb667f2aca7b1cfd9b2eb8 + (void) + + + void + SIMIX_run + group__SIMIX__API.html + gaebdd718ef8f26134756d5fa6de1ff854 + (void) + + + + GRAS_API + GRAS + group__GRAS__API.html + GRAS_comm + GRAS_run + + void + gras_init + group__GRAS__API.html + ga2f7e006b4b7297a5d8979e299ddf9112 + (int *argc, char **argv) + + + void + gras_exit + group__GRAS__API.html + gaee47a46ba8da34d67242a80552252dbe + (void) + + GRAS_who + GRAS_funct + + + AMOK_API + AMOK + group__AMOK__API.html + AMOK_bw + AMOK_pm + + + SMPI_API + SMPI + group__SMPI__API.html + SMPI_who + SMPI_what + SMPI_adapting + SMPI_compiling + SMPI_executing + + + SD_API + SimDag + group__SD__API.html + SD_datatypes_management + SD_workstation_management + SD_link_management + SD_task_management + SD_task_dependency_management + SD_simulation + SD_who + SD_func + + + SURF_API + SURF + group__SURF__API.html + SURF_simulation + SURF_actions + SURF_resources + SURF_build_api + SURF_doc + + + TRACE_API + TRACE + group__TRACE__API.html + TRACE_category + TRACE_mark + TRACE_user_variables + + int + TRACE_platform_graph_export_graphviz + group__TRACE__API.html + ga77e1127c6602edd4f233ca62d6de36e0 + (const char *filename) + + + xbt_dynar_t + TRACE_get_node_types + group__TRACE__API.html + ga845e0cfbd8042ac70adf394df024e350 + (void) + + + xbt_dynar_t + TRACE_get_edge_types + group__TRACE__API.html + gaf5542d615046120aa8a3526268b9fa7f + (void) + + TRACE_doc + + + XBT_grounding + Grounding features + group__XBT__grounding.html + XBT_syscall + XBT_str + XBT_ex + XBT_log + XBT_error + XBT_config + XBT_mallocator + + + XBT_adt + Usual data structures + group__XBT__adt.html + XBT_dynar + XBT_dict + XBT_set + XBT_fifo + XBT_swag + XBT_heap + + + XBT_misc + Misc general purposes library components + group__XBT__misc.html + XBT_graph + XBT_parmap + XBT_peer + XBT_queue + XBT_sock + XBT_synchro + XBT_thread + + + XBT_syscall + Malloc and friends + group__XBT__syscall.html + + #define + xbt_new + group__XBT__syscall.html + ga1d356d21c8a37c3e19de37d5f7896810 + (type, count) + + + #define + xbt_new0 + group__XBT__syscall.html + gaaea21518b543392c869f6564c36cdc2b + (type, count) + + + static + __attribute__ + group__XBT__syscall.html + gab6d5dfd5b7461f3942dfdd1eda223237 + ((always_inline)) char *xbt_strdup(const char *s) + + + void + xbt_backtrace_display_current + group__XBT__syscall.html + ga36813e215c49af92c8a62dd8286d6421 + (void) + + + void + xbt_free_ref + group__XBT__syscall.html + gadc6cc4c3185be3635bb1ef2d9528f67a + (void *d) + + + + XBT_str + String related functions + group__XBT__str.html + + char * + xbt_string_t + group__XBT__str.html + ga1537bf8b2602e0aeeb87032803a72389 + + + + void + xbt_str_rtrim + group__XBT__str.html + ga9d7c43274b5a6339adfc724e2efd0ead + (char *s, const char *char_list) + + + void + xbt_str_ltrim + group__XBT__str.html + gaeb745f202229799d900aa3a20953186f + (char *s, const char *char_list) + + + void + xbt_str_trim + group__XBT__str.html + ga5259c70a74df4d63f39e68cc5fe8f1b3 + (char *s, const char *char_list) + + + xbt_dynar_t + xbt_str_split + group__XBT__str.html + ga91672ded3b13340f1dfa6fb5ce64fb42 + (const char *s, const char *sep) + + + xbt_dynar_t + xbt_str_split_quoted + group__XBT__str.html + gaa6839f81f1789acf3865eeade8c23c77 + (const char *s) + + + xbt_dynar_t + xbt_str_split_quoted_in_place + group__XBT__str.html + ga2454f448cda4a1ba94409196a2f31d78 + (char *s) + + + xbt_dynar_t + xbt_str_split_str + group__XBT__str.html + ga84523a36aef41594015c8c2a22256385 + (const char *s, const char *sep) + + + char * + xbt_str_join + group__XBT__str.html + ga1271575a77363ce72fbdf65298a49622 + (xbt_dynar_t dynar, const char *sep) + + + char * + xbt_str_join_array + group__XBT__str.html + ga17585fd9f6432df9f84db21059486900 + (const char *const *strs, const char *sep) + + + void + xbt_str_subst + group__XBT__str.html + ga2aaaa9b7cdc3e30d0a2b85c7561ad0e6 + (char *str, char from, char to, int amount) + + + char * + xbt_str_varsubst + group__XBT__str.html + ga42a82b549ada759cfc7ec4e0999dde1e + (const char *str, xbt_dict_t patterns) + + + void + xbt_str_strip_spaces + group__XBT__str.html + ga5b8c3f04c5bd47a54c6700c634c48d40 + (char *) + + + char * + xbt_str_diff + group__XBT__str.html + gadfd8938aaade2e991b8b51bed5aea886 + (const char *a, const char *b) + + + char * + xbt_str_from_file + group__XBT__str.html + ga3d0726833fdc157351600358cc67097c + (FILE *file) + + + static unsigned int + xbt_str_hash_ext + group__XBT__str.html + ga10c19e31b7f944a5f426a7d436a44e6d + (const char *str, int str_len) + + + static unsigned int + xbt_str_hash + group__XBT__str.html + ga7b484f038534879efb07619091341977 + (const char *str) + + + + XBT_ex + Exception support + group__XBT__ex.html + xbt_ex_t + + #define + TRY + group__XBT__ex.html + gad2746371528bdf15c3910b7bf217dac0 + + + + #define + TRY_CLEANUP + group__XBT__ex.html + ga24540d57ce6a4e72e2c2150327972fc6 + + + + #define + CATCH + group__XBT__ex.html + gab3271e393133e395129cc74272f9fae2 + (e) + + + #define + CATCH_ANONYMOUS + group__XBT__ex.html + ga070f91546c08b1e31c1d7184c3c9b345 + + + + #define + THROW_PREPARE + group__XBT__ex.html + ga26394bf7f63640059e73dc55b5911a9b + (_throw_ctx, c, v, m) + + + #define + THROW + group__XBT__ex.html + gae18641b6be3a88a74eb003978399fe90 + (c, v) + + + #define + THROWF + group__XBT__ex.html + gaf104c05a68884bf85630ef40ca8ae774 + (c, v,...) + + + #define + RETHROW + group__XBT__ex.html + ga241d764fad0bff69d31c12b3066c276c + + + + #define + RETHROWF + group__XBT__ex.html + ga4826ac71c1c4d2ec13eeac8320898dc9 + (...) + + + xbt_errcat_t + group__XBT__ex.html + gaa45fec59aa57056784554a7f998f0854 + + + + unknown_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854a38ca7f2d055a68295cbd837470325f46 + + + + arg_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854a1d6d5b33334f960325a65e5c021aca16 + + + + bound_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854ae2954a4c5a79d65f9f68675fea93376b + + + + mismatch_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854aad84e78423b0ba9b3df634f564a38586 + + + + not_found_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854a2a966e9e887d3ab79628272781200439 + + + + system_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854a0cc55923f6bdf388d75ac17681055815 + + + + network_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854afa15abb01e5f46363458529588f0d871 + + + + timeout_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854acbb4310f650e6fddbbad783293eff676 + + + + cancel_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854a78725e8318a373565146a9c29698eb30 + + + + thread_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854a2d90a8bed8343426b9732511aa2cb34c + + + + host_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854a1486a4899ea0336633c33a77c636eea8 + + + + tracing_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854a288db5d5a882653cc5466f62369ab676 + + + + io_error + group__XBT__ex.html + ggaa45fec59aa57056784554a7f998f0854a7867239bb18a1f74d007fd1cc5f2202c + + + + const char * + xbt_ex_catname + group__XBT__ex.html + gad584839e617fbfe728225fc7bcfcda9f + (xbt_errcat_t cat) + + + void + xbt_ex_free + group__XBT__ex.html + ga9a7c9f33be5ab51ff734142b07178553 + (xbt_ex_t e) + + + void + xbt_backtrace_display_current + group__XBT__ex.html + ga36813e215c49af92c8a62dd8286d6421 + (void) + + + int + xbt_backtrace_no_malloc + group__XBT__ex.html + gadb6f0cc90ede2c80fff99a2f3a8ea02f + (void **bt, int size) + + + void + xbt_backtrace_current + group__XBT__ex.html + ga3f9f1d5af6de5e90e5501e105b0e593c + (xbt_ex_t *e) + + + void + xbt_backtrace_display + group__XBT__ex.html + gaea1e39d44bcaaebb91a34f6ef053c60c + (xbt_ex_t *e) + + XBT_ex_toc + XBT_ex_intro + XBT_ex_base + XBT_ex_pitfalls + + + XBT_log + Logging support + group__XBT__log.html + XBT_log_cats + + #define + XBT_LOG_STATIC_THRESHOLD + group__XBT__log.html + ga78721bb3ac4ce5dcddb5b102d03ec9ad + + + + #define + XBT_LOG_NEW_SUBCATEGORY + group__XBT__log.html + ga1cd0df7ea8110bd27c2843812f4c93ee + (catName, parent, desc) + + + #define + XBT_LOG_NEW_CATEGORY + group__XBT__log.html + ga9e4d4fda6d921febf75e85f9cd9d611a + (catName, desc) + + + #define + XBT_LOG_DEFAULT_CATEGORY + group__XBT__log.html + gaa23cb30f6de5c9e0a26a6516817c7e20 + (cname) + + + #define + XBT_LOG_NEW_DEFAULT_CATEGORY + group__XBT__log.html + ga5094a0e812d0012e6ee4d2257b1a13f1 + (cname, desc) + + + #define + XBT_LOG_NEW_DEFAULT_SUBCATEGORY + group__XBT__log.html + ga8a4327fc994afcfb2eaebea0c4d1b00a + (cname, parent, desc) + + + #define + XBT_LOG_EXTERNAL_CATEGORY + group__XBT__log.html + ga7db05649e5c3c7aba06909409e470143 + (cname) + + + #define + XBT_LOG_EXTERNAL_DEFAULT_CATEGORY + group__XBT__log.html + ga28625f3f3aa5986954a2b90f029c2e96 + (cname) + + + #define + XBT_LOG_ISENABLED + group__XBT__log.html + ga6c9d37281690342c607e30b1f0b59aed + (catName, priority) + + + #define + XBT_CDEBUG + group__XBT__log.html + ga08edef341742c903623742c6e05d54ee + (c,...) + + + #define + XBT_CVERB + group__XBT__log.html + ga2c0bed18aac8cf41d8f3480513f564bc + (c,...) + + + #define + XBT_CINFO + group__XBT__log.html + gac2f65621104f3bcff51738a12d5c2921 + (c,...) + + + #define + XBT_CWARN + group__XBT__log.html + ga2c14b44f6b1abbf73104d17727315e3b + (c,...) + + + #define + XBT_CERROR + group__XBT__log.html + ga0cd5463eb5b259b005b5c3f87db1709a + (c,...) + + + #define + XBT_CCRITICAL + group__XBT__log.html + ga4b5b9ad4a5086e2e9bd2ee47b3c03c9c + (c,...) + + + #define + XBT_DEBUG + group__XBT__log.html + gaec7da836fa1482fcda89227dfb1284d9 + (...) + + + #define + XBT_VERB + group__XBT__log.html + gab9815968eb142e81c5e661ececb1f0f3 + (...) + + + #define + XBT_INFO + group__XBT__log.html + ga57f4469c36aeb5f44b5786882b364af8 + (...) + + + #define + XBT_WARN + group__XBT__log.html + ga6accdad9dccecd8d220a479ea0202827 + (...) + + + #define + XBT_ERROR + group__XBT__log.html + ga46c64033e6f2d9f309f498bbb2c475f5 + (...) + + + #define + XBT_CRITICAL + group__XBT__log.html + gadb4c7510140f9e4437be797baf5122a2 + (...) + + + #define + XBT_IN + group__XBT__log.html + ga20e7ed6a7dd096897446901c39e1194f + (...) + + + #define + XBT_OUT + group__XBT__log.html + gaec5266e036c60029988444fcfdb91e6c + (...) + + + #define + XBT_HERE + group__XBT__log.html + gaed62d764d379720d6ce03d2a0d9c3c32 + (...) + + + e_xbt_log_priority_t + group__XBT__log.html + ga01ff08eb23b4f14bb759c676bcf8df82 + + + + xbt_log_priority_trace + group__XBT__log.html + gga01ff08eb23b4f14bb759c676bcf8df82a1b9b706830e4aa1405157d20117aa5cd + + + + xbt_log_priority_debug + group__XBT__log.html + gga01ff08eb23b4f14bb759c676bcf8df82aac8ecdd32b640581940959e6f9ed1588 + + + + xbt_log_priority_verbose + group__XBT__log.html + gga01ff08eb23b4f14bb759c676bcf8df82afef8e3f2e237f8de9c839a2f5c875fc7 + + + + xbt_log_priority_info + group__XBT__log.html + gga01ff08eb23b4f14bb759c676bcf8df82af28091fa16fda657d0768baaab6f4c27 + + + + xbt_log_priority_warning + group__XBT__log.html + gga01ff08eb23b4f14bb759c676bcf8df82ac87b95b266f551288e8d9faec534baa9 + + + + xbt_log_priority_error + group__XBT__log.html + gga01ff08eb23b4f14bb759c676bcf8df82a32afa42aab40395dbabb07cafbf84eb5 + + + + xbt_log_priority_critical + group__XBT__log.html + gga01ff08eb23b4f14bb759c676bcf8df82a8bd5d340adeae3a8e5a3182912c230f3 + + + + xbt_log_priority_infinite + group__XBT__log.html + gga01ff08eb23b4f14bb759c676bcf8df82a875884ddb873e6613178c5b3c71b8a77 + + + + void + xbt_log_control_set + group__XBT__log.html + ga2289997893363b1ad5f7ff32cbfbf432 + (const char *control_string) + + XBT_log_toc + log_overview + log_cat + log_pri + log_app + log_lay + log_hist + log_API + log_API_cat + log_API_pri + log_API_isenabled + log_API_subcat + log_API_easy + log_API_example + log_user + log_use_conf + log_use_conf_thres + log_use_conf_multi + log_use_conf_fmt + log_use_conf_app + log_use_conf_add + log_use_misc + log_internals + log_in_perf + log_in_app + + + XBT_error + Assert macro familly + group__XBT__error.html + + #define + xbt_assert + group__XBT__error.html + gadd837b8bf67480aea409a8580072f0be + (...) + + + #define + xbt_abort + group__XBT__error.html + gaca8531c4c752e94c638c030c80528021 + () + + + #define + xbt_die + group__XBT__error.html + ga9bf4916de59dbf2c5bc790e85df7c189 + (...) + + + + XBT_config + Configuration support + group__XBT__config.html + XBT_cfg_use + XBT_cfg_decl + XBT_cfg_register + XBT_cfg_get + XBT_cfg_ex + + + XBT_mallocator + Mallocators + group__XBT__mallocator.html + XBT_mallocator_cons + XBT_mallocator_objects + + + XBT_dynar + Dynar: generic dynamic array + group__XBT__dynar.html + XBT_dynar_cons + XBT_dynar_array + XBT_dynar_misc + XBT_dynar_perl + XBT_dynar_ctn + XBT_dynar_speed + XBT_dynar_cursor + XBT_dynar_exscal + XBT_dynar_exptr + + + XBT_dict + Dict: generic dictionnary + group__XBT__dict.html + XBT_dict_cons + XBT_dict_basic + XBT_dict_nnul + XBT_dict_curs + + + XBT_set + Set: generic set datatype + group__XBT__set.html + XBT_set_cons + XBT_set_basic + XBT_set_curs + + + XBT_fifo + Fifo: generic workqueue + group__XBT__fifo.html + XBT_fifo_cons + XBT_fifo_perl + XBT_fifo_direct + XBT_fifo_misc + + + XBT_swag + Swag: O(1) set datatype + group__XBT__swag.html + XBT_swag_type + XBT_swag_func + XBT_swag_curs + + + XBT_heap + Heap: generic heap data structure + group__XBT__heap.html + + xbt_heap_t + xbt_heap_new + group__XBT__heap.html + gaa4b5f8cfee32bb2df3cb2b5d6649b114 + (int init_size, void_f_pvoid_t const free_func) + + + void + xbt_heap_free + group__XBT__heap.html + gace5e6cc225d3698de6af159229c94587 + (xbt_heap_t H) + + + int + xbt_heap_size + group__XBT__heap.html + ga21ef0cccfab2e937012f1286cc3ecb66 + (xbt_heap_t H) + + + void + xbt_heap_push + group__XBT__heap.html + ga5e44b85be2d2ba1d7ed9d400546f43dd + (xbt_heap_t H, void *content, double key) + + + void * + xbt_heap_pop + group__XBT__heap.html + ga61f5e2665882b14b15a48bf66e9631a4 + (xbt_heap_t H) + + + double + xbt_heap_maxkey + group__XBT__heap.html + gaecf9ff064287ee533e166d631aced6df + (xbt_heap_t H) + + + void * + xbt_heap_maxcontent + group__XBT__heap.html + ga804cb0f43208ddf228b515ec14f13965 + (xbt_heap_t H) + + + void + xbt_heap_set_update_callback + group__XBT__heap.html + ga0617a1f1c3f63f951f17698e783bc24d + (xbt_heap_t H, void(*update_callback)(void *, int)) + + + void * + xbt_heap_remove + group__XBT__heap.html + ga2035074b0de4d7a74fc5f9a22c148437 + (xbt_heap_t H, int i) + + + + XBT_graph + General purpose graph library + group__XBT__graph.html + + xbt_graph_t + xbt_graph_new_graph + group__XBT__graph.html + ga782dba2130eee76b8bd4e6934098fd8f + (unsigned short int directed, void *data) + + + xbt_node_t + xbt_graph_new_node + group__XBT__graph.html + ga95d8d120c9be3efbed1880700458d8ca + (xbt_graph_t g, void *data) + + + xbt_edge_t + xbt_graph_new_edge + group__XBT__graph.html + gaec90776579173b58de9b89868abbda0f + (xbt_graph_t g, xbt_node_t src, xbt_node_t dst, void *data) + + + void * + xbt_graph_node_get_data + group__XBT__graph.html + gaed845d52f5432f7940e1bceb336d3c38 + (xbt_node_t node) + + + void + xbt_graph_node_set_data + group__XBT__graph.html + gaa100e0fe6d317aa185dffe89b3a9deae + (xbt_node_t node, void *data) + + + void * + xbt_graph_edge_get_data + group__XBT__graph.html + ga7105c211e327da8f90b432224451cfb3 + (xbt_edge_t edge) + + + void + xbt_graph_edge_set_data + group__XBT__graph.html + ga9cbe4fe591cf0d6746909db9ae2cd2aa + (xbt_edge_t edge, void *data) + + + xbt_edge_t + xbt_graph_get_edge + group__XBT__graph.html + ga4a037e91f75ccee400b51b5564720693 + (xbt_graph_t g, xbt_node_t src, xbt_node_t dst) + + + void + xbt_graph_edge_set_length + group__XBT__graph.html + ga68339a976c82e67edf79fa59d4619396 + (xbt_edge_t e, double length) + + + double + xbt_graph_edge_get_length + group__XBT__graph.html + gac906c4328b3d910457c960cd64d70784 + (xbt_edge_t e) + + + double * + xbt_graph_get_length_matrix + group__XBT__graph.html + ga3c4697edd9ee89142ec85ed882aad249 + (xbt_graph_t g) + + + void + xbt_graph_free_node + group__XBT__graph.html + ga966d2089b5392e5f556a6d149bdc112c + (xbt_graph_t g, xbt_node_t n, void_f_pvoid_t node_free_function, void_f_pvoid_t edge_free_function) + + + void + xbt_graph_free_edge + group__XBT__graph.html + ga6b9895d6065b7e122bc55c71e32da821 + (xbt_graph_t g, xbt_edge_t e, void_f_pvoid_t free_function) + + + void + xbt_graph_free_graph + group__XBT__graph.html + gad290d4c3fa3f0c82f7f6cc18a3506546 + (xbt_graph_t g, void_f_pvoid_t node_free_function, void_f_pvoid_t edge_free_function, void_f_pvoid_t graph_free_function) + + + xbt_dynar_t + xbt_graph_get_nodes + group__XBT__graph.html + gada4b1109afba1fe3a8f046a45694c707 + (xbt_graph_t g) + + + xbt_dynar_t + xbt_graph_get_edges + group__XBT__graph.html + ga1c292fb71d5119d59496a89d90a8ba30 + (xbt_graph_t g) + + + xbt_dynar_t + xbt_graph_node_get_outedges + group__XBT__graph.html + gac8dd5691103f6c69b8f773a5937c2a8a + (xbt_node_t n) + + + xbt_node_t + xbt_graph_edge_get_source + group__XBT__graph.html + ga8946bd8838820677e2e44e793be2c9e6 + (xbt_edge_t e) + + + xbt_node_t + xbt_graph_edge_get_target + group__XBT__graph.html + ga137cf4ffadf401a1080795664d99834a + (xbt_edge_t e) + + + void + xbt_graph_export_graphviz + group__XBT__graph.html + gacbbb619bcd7032ba6c0f8e932126d26b + (xbt_graph_t g, const char *filename, const char *(node_name)(xbt_node_t), const char *(edge_name)(xbt_edge_t)) + + + void + xbt_graph_export_graphxml + group__XBT__graph.html + ga59db9ffe13c1c4e4012e61fe38525363 + (xbt_graph_t g, const char *filename, const char *(node_name)(xbt_node_t), const char *(edge_name)(xbt_edge_t), const char *(node_data_print)(void *), const char *(edge_data_print)(void *)) + + + xbt_graph_t + xbt_graph_load + group__XBT__graph.html + ga11cca6af16cef8e4ea7f5f340da517dd + (const char *filename) + + + void + xbt_graph_save + group__XBT__graph.html + ga2b6d7cfdc45b1df905eba88fdc1d8c18 + (xbt_graph_t span, const char *filename, const char *(nname)(xbt_node_t), const char *(ename)(xbt_edge_t)) + + + xbt_node_t * + xbt_graph_shortest_paths + group__XBT__graph.html + gaa5d7e658935aa26a17acaa1cdcd575a4 + (xbt_graph_t g) + + + xbt_node_t * + xbt_graph_topo_sort + group__XBT__graph.html + ga80c9aa63aac343d7b3ba246a6e4f6297 + (xbt_graph_t g) + + + xbt_edge_t * + xbt_graph_spanning_tree_prim + group__XBT__graph.html + gac305eb0dfe08abbe849f2a74dfa3a3a4 + (xbt_graph_t g) + + + + XBT_parmap + Parallel map + group__XBT__parmap.html + + struct s_xbt_parmap * + xbt_parmap_t + group__XBT__parmap.html + gaebe875868080812c5e303884551ced62 + + + + e_xbt_parmap_mode_t + group__XBT__parmap.html + gacbdbf85f704718b8680f13e56c618e7a + + + + XBT_PARMAP_POSIX + group__XBT__parmap.html + ggacbdbf85f704718b8680f13e56c618e7aaa076c8a9592fd4f8656a078483688700 + + + + XBT_PARMAP_FUTEX + group__XBT__parmap.html + ggacbdbf85f704718b8680f13e56c618e7aaec7bc115136c58098a826d86296d2f7d + + + + XBT_PARMAP_BUSY_WAIT + group__XBT__parmap.html + ggacbdbf85f704718b8680f13e56c618e7aafd6884f2f0271777d1e8ea1db1b29229 + + + + XBT_PARMAP_DEFAULT + group__XBT__parmap.html + ggacbdbf85f704718b8680f13e56c618e7aa0329f52f37cdb070e8d64330c7a1b395 + + + + xbt_parmap_t + xbt_parmap_new + group__XBT__parmap.html + ga939a0ab549af87ff1df13642396d5087 + (unsigned int num_workers, e_xbt_parmap_mode_t mode) + + + void + xbt_parmap_destroy + group__XBT__parmap.html + ga3e1c75bd9e1a502350a2d2098dc316bb + (xbt_parmap_t parmap) + + + void + xbt_parmap_apply + group__XBT__parmap.html + ga7d2b99167edbcbccb7a514451042f09f + (xbt_parmap_t parmap, void_f_pvoid_t fun, xbt_dynar_t data) + + + void * + xbt_parmap_next + group__XBT__parmap.html + gac667744f002bbf8d1d8dc32e36d0d308 + (xbt_parmap_t parmap) + + + + XBT_peer + Peer + group__XBT__peer.html + s_xbt_peer + + struct s_xbt_peer * + xbt_peer_t + group__XBT__peer.html + gad2304165af1ed80fe6d82eb14343eca7 + + + + struct s_xbt_peer + s_xbt_peer_t + group__XBT__peer.html + ga6d62b8bce4ac8f6206f66f8dd34d2532 + + + + xbt_peer_t + xbt_peer_new + group__XBT__peer.html + ga2d87fccb2ac0c6f71db29ed857b01eb2 + (const char *name, int port) + + + xbt_peer_t + xbt_peer_from_string + group__XBT__peer.html + ga0d8d75aed70cb99a925b8974ce8ce4e4 + (const char *peerport) + + + xbt_peer_t + xbt_peer_copy + group__XBT__peer.html + ga9bc5b54374abccaff888cd3852c85702 + (xbt_peer_t h) + + + void + xbt_peer_free + group__XBT__peer.html + ga251d6140c311d7c04e503e3d463adba4 + (xbt_peer_t peer) + + + void + xbt_peer_free_voidp + group__XBT__peer.html + ga793bb9b0c2ee6221c8e9b7d3c886dbb9 + (void *d) + + + + XBT_queue + Queue + group__XBT__queue.html + + struct s_xbt_queue_ * + xbt_queue_t + group__XBT__queue.html + gae44d114ab24c5175b9500f0a80058f4f + + + + xbt_queue_t + xbt_queue_new + group__XBT__queue.html + ga04f81fdbf3a660617deb9f6f48234161 + (int capacity, unsigned long elm_size) + + + void + xbt_queue_free + group__XBT__queue.html + gae4509298241a6179e0b61667faebe613 + (xbt_queue_t *queue) + + + unsigned long + xbt_queue_length + group__XBT__queue.html + ga49cfb91b2f730487bd31f2f9ffb974fa + (const xbt_queue_t queue) + + + void + xbt_queue_push + group__XBT__queue.html + ga687d865601b586f65162cde66b944163 + (xbt_queue_t queue, const void *src) + + + void + xbt_queue_pop + group__XBT__queue.html + ga368e7ef82906e1c5baefa8083879c215 + (xbt_queue_t queue, void *const dst) + + + void + xbt_queue_unshift + group__XBT__queue.html + gaba17464ddde9dec336376a2e4e9f3a4e + (xbt_queue_t queue, const void *src) + + + void + xbt_queue_shift + group__XBT__queue.html + ga60a1272bb4a1463b8254cf857b8d7441 + (xbt_queue_t queue, void *const dst) + + + void + xbt_queue_push_timed + group__XBT__queue.html + gab68bab7ad2af3afc35130971d668c2b3 + (xbt_queue_t queue, const void *src, double delay) + + + void + xbt_queue_unshift_timed + group__XBT__queue.html + ga9a868b5c72f70f207999b8a0beefed84 + (xbt_queue_t queue, const void *src, double delay) + + + void + xbt_queue_shift_timed + group__XBT__queue.html + ga48988a7bf6134fc397147b16408c0778 + (xbt_queue_t queue, void *const dst, double delay) + + + void + xbt_queue_pop_timed + group__XBT__queue.html + ga99d1d70f1a59f3f45bcd4e5d35b77f51 + (xbt_queue_t queue, void *const dst, double delay) + + + + XBT_sock + Sock + group__XBT__sock.html + XBT_sock_create + XBT_sock_info + XBT_sock_meas + XBT_sock_plugin + + + XBT_synchro + Synchro + group__XBT__synchro.html + + struct s_xbt_thread_ * + xbt_thread_t + group__XBT__synchro.html + gabe2e83a69fdb54e7513cfde241a8b6e9 + + + + struct s_xbt_mutex_ * + xbt_mutex_t + group__XBT__synchro.html + ga6e01b815cfcb1b932c9ad5c334ee82cd + + + + struct s_xbt_cond_ * + xbt_cond_t + group__XBT__synchro.html + gace9e6b68048d41411b38765f614c1301 + + + + xbt_thread_t + xbt_thread_create + group__XBT__synchro.html + ga7faf7010fd7bc47cd1487fe7bfba2214 + (const char *name, void_f_pvoid_t start_routine, void *param, int joinable) + + + xbt_thread_t + xbt_thread_self + group__XBT__synchro.html + gab781e679c968c3a7ae12d32ffa3dd63e + (void) + + + const char * + xbt_thread_name + group__XBT__synchro.html + ga3b74bd7c7a6fbdf1ef7e4a9c9f6035c0 + (xbt_thread_t t) + + + const char * + xbt_thread_self_name + group__XBT__synchro.html + ga44f3eaa106769bb7bd269b95e4dc46e8 + (void) + + + void + xbt_thread_join + group__XBT__synchro.html + ga4633b9357c418a88723d3a11f02b9280 + (xbt_thread_t thread) + + + void + xbt_thread_cancel + group__XBT__synchro.html + gaeaeb76bcf1386f57104957ffe50dd913 + (xbt_thread_t thread) + + + void + xbt_thread_exit + group__XBT__synchro.html + ga2c8ac4c62ee9788b889dd135db67871f + (void) + + + void + xbt_thread_yield + group__XBT__synchro.html + gad94ddaafcea741ad2cce5b97184ccb1f + (void) + + + xbt_mutex_t + xbt_mutex_init + group__XBT__synchro.html + ga2b5f21533b44d2dd61c9335d0db48e93 + (void) + + + void + xbt_mutex_acquire + group__XBT__synchro.html + gaa6e5de3feee929f5212a988cc67159b5 + (xbt_mutex_t mutex) + + + void + xbt_mutex_release + group__XBT__synchro.html + ga90c18013e0a7a19ee22cb668b6082b39 + (xbt_mutex_t mutex) + + + void + xbt_mutex_timedacquire + group__XBT__synchro.html + ga898fab3b59879e858fc8b6aac6b06fd6 + (xbt_mutex_t mutex, double delay) + + + void + xbt_mutex_destroy + group__XBT__synchro.html + ga4deb9869591b5673738ae97a7d12dd10 + (xbt_mutex_t mutex) + + + xbt_cond_t + xbt_cond_init + group__XBT__synchro.html + ga9ec2fa18ad2edb1356034fb6c488a9a3 + (void) + + + void + xbt_cond_wait + group__XBT__synchro.html + ga083997cea536a10a81ed9cbdee741ab4 + (xbt_cond_t cond, xbt_mutex_t mutex) + + + void + xbt_cond_timedwait + group__XBT__synchro.html + ga2283204fd8b68891a404c4101542a7e3 + (xbt_cond_t cond, xbt_mutex_t mutex, double delay) + + + void + xbt_cond_signal + group__XBT__synchro.html + ga20471db1f98e58b75d8d58ed66e48438 + (xbt_cond_t cond) + + + void + xbt_cond_broadcast + group__XBT__synchro.html + ga0d3469f3d7692423b82786ffa4e30c70 + (xbt_cond_t cond) + + + void + xbt_cond_destroy + group__XBT__synchro.html + ga8382820073c787494cafa0634e86c96f + (xbt_cond_t cond) + + + + XBT_thread + Thread + group__XBT__thread.html + + struct xbt_os_thread_ * + xbt_os_thread_t + group__XBT__thread.html + ga7994e3241b60f854c77043c49a83873c + + + + struct xbt_os_mutex_ * + xbt_os_mutex_t + group__XBT__thread.html + ga51b6d74f9dcfa8d7563ddf6386f9bd89 + + + + struct xbt_os_rmutex_ * + xbt_os_rmutex_t + group__XBT__thread.html + gaac45eea7caeae848b86cf78d989d9aee + + + + struct xbt_os_cond_ * + xbt_os_cond_t + group__XBT__thread.html + ga2c6224cb25614dc8b972aca6288ebe60 + + + + struct xbt_os_sem_ * + xbt_os_sem_t + group__XBT__thread.html + gab48cac979eebc8c1e26ca7adc7cec0ac + + + + int + xbt_os_get_numcores + group__XBT__thread.html + ga737321f05368f70c51d5d4c939b3aa11 + (void) + + + + XBT_context + Portable context implementation + group__XBT__context.html + + + msg_simulation + Main MSG simulation Functions + group__msg__simulation.html + + void + MSG_launch_application + group__msg__simulation.html + ga012d470de7974da7262d0020e00117e9 + (const char *file) + + + void + MSG_function_register + group__msg__simulation.html + ga21e94a4e7b26dea140b0c71a2a4f4352 + (const char *name, xbt_main_func_t code) + + + void + MSG_function_register_default + group__msg__simulation.html + ga698d00aec4b3d7f8cf90c4d1a4595c9c + (xbt_main_func_t code) + + + xbt_main_func_t + MSG_get_registered_function + group__msg__simulation.html + ga61b2e271c59ff50d38de7a0f9858b4b1 + (const char *name) + + + void + MSG_create_environment + group__msg__simulation.html + gae08e089d52a2928680e0957e7152d79d + (const char *file) + + + void + MSG_global_init_args + group__msg__simulation.html + gafcdb7c01201834e206e0361e8c5c82cb + (int *argc, char **argv) + + + void + MSG_global_init + group__msg__simulation.html + gad3be1ae7daf2db9c97efbfe0b867b021 + (int *argc, char **argv) + + + MSG_error_t + MSG_main + group__msg__simulation.html + ga24792ab16591c6dec202bc5052cc25a2 + (void) + + + int + MSG_process_killall + group__msg__simulation.html + ga0dedd7962cd7d916406ef45c471f6134 + (int reset_PIDs) + + + MSG_error_t + MSG_clean + group__msg__simulation.html + ga6546c3df17a709756ea32cfc4694d4fb + (void) + + + double + MSG_get_clock + group__msg__simulation.html + gacfeb7fa281abd0ff74b0591937cbb574 + (void) + + + MSG_error_t + group__msg__simulation.html + ga65ef31a33e9a49d675aae2bb6e1c9a04 + + + + MSG_OK + group__msg__simulation.html + gga65ef31a33e9a49d675aae2bb6e1c9a04a7db209a18c6374183567534787dccc1b + + + + MSG_TIMEOUT + group__msg__simulation.html + gga65ef31a33e9a49d675aae2bb6e1c9a04a2f90300a07b9b18285e1897b1fabfd06 + + + + MSG_TRANSFER_FAILURE + group__msg__simulation.html + gga65ef31a33e9a49d675aae2bb6e1c9a04a373b92dc6a498dea6ab408fb1670386f + + + + MSG_HOST_FAILURE + group__msg__simulation.html + gga65ef31a33e9a49d675aae2bb6e1c9a04a69965b44e0393c3ba81482bb975c55e5 + + + + MSG_TASK_CANCELED + group__msg__simulation.html + gga65ef31a33e9a49d675aae2bb6e1c9a04a115b6882d73de65d775aa8c7f1abaf70 + + + + + m_process_management + Process Management Functions + group__m__process__management.html + + struct s_smx_process * + m_process_t + group__m__process__management.html + ga229541175e44a52871f21c2c9ad195d1 + + + + m_process_t + MSG_process_create + group__m__process__management.html + ga24a4fa4f54cd2c0610bc7450b159caa1 + (const char *name, xbt_main_func_t code, void *data, m_host_t host) + + + m_process_t + MSG_process_create_with_arguments + group__m__process__management.html + gaeaf203a443fbeeb73dc431e116683a0e + (const char *name, xbt_main_func_t code, void *data, m_host_t host, int argc, char **argv) + + + m_process_t + MSG_process_create_with_environment + group__m__process__management.html + ga15383092bdc9dcf336ed6e5c89fe9066 + (const char *name, xbt_main_func_t code, void *data, m_host_t host, int argc, char **argv, xbt_dict_t properties) + + + void + MSG_process_kill + group__m__process__management.html + ga0ebb24ea30028e5e6068d5522018f9c0 + (m_process_t process) + + + MSG_error_t + MSG_process_migrate + group__m__process__management.html + ga8bc50f72b481a5d9739e44dbad6d322b + (m_process_t process, m_host_t host) + + + void * + MSG_process_get_data + group__m__process__management.html + gab9f682fb7882ec4c01656afd182383c0 + (m_process_t process) + + + MSG_error_t + MSG_process_set_data + group__m__process__management.html + ga9e345638e23ba05a0f736267df16131b + (m_process_t process, void *data) + + + void + MSG_process_set_data_cleanup + group__m__process__management.html + ga2c75b91ef5b61cad66a7fa3a72d122d0 + (void_f_pvoid_t data_cleanup) + + + m_host_t + MSG_process_get_host + group__m__process__management.html + ga6d6b3e7d1a940a38c8d8f658c991dcdc + (m_process_t process) + + + m_process_t + MSG_process_from_PID + group__m__process__management.html + gaa93af2b5029ca3382d0b2e11bc071636 + (int PID) + + + MSG_error_t + MSG_process_set_kill_time + group__m__process__management.html + ga10693e0affbaad361c5544d919b73b77 + (m_process_t process, double kill_time) + + + int + MSG_process_get_PID + group__m__process__management.html + ga3bc39583c0cfc5f717b19de723df209f + (m_process_t process) + + + int + MSG_process_get_PPID + group__m__process__management.html + gaaba5dff17c70f4314cb29b207c2da712 + (m_process_t process) + + + const char * + MSG_process_get_name + group__m__process__management.html + ga04cab97a347f6859859116dd374f8763 + (m_process_t process) + + + const char * + MSG_process_get_property_value + group__m__process__management.html + ga80ec919eccc1f948bfdc274b9d45b014 + (m_process_t process, const char *name) + + + xbt_dict_t + MSG_process_get_properties + group__m__process__management.html + gab3beb979ef69e1c5fcb8d792d71be064 + (m_process_t process) + + + int + MSG_process_self_PID + group__m__process__management.html + ga2eea811c91c7e85a21160b53d65ec79c + (void) + + + int + MSG_process_self_PPID + group__m__process__management.html + ga0b6f46d91ad8f9e6862e26d8a89d2047 + (void) + + + m_process_t + MSG_process_self + group__m__process__management.html + ga590e3dc01d73020cda06138ce48b4480 + (void) + + + MSG_error_t + MSG_process_suspend + group__m__process__management.html + gaad0e871e30546e4d862a0ce902856bd3 + (m_process_t process) + + + MSG_error_t + MSG_process_resume + group__m__process__management.html + gadf31a5d347675b8424eecf7e56234e65 + (m_process_t process) + + + int + MSG_process_is_suspended + group__m__process__management.html + ga1313f555af5bfa5a005ff7810d5db935 + (m_process_t process) + + + xbt_dict_t + simcall_process_get_properties + group__m__process__management.html + gad0cdca75425dbbb863121e44b1462612 + (smx_process_t process) + + + + m_host_management + Host Management Functions + group__m__host__management.html + + struct m_host * + m_host_t + group__m__host__management.html + ga58c09b1673ff3e9ac1cb0707ddd9700d + + + + MSG_error_t + MSG_host_set_data + group__m__host__management.html + gad367b0d8882669e18a51a9a07bad92ad + (m_host_t host, void *data) + + + void * + MSG_host_get_data + group__m__host__management.html + gae9305cac9c8fa4c903d2b84918160b90 + (m_host_t host) + + + const char * + MSG_host_get_name + group__m__host__management.html + gae699f28db85b3f21f1beb27bbc8ef71d + (m_host_t host) + + + m_host_t + MSG_host_self + group__m__host__management.html + gad0efbf291292f3cdff798d643fa04a39 + (void) + + + void + __MSG_host_destroy + group__m__host__management.html + ga79c9dedfc1e9bd47b9bcd3c7969bb7d9 + (m_host_t host) + + + xbt_dynar_t + MSG_hosts_as_dynar + group__m__host__management.html + gaa886b8367e635efe11211b2aca5a1d43 + (void) + + + int + MSG_get_host_msgload + group__m__host__management.html + ga8b7380cf5ea28cbd88a7617188536bf5 + (m_host_t h) + + + double + MSG_get_host_speed + group__m__host__management.html + ga5b4526f9f97fdf64a850b5889cadcf8e + (m_host_t h) + + + const char * + MSG_host_get_property_value + group__m__host__management.html + gad3f3c634129231acd67b7bcebcca621a + (m_host_t host, const char *name) + + + xbt_dict_t + MSG_host_get_properties + group__m__host__management.html + gabf5edf2c968764c6f9216e4661116e43 + (m_host_t host) + + + void + MSG_host_set_property_value + group__m__host__management.html + gabe00070568a6d024a04c6ab3691aadbe + (m_host_t host, const char *name, char *value, void_f_pvoid_t free_ctn) + + + + m_task_management + Task Management Functions + group__m__task__management.html + + #define + MSG_TASK_UNINITIALIZED + group__m__task__management.html + ga13f8ac858abd957f5cb2e9a54ad98d76 + + + + struct m_task * + m_task_t + group__m__task__management.html + gae1fe25786a930711522fe81b9d968c4a + + + + struct m_gpu_task * + m_gpu_task_t + group__m__task__management.html + gaa453e4f4da6a15023ff81a79f21fd907 + + + + m_task_t + MSG_parallel_task_create + group__m__task__management.html + ga32c5df8c19d3441642e36efeba880d75 + (const char *name, int host_nb, const m_host_t *host_list, double *computation_amount, double *communication_amount, void *data) + + + m_task_t + MSG_task_create + group__m__task__management.html + ga9f5d27e76802c0cfdf26522e3a05932e + (const char *name, double compute_duration, double message_size, void *data) + + + m_gpu_task_t + MSG_gpu_task_create + group__m__task__management.html + gaf289c863d54a023df27674164588347a + (const char *name, double compute_duration, double dispatch_latency, double collect_latency) + + + void * + MSG_task_get_data + group__m__task__management.html + gac914b25087edd2dc1da2165aeba6fdb3 + (m_task_t task) + + + void + MSG_task_set_data + group__m__task__management.html + ga595a6d502e256f85fd194923ecea6bab + (m_task_t task, void *data) + + + void + MSG_task_set_copy_callback + group__m__task__management.html + ga68b038215e516a9c9152a466efea4e40 + (void(*callback)(m_task_t task, m_process_t sender, m_process_t receiver)) + + + m_process_t + MSG_task_get_sender + group__m__task__management.html + ga5aa23e8acf747f3f9c40376dd90118b5 + (m_task_t task) + + + m_host_t + MSG_task_get_source + group__m__task__management.html + gac6c72cc622e3410351a14ae240e7e1fe + (m_task_t task) + + + const char * + MSG_task_get_name + group__m__task__management.html + ga0454a6b6ce261b7e41d075e1e2f0304d + (m_task_t task) + + + void + MSG_task_set_name + group__m__task__management.html + gac386a3d3b4c082081d021b5afa2255b6 + (m_task_t task, const char *name) + + + MSG_error_t + MSG_task_destroy + group__m__task__management.html + gab9402c3148c3660b9d7fd58d63cf3f4b + (m_task_t task) + + + double + MSG_task_get_compute_duration + group__m__task__management.html + ga1c5dff0fff4e63820f20e4d582a44ab1 + (m_task_t task) + + + void + MSG_task_set_compute_duration + group__m__task__management.html + gab629634fec8e34c2987854883f4cdf0d + (m_task_t task, double computation_amount) + + + double + MSG_task_get_remaining_computation + group__m__task__management.html + ga7791468b3bfb9216c9506cc97cb83683 + (m_task_t task) + + + double + MSG_task_get_remaining_communication + group__m__task__management.html + ga32f27c59f0fe946700270f0b57a3d15b + (m_task_t task) + + + double + MSG_task_get_data_size + group__m__task__management.html + ga5ff087925a474f7947875f88d4bbbe20 + (m_task_t task) + + + void + MSG_task_set_priority + group__m__task__management.html + ga20367e0e24a2bbdc709b6ff18321c052 + (m_task_t task, double priority) + + + + msg_task_usage + Task Actions + group__msg__task__usage.html + + struct s_smx_rvpoint * + msg_mailbox_t + group__msg__task__usage.html + gae2f7e0cd1e5707f78b4694abeef695d3 + + + + struct msg_comm * + msg_comm_t + group__msg__task__usage.html + gafe19e97b54682048a5b2f1c79add21cf + + + + MSG_error_t + MSG_task_execute + group__msg__task__usage.html + ga312569efc6e99d852c04593aa04e69d2 + (m_task_t task) + + + MSG_error_t + MSG_parallel_task_execute + group__msg__task__usage.html + gaa61bddd8ba24a1bc9c33a3cbe8ab436b + (m_task_t task) + + + MSG_error_t + MSG_process_sleep + group__msg__task__usage.html + gaf3a0db58f57a2e39621ace5034204010 + (double nb_sec) + + + MSG_error_t + MSG_task_receive_from_host + group__msg__task__usage.html + gaf06646244c1e450b83250682e8214a2c + (m_task_t *task, const char *alias, m_host_t host) + + + MSG_error_t + MSG_task_receive + group__msg__task__usage.html + gabce37c91435f2298b770a233d5dd7287 + (m_task_t *task, const char *alias) + + + MSG_error_t + MSG_task_receive_with_timeout + group__msg__task__usage.html + ga204b6a5f13bc2d65314d0b964d8d2935 + (m_task_t *task, const char *alias, double timeout) + + + MSG_error_t + MSG_task_receive_ext + group__msg__task__usage.html + ga761e41abc449806f9a9533e983c2c672 + (m_task_t *task, const char *alias, double timeout, m_host_t host) + + + msg_comm_t + MSG_task_isend + group__msg__task__usage.html + ga93753007666dafb73395de52d18d9f35 + (m_task_t task, const char *alias) + + + msg_comm_t + MSG_task_isend_with_matching + group__msg__task__usage.html + gab562b845afe07cf14378fe10f6a955f8 + (m_task_t task, const char *alias, int(*match_fun)(void *, void *, smx_action_t), void *match_data) + + + void + MSG_task_dsend + group__msg__task__usage.html + ga45001441cffcfca73fa326f836453109 + (m_task_t task, const char *alias, void_f_pvoid_t cleanup) + + + msg_comm_t + MSG_task_irecv + group__msg__task__usage.html + gabfc220a24b53509f7e41227fd4db14e0 + (m_task_t *task, const char *name) + + + int + MSG_comm_test + group__msg__task__usage.html + gafd22dad001b95804f5e93aa146c84fd3 + (msg_comm_t comm) + + + int + MSG_comm_testany + group__msg__task__usage.html + gacd787fdda2fd925a1e4e0114cb4eb82e + (xbt_dynar_t comms) + + + void + MSG_comm_destroy + group__msg__task__usage.html + gaa1b107438e7a295058e098a8c2c1bc4a + (msg_comm_t comm) + + + MSG_error_t + MSG_comm_wait + group__msg__task__usage.html + ga2e55adaddb5aada23084a9aa18434f7f + (msg_comm_t comm, double timeout) + + + void + MSG_comm_waitall + group__msg__task__usage.html + ga01ce9097c976b96664e6785f6ab5d4b6 + (msg_comm_t *comm, int nb_elem, double timeout) + + + int + MSG_comm_waitany + group__msg__task__usage.html + ga62772e7b378bc485c114231af4b8f596 + (xbt_dynar_t comms) + + + MSG_error_t + MSG_comm_get_status + group__msg__task__usage.html + ga1c093efb1c7fa4a540c9b3385815f25e + (msg_comm_t comm) + + + m_task_t + MSG_comm_get_task + group__msg__task__usage.html + gad60480395f3e853cbf644f5c2b70e620 + (msg_comm_t comm) + + + MSG_error_t + MSG_task_send + group__msg__task__usage.html + ga11cf60157d9dd353e6fa5d271f5b7ae6 + (m_task_t task, const char *alias) + + + MSG_error_t + MSG_task_send_bounded + group__msg__task__usage.html + gab09eeacf6abb27a7fd6ca9de96e3b202 + (m_task_t task, const char *alias, double maxrate) + + + MSG_error_t + MSG_task_send_with_timeout + group__msg__task__usage.html + gaa4fe05110391534cf72561583af1509a + (m_task_t task, const char *alias, double timeout) + + + int + MSG_task_listen + group__msg__task__usage.html + ga297e41ae363db652f2075d7e9d164bb5 + (const char *alias) + + + int + MSG_task_listen_from_host + group__msg__task__usage.html + gaaccd618b7c48d9e0d84e52b72e15f016 + (const char *alias, m_host_t host) + + + int + MSG_task_listen_from + group__msg__task__usage.html + ga7646951835a1ac861b6a35b41741a268 + (const char *alias) + + + void + MSG_task_set_category + group__msg__task__usage.html + gaa0306994561e172f11d52e0cda50dc9c + (m_task_t task, const char *category) + + + const char * + MSG_task_get_category + group__msg__task__usage.html + gae7c736446ad576d5bc5a0a08fba35f56 + (m_task_t task) + + + + msg_VMs + VMs + group__msg__VMs.html + + struct msg_vm * + msg_vm_t + group__msg__VMs.html + ga3226d0cd7c9a8133d09e4b3535892c5e + + + + msg_vm_t + MSG_vm_start + group__msg__VMs.html + ga363b88cdb1c6deed141e74d0f908826f + (m_host_t location, int coreAmount) + + + xbt_dynar_t + MSG_vms_as_dynar + group__msg__VMs.html + ga9d66095e9599545ab4cdd787a38f6b8e + (void) + + + int + MSG_vm_is_suspended + group__msg__VMs.html + gac7919295b7c197a43717e367f9c115c5 + (msg_vm_t vm) + + + int + MSG_vm_is_running + group__msg__VMs.html + ga6ba8320c7a90ed67d3c8e2079460b8a9 + (msg_vm_t vm) + + + void + MSG_vm_bind + group__msg__VMs.html + ga899abe6bc6e4c05db5c5190c26a03d06 + (msg_vm_t vm, m_process_t process) + + + void + MSG_vm_unbind + group__msg__VMs.html + gab1e7682e821efca7bd6bb2ca6bd5e806 + (msg_vm_t vm, m_process_t process) + + + void + MSG_vm_migrate + group__msg__VMs.html + gae41cecca0a68ae25badf2dab65d30c6f + (msg_vm_t vm, m_host_t destination) + + + void + MSG_vm_suspend + group__msg__VMs.html + ga32243e8be24c253c0367c81d0289e057 + (msg_vm_t vm) + + + void + MSG_vm_resume + group__msg__VMs.html + ga9815e54a5e6cdf849d4847803d377e19 + (msg_vm_t vm) + + + void + MSG_vm_shutdown + group__msg__VMs.html + ga1a40d2652506f4576408e35346cd3cff + (msg_vm_t vm) + + + void + MSG_vm_destroy + group__msg__VMs.html + gae493c978235ba8efeee6d8b5a5286e5b + (msg_vm_t vm) + + + + msg_file_management + File Management Functions + group__msg__file__management.html + + struct msg_file * + msg_file_t + group__msg__file__management.html + ga87e0d76d9428e822d9a67e676c8a2775 + + + + size_t + MSG_file_read + group__msg__file__management.html + ga48677eb3c083f3d400988083d1185c3f + (void *ptr, size_t size, size_t nmemb, msg_file_t stream) + + + size_t + MSG_file_write + group__msg__file__management.html + ga365e9ede50d35d2915265e9f7dd696a7 + (const void *ptr, size_t size, size_t nmemb, msg_file_t stream) + + + msg_file_t + MSG_file_open + group__msg__file__management.html + ga4c104f2348c26866bd7b66c7acfd47a1 + (const char *mount, const char *path, const char *mode) + + + int + MSG_file_close + group__msg__file__management.html + ga6ecd87b7d357c117eab2b8551fbc248e + (msg_file_t fp) + + + int + MSG_file_stat + group__msg__file__management.html + ga7bfc17d0cad09e215d4b90be06933e62 + (msg_file_t fd, s_msg_stat_t *buf) + + + + msg_trace_driven + Trace-driven simulations + group__msg__trace__driven.html + + MSG_error_t + MSG_action_trace_run + group__msg__trace__driven.html + gafa55312e5f8e947c3311471643c5cc42 + (char *path) + + + + MSG_LUA + Lua bindings + group__MSG__LUA.html + + void + MSG_load_platform_script + group__MSG__LUA.html + ga2923710a7784b2d2b019ebfd6ace7eb9 + (const char *script_file) + + lMSG_who + MSG_Lua_funct + Lua_examples + + + msg_deprecated_functions + MSG Deprecated + group__msg__deprecated__functions.html + + MSG_error_t + MSG_get_errno + group__msg__deprecated__functions.html + ga7b5a0d221e2496a9fe9fd6b553ee7588 + (void) + + + MSG_error_t + MSG_task_put + group__msg__deprecated__functions.html + gaddcec59991ba16f7cb5ac41beaf4306a + (m_task_t task, m_host_t dest, m_channel_t channel) + + + MSG_error_t + MSG_task_put_bounded + group__msg__deprecated__functions.html + ga1e9f9b6ced9ac17c92c90cd9803a4d93 + (m_task_t task, m_host_t dest, m_channel_t channel, double maxrate) + + + MSG_error_t + MSG_task_put_with_timeout + group__msg__deprecated__functions.html + gacf1026897cb98d08a6784da82d8ae4c4 + (m_task_t task, m_host_t dest, m_channel_t channel, double timeout) + + + int + MSG_task_probe_from + group__msg__deprecated__functions.html + ga99bfe9edc985c6d2cce3947f81780660 + (m_channel_t channel) + + + int + MSG_task_Iprobe + group__msg__deprecated__functions.html + gae72af17e16cda4efcfad301a4170accd + (m_channel_t channel) + + + int + MSG_task_probe_from_host + group__msg__deprecated__functions.html + ga76f3f6982c7b48b05a294d25318c55d1 + (int channel, m_host_t host) + + + MSG_error_t + MSG_task_get_from_host + group__msg__deprecated__functions.html + ga1ac47e59e9ddca2b0873a4ed12fbb46e + (m_task_t *task, m_channel_t channel, m_host_t host) + + + MSG_error_t + MSG_task_get + group__msg__deprecated__functions.html + ga41e2de5a7abc1581cf8c31b1c6897681 + (m_task_t *task, m_channel_t channel) + + + MSG_error_t + MSG_task_get_with_timeout + group__msg__deprecated__functions.html + ga6b1bf005d156fbd29315116ab7d41b69 + (m_task_t *task, m_channel_t channel, double max_duration) + + + + MSG_ex_asynchronous_communications + Asynchronous communications + group__MSG__ex__asynchronous__communications.html + MSG_ex_ms_TOC + MSG_ext_icomms_code + MSG_ext_icomms_preliminary + MSG_ext_icomms_Sender + MSG_ext_icomms_Receiver + MSG_ext_icomms_core + MSG_ext_icomms_Main + MSG_ext_icomms_fct_Waitall + MSG_ext_icomms_fct_Waitany + MSG_ext_icomms_fct_Waitany_sender + MSG_ext_icomms_fct_Waitany_receiver + + + GRAS_comm + Communication facilities + group__GRAS__comm.html + GRAS_dd + GRAS_sock + GRAS_msg + GRAS_timer + + + GRAS_run + Virtualization + group__GRAS__run.html + GRAS_globals + GRAS_emul + GRAS_virtu + + + GRAS_dd + Data description + group__GRAS__dd.html + + + GRAS_sock + Sockets + group__GRAS__sock.html + GRAS_sock_create + GRAS_sock_file + + + GRAS_msg + Messages + group__GRAS__msg.html + GRAS_msg_decl + GRAS_msg_cb + GRAS_msg_exchange + GRAS_msg_rpc + GRAS_msg_exchangeadv + + + GRAS_timer + Timers + group__GRAS__timer.html + + void + gras_timer_delay + group__GRAS__timer.html + gaba1a13793d801fdfc59731bfc6153ff6 + (double delay, void_f_void_t action) + + + void + gras_timer_repeat + group__GRAS__timer.html + gaace02a90a340b8fb00e13adbf1b4de52 + (double interval, void_f_void_t action) + + + void + gras_timer_cancel_delay + group__GRAS__timer.html + ga67dc4dd9df7bf9fe4c65d7b3fcdb083a + (double interval, void_f_void_t action) + + + void + gras_timer_cancel_repeat + group__GRAS__timer.html + ga12a106f2b68208d5036c1cc170a1f654 + (double interval, void_f_void_t action) + + + void + gras_timer_cancel_delay_all + group__GRAS__timer.html + ga479153eb34c997d51efb0583e5b50c0a + (void) + + + void + gras_timer_cancel_repeat_all + group__GRAS__timer.html + gaa0970ec0e243f9dc9b2a121d5d2ee964 + (void) + + + void + gras_timer_cancel_all + group__GRAS__timer.html + ga7c4a535d25652e71085918d4e11825b7 + (void) + + + + GRAS_globals + Globals + group__GRAS__globals.html + + #define + gras_userdata_new + group__GRAS__globals.html + ga7d5d5973e9d4f19b415d6c7aa8787844 + (type) + + + void + gras_agent_spawn + group__GRAS__globals.html + gaf783b0f28fc5ab9831f0e587c70d9ad5 + (const char *name, xbt_main_func_t code, int argc, char *argv[], xbt_dict_t properties) + + + void * + gras_userdata_get + group__GRAS__globals.html + ga32fe737117c1ab1f3acbfbbce4190fa6 + (void) + + + void * + gras_userdata_set + group__GRAS__globals.html + ga2dd44669c0da2d976a97cc8e3596d0e0 + (void *ud) + + + + GRAS_emul + Emulation support + group__GRAS__emul.html + + #define + GRAS_BENCH_ALWAYS_BEGIN + group__GRAS__emul.html + gaf5288e6a4edcbc9e43b576cd75d8a7cc + () + + + #define + GRAS_BENCH_ALWAYS_END + group__GRAS__emul.html + ga565913301f1f31bdb920b6a15cd0c796 + () + + + #define + GRAS_BENCH_ONCE_RUN_ALWAYS_BEGIN + group__GRAS__emul.html + gabdef676ca890d83cf18cae21d882267a + () + + + #define + GRAS_BENCH_ONCE_RUN_ALWAYS_END + group__GRAS__emul.html + gad0867810b5e25399c38b022db7b50804 + () + + + #define + GRAS_BENCH_ONCE_RUN_ONCE_BEGIN + group__GRAS__emul.html + ga8e1dfbcab4676d56607bd7b3de2f06a8 + () + + + #define + GRAS_BENCH_ONCE_RUN_ONCE_END + group__GRAS__emul.html + gacf85af9c1eb78c13fcaff234129bc90d + () + + + int + gras_if_RL + group__GRAS__emul.html + ga7536bfeabf829c3af4e4bbd062ae68a5 + (void) + + + int + gras_if_SG + group__GRAS__emul.html + ga9fc0d36a51aa4cbaf7e3ec50c0e54431 + (void) + + GRAS_emul_virtualization + GRAS_emul_timing + + + GRAS_virtu + Syscalls + group__GRAS__virtu.html + + #define + gras_os_time + group__GRAS__virtu.html + ga690fb7390ae0f7a8622dd36c4f2854ce + () + + + #define + gras_os_sleep + group__GRAS__virtu.html + ga759c02d11cdd774f4c2c3ce0a7aa876c + (sec) + + + const char * + gras_os_myname + group__GRAS__virtu.html + gaa69615408108cd37c02ece6942419037 + (void) + + + int + gras_os_myport + group__GRAS__virtu.html + ga698d1a1611cb1a88ff59c4d81d471c1a + (void) + + + const char * + gras_os_hostport + group__GRAS__virtu.html + ga95df45ae7ca3f51b880e48ba92fd32e7 + (void) + + + int + gras_os_getpid + group__GRAS__virtu.html + ga19eab254893273bc41d1a1db30cf4d80 + (void) + + + xbt_dict_t + gras_process_properties + group__GRAS__virtu.html + ga8a51ce2b1ea4d27a023ae9afacced2c9 + (void) + + + const char * + gras_process_property_value + group__GRAS__virtu.html + gad612739673c7c153741b117c0ace75b1 + (const char *name) + + + xbt_dict_t + gras_os_host_properties + group__GRAS__virtu.html + ga86a3de9cbbf171a8528679effae5f713 + (void) + + + const char * + gras_os_host_property_value + group__GRAS__virtu.html + gaf8f2523b96280e2c42af6df8b16f961e + (const char *name) + + + + AMOK_bw + Bandwidth + group__AMOK__bw.html + + void + amok_bw_init + group__AMOK__bw.html + ga1d9b3605e503ec3b21d1758c5e8d112e + (void) + + + void + amok_bw_exit + group__AMOK__bw.html + ga93f1ff0879c7285c421a0e5b7167231a + (void) + + + void + amok_bw_test + group__AMOK__bw.html + ga6c2a98957e14b6bfcf85a2d6f0af0b99 + (xbt_socket_t peer, unsigned long int buf_size, unsigned long int msg_size, unsigned long int msg_amount, double min_duration, double *sec, double *bw) + + + void + amok_bw_request + group__AMOK__bw.html + gaa2c757dbada44a4ae5cebeaf865ae506 + (const char *from_name, unsigned int from_port, const char *to_name, unsigned int to_port, unsigned long int buf_size, unsigned long int msg_size, unsigned long int msg_amount, double min_duration, double *sec, double *bw) + + + double * + amok_bw_matrix + group__AMOK__bw.html + ga5bb189513fb6a3c51736fa1099d3b90d + (xbt_dynar_t hosts, int buf_size_bw, int msg_size_bw, int msg_amount_bw, double min_duration) + + + void + amok_bw_saturate_start + group__AMOK__bw.html + ga10b58cad9989ba3c854bc76a0e0828f2 + (const char *from_name, unsigned int from_port, const char *to_name, unsigned int to_port, unsigned int msg_size, double duration) + + + void + amok_bw_saturate_begin + group__AMOK__bw.html + ga7dfba88c734e8b5022ec34e221201281 + (const char *to_name, unsigned int to_port, unsigned int msg_size, double duration, double *elapsed, double *bw) + + + void + amok_bw_saturate_stop + group__AMOK__bw.html + ga4de46f2b9b19125420a0a2ee9e65a107 + (const char *from_name, unsigned int from_port, double *time, double *bw) + + + + AMOK_pm + Peer Management + group__AMOK__pm.html + + void + amok_pm_init + group__AMOK__pm.html + gaed462119f2f6b19b2ed40e1be7f0335a + (void) + + + void + amok_pm_exit + group__AMOK__pm.html + ga04b9833b202d77261a75d9b68556188a + (void) + + + void + amok_pm_mainloop + group__AMOK__pm.html + gaedf9cf9552f2e4111bdadcabcbbda1f5 + (double timeOut) + + + void + amok_pm_kill_hp + group__AMOK__pm.html + ga2be8f4946dbdfaaf0550af6f9051e1a5 + (char *name, int port) + + + void + amok_pm_kill + group__AMOK__pm.html + ga6cac965bd11e5c468f169ca3bcaaaa8e + (xbt_socket_t buddy) + + + void + amok_pm_kill_sync + group__AMOK__pm.html + ga6d2e69b1db096e39f9c73ebe1f6c929c + (xbt_socket_t buddy) + + + xbt_dynar_t + amok_pm_group_new + group__AMOK__pm.html + ga7fb9d82b0c9ec0b2edcc32dfb6c93be0 + (const char *group_name) + + + xbt_dynar_t + amok_pm_group_get + group__AMOK__pm.html + gafb74e776c3e5ad6d1e48ee3953ee659f + (xbt_socket_t master, const char *group_name) + + + int + amok_pm_group_join + group__AMOK__pm.html + gac1f63273d15168041792b1196a15dd62 + (xbt_socket_t master, const char *group_name) + + + void + amok_pm_group_leave + group__AMOK__pm.html + gac3951c4fd6f2791ac52e751470ebe186 + (xbt_socket_t master, const char *group_name) + + + void + amok_pm_group_shutdown + group__AMOK__pm.html + ga52ff73f644f73c225a45b50bd7bf2ca7 + (const char *group_name) + + + void + amok_pm_group_shutdown_remote + group__AMOK__pm.html + ga71a8af9c1276de6a7b64ec175d3d73f7 + (xbt_socket_t master, const char *group_name) + + AMOK_pm_compat + + + SD_datatypes_management + SD Data Types + group__SD__datatypes__management.html + + struct SD_workstation * + SD_workstation_t + group__SD__datatypes__management.html + gaeae4130240138543efa9f414ef09173b + + + + struct SD_link * + SD_link_t + group__SD__datatypes__management.html + ga0b4ef9c55c15ac2612409087d89d8415 + + + + struct SD_task * + SD_task_t + group__SD__datatypes__management.html + gabe39904e3bf5f57456382cfcd3814352 + + + + e_SD_workstation_access_mode_t + group__SD__datatypes__management.html + ga6eb21649841a9b045552f3aa810e05f5 + + + + SD_WORKSTATION_SHARED_ACCESS + group__SD__datatypes__management.html + gga6eb21649841a9b045552f3aa810e05f5a6615a65c696b373eef6500a7b8f43c4e + + + + SD_WORKSTATION_SEQUENTIAL_ACCESS + group__SD__datatypes__management.html + gga6eb21649841a9b045552f3aa810e05f5a722f0fd2ff6e52a77206f879e50714df + + + + e_SD_task_state_t + group__SD__datatypes__management.html + ga49c04f3f117a8a1f8f1d0bedadefcfa5 + + + + SD_NOT_SCHEDULED + group__SD__datatypes__management.html + gga49c04f3f117a8a1f8f1d0bedadefcfa5aec1d4dfae04f63ec58dd8ab7941a8801 + + + + SD_SCHEDULABLE + group__SD__datatypes__management.html + gga49c04f3f117a8a1f8f1d0bedadefcfa5a2c3f70794cc8b27495bd2c7b6b6872af + + + + SD_SCHEDULED + group__SD__datatypes__management.html + gga49c04f3f117a8a1f8f1d0bedadefcfa5a626549e8ac33c3142d9b3ab66abcc374 + + + + SD_RUNNABLE + group__SD__datatypes__management.html + gga49c04f3f117a8a1f8f1d0bedadefcfa5a4deae4c6080598bd869d22fa4d35328d + + + + SD_IN_FIFO + group__SD__datatypes__management.html + gga49c04f3f117a8a1f8f1d0bedadefcfa5ac055f0cd1ac85271cc31d0340acc8c4c + + + + SD_RUNNING + group__SD__datatypes__management.html + gga49c04f3f117a8a1f8f1d0bedadefcfa5a79dc5ff4b6f36bfae26b9666feb4ba78 + + + + SD_DONE + group__SD__datatypes__management.html + gga49c04f3f117a8a1f8f1d0bedadefcfa5ae654935882dec5b2345a3128aed69632 + + + + SD_FAILED + group__SD__datatypes__management.html + gga49c04f3f117a8a1f8f1d0bedadefcfa5adda3fbec6b0da252275f20c79044201c + + + + e_SD_task_kind_t + group__SD__datatypes__management.html + ga242a90ba979257e3245553f149b74880 + + + + SD_TASK_NOT_TYPED + group__SD__datatypes__management.html + gga242a90ba979257e3245553f149b74880a8c1896c3c033bea7ecf469a75f83d5f4 + + + + SD_TASK_COMM_E2E + group__SD__datatypes__management.html + gga242a90ba979257e3245553f149b74880a9add1089dc99e90c905ec491db980d76 + + + + SD_TASK_COMP_SEQ + group__SD__datatypes__management.html + gga242a90ba979257e3245553f149b74880a3fb8ac37142196af9ac8e97e27f2c59c + + + + SD_TASK_COMP_PAR_AMDAHL + group__SD__datatypes__management.html + gga242a90ba979257e3245553f149b74880a60c8326cd59d07e45a3910594478dba9 + + + + + SURF_simulation + Simulation + group__SURF__simulation.html + + void + surf_init + group__SURF__simulation.html + ga403868865b66138187c3db30521e1bbe + (int *argc, char **argv) + + + void + surf_presolve + group__SURF__simulation.html + ga9b7e7ceba73ff5ce637ecb58f1e2edc9 + (void) + + + double + surf_solve + group__SURF__simulation.html + gaa723e3f55eb26355d00de5bf07c6d373 + (double max_date) + + + double + surf_get_clock + group__SURF__simulation.html + gafa85b9ba47f47d599353b872d2cb93d3 + (void) + + + void + surf_exit + group__SURF__simulation.html + ga1179497a5f822209f22b5735e0fb1104 + (void) + + + + SURF_actions + SURF actions + group__SURF__actions.html + surf_action + surf_action_state + + struct surf_action * + surf_action_t + group__SURF__actions.html + ga260ee2edb62de03ee69190f03a9b7eba + + + + struct surf_action + s_surf_action_t + group__SURF__actions.html + gae49733011b74942c0a896745bc825e92 + + + + struct surf_action_state + s_surf_action_state_t + group__SURF__actions.html + gafbcc9ab9767482d92f8709d78858d2ae + + + + e_surf_action_state_t + group__SURF__actions.html + gab9ef4042b1b038be1b792366de0121b2 + + + + SURF_ACTION_READY + group__SURF__actions.html + ggab9ef4042b1b038be1b792366de0121b2a6caf5e4bd35cab4890c662fdaf8d3812 + + + + SURF_ACTION_RUNNING + group__SURF__actions.html + ggab9ef4042b1b038be1b792366de0121b2a101d6224ad7c2a615c452c8c36d8a7e7 + + + + SURF_ACTION_FAILED + group__SURF__actions.html + ggab9ef4042b1b038be1b792366de0121b2abf420e6385e8eeda58721c3e28bd919e + + + + SURF_ACTION_DONE + group__SURF__actions.html + ggab9ef4042b1b038be1b792366de0121b2acef3187aad961798010f295bbbd932bf + + + + SURF_ACTION_TO_FREE + group__SURF__actions.html + ggab9ef4042b1b038be1b792366de0121b2aa66f387221d049fbce374c4dc27629c8 + + + + SURF_ACTION_NOT_IN_THE_SYSTEM + group__SURF__actions.html + ggab9ef4042b1b038be1b792366de0121b2a20a007bd143ea5c870c26a389ffe95e9 + + + + + SURF_resources + SURF resources + group__SURF__resources.html + + + SURF_build_api + Create a new API + group__SURF__build__api.html + + xbt_lib_t + host_lib + group__SURF__build__api.html + gac90f96dce1a69464b09a9b79b1405da5 + + + + xbt_lib_t + link_lib + group__SURF__build__api.html + gaa55c4d6b7466ca2b40deef1f47a24063 + + + + + TRACE_category + Tracing categories + group__TRACE__category.html + + void + TRACE_category + group__TRACE__category.html + ga2c341df9553b432c507d4ab2a87e8685 + (const char *category) + + + void + TRACE_category_with_color + group__TRACE__category.html + ga5abe9661fe1a1382c9be63984fea6931 + (const char *category, const char *color) + + + xbt_dynar_t + TRACE_get_categories + group__TRACE__category.html + ga87115c4173e0a6451fd7161fa4545572 + (void) + + + + TRACE_mark + Tracing marks + group__TRACE__mark.html + + void + TRACE_declare_mark + group__TRACE__mark.html + gacd215a0072a5d4ec7c5b11610b7bef20 + (const char *mark_type) + + + void + TRACE_declare_mark_value + group__TRACE__mark.html + ga01bdd85d46330578010dd77cf0e9df88 + (const char *mark_type, const char *mark_value) + + + void + TRACE_mark + group__TRACE__mark.html + gac8f263e9033090c2e73c7a2e2a98088a + (const char *mark_type, const char *mark_value) + + + xbt_dynar_t + TRACE_get_marks + group__TRACE__mark.html + ga6012125dd57ddf958895a8007280bbf5 + (void) + + + + TRACE_user_variables + Tracing user variables + group__TRACE__user__variables.html + + void + TRACE_host_variable_declare + group__TRACE__user__variables.html + ga1672865b1bc48cff5bdb759edf0a7c90 + (const char *variable) + + + void + TRACE_host_variable_declare_with_color + group__TRACE__user__variables.html + gaacaaa40fa93265cc87dc804edb6a61b3 + (const char *variable, const char *color) + + + void + TRACE_host_variable_set + group__TRACE__user__variables.html + ga650d08f8e0547ffe3d3c5a6a6ceebcdf + (const char *host, const char *variable, double value) + + + void + TRACE_host_variable_add + group__TRACE__user__variables.html + gae0a8625485d9cffc5c12676b65cd959c + (const char *host, const char *variable, double value) + + + void + TRACE_host_variable_sub + group__TRACE__user__variables.html + ga287fcd04c563ff2f795460850e4fc5d6 + (const char *host, const char *variable, double value) + + + void + TRACE_host_variable_set_with_time + group__TRACE__user__variables.html + ga3adacb71a4ab331c93efdf250f73cbfc + (double time, const char *host, const char *variable, double value) + + + void + TRACE_host_variable_add_with_time + group__TRACE__user__variables.html + gab6e7856a8181341e524cb4c9920c24ba + (double time, const char *host, const char *variable, double value) + + + void + TRACE_host_variable_sub_with_time + group__TRACE__user__variables.html + gae9ab3b84945d21bd06529d6705471d65 + (double time, const char *host, const char *variable, double value) + + + xbt_dynar_t + TRACE_get_host_variables + group__TRACE__user__variables.html + ga421836b9a1d435300ff777cd04b68f4c + (void) + + + void + TRACE_link_variable_declare + group__TRACE__user__variables.html + ga0b79340b330704fc7f30596988ce937c + (const char *variable) + + + void + TRACE_link_variable_declare_with_color + group__TRACE__user__variables.html + ga1c3d1a22e56a7a9a2fa6e5e6feb7978e + (const char *variable, const char *color) + + + void + TRACE_link_variable_set + group__TRACE__user__variables.html + ga5a521dffa1a5705e9e65d77053ef0cfa + (const char *link, const char *variable, double value) + + + void + TRACE_link_variable_add + group__TRACE__user__variables.html + gabbc55f2a3e25e49248be7d9b71f15cb8 + (const char *link, const char *variable, double value) + + + void + TRACE_link_variable_sub + group__TRACE__user__variables.html + ga009ecbc92025f7f2106386e5c8822e0b + (const char *link, const char *variable, double value) + + + void + TRACE_link_variable_set_with_time + group__TRACE__user__variables.html + gaccafa87e0e58f2f3e282a7d23e56d792 + (double time, const char *link, const char *variable, double value) + + + void + TRACE_link_variable_add_with_time + group__TRACE__user__variables.html + ga139bde27fec64c468d16b5231fc41118 + (double time, const char *link, const char *variable, double value) + + + void + TRACE_link_variable_sub_with_time + group__TRACE__user__variables.html + gae6b2b2b1f2ad80588d5b4eccb7d5ab6c + (double time, const char *link, const char *variable, double value) + + + void + TRACE_link_srcdst_variable_set + group__TRACE__user__variables.html + gab93d0d4ffb907c4d4b43cdc53cbe4f8c + (const char *src, const char *dst, const char *variable, double value) + + + void + TRACE_link_srcdst_variable_add + group__TRACE__user__variables.html + gae19a0f01ea6240ceaba534dab0f15919 + (const char *src, const char *dst, const char *variable, double value) + + + void + TRACE_link_srcdst_variable_sub + group__TRACE__user__variables.html + gaa0af1adaf2ee2e0ea3b045e8ef5c4edf + (const char *src, const char *dst, const char *variable, double value) + + + void + TRACE_link_srcdst_variable_set_with_time + group__TRACE__user__variables.html + ga1abd4aeafd36e40fd2aa8f15566df013 + (double time, const char *src, const char *dst, const char *variable, double value) + + + void + TRACE_link_srcdst_variable_add_with_time + group__TRACE__user__variables.html + ga0fec5f8d16e8d8ba4c82b2dba1ba6234 + (double time, const char *src, const char *dst, const char *variable, double value) + + + void + TRACE_link_srcdst_variable_sub_with_time + group__TRACE__user__variables.html + ga37278937e06f41f0a0b06b6b91bbdfa6 + (double time, const char *src, const char *dst, const char *variable, double value) + + + xbt_dynar_t + TRACE_get_link_variables + group__TRACE__user__variables.html + ga4b07c188420bbc143deea8dcdce06642 + (void) + + + void + TRACE_host_state_declare + group__TRACE__user__variables.html + ga65a9ce22195518352da785b36527864d + (const char *state) + + + void + TRACE_host_state_declare_value + group__TRACE__user__variables.html + gae5c66eb6918e75c5f38e06727d43e7bc + (const char *state, const char *value, const char *color) + + + void + TRACE_host_set_state + group__TRACE__user__variables.html + gacc421a6483570671a916a1d402add564 + (const char *host, const char *state, const char *value) + + + void + TRACE_host_push_state + group__TRACE__user__variables.html + gab74f50cb9ed31f4436663acd34ed044a + (const char *host, const char *state, const char *value) + + + void + TRACE_host_pop_state + group__TRACE__user__variables.html + ga111dc1b94c7f69e999f98163922332a6 + (const char *host, const char *state) + + + void + TRACE_host_reset_state + group__TRACE__user__variables.html + ga995ecd02343b09fd5ecdce8b8b1cd0d7 + (const char *host, const char *state) + + + + GRAS_msg_decl + Message declaration and retrival + group__GRAS__msg__decl.html + + struct s_gras_msgtype * + gras_msgtype_t + group__GRAS__msg__decl.html + ga3dde338b0ab6736d2d6c51078c03bd96 + + + + void + gras_msgtype_declare + group__GRAS__msg__decl.html + ga7857c6d519073e49604d59fa957bdc4d + (const char *name, xbt_datadesc_type_t payload) + + + void + gras_msgtype_declare_v + group__GRAS__msg__decl.html + ga64643f72bc46f7a40244d64a2977956b + (const char *name, short int version, xbt_datadesc_type_t payload) + + + gras_msgtype_t + gras_msgtype_by_name + group__GRAS__msg__decl.html + gaeffd42d9b2606a8b19501bd191efd6b4 + (const char *name) + + + gras_msgtype_t + gras_msgtype_by_name_or_null + group__GRAS__msg__decl.html + ga169be5759644b6ce19e35ae736b79345 + (const char *name) + + + gras_msgtype_t + gras_msgtype_by_namev + group__GRAS__msg__decl.html + ga674feae414ddeef58edc7f4597a0dd80 + (const char *name, short int version) + + + gras_msgtype_t + gras_msgtype_by_id + group__GRAS__msg__decl.html + ga01e5352457b7ba0d9504c3bf25367d16 + (int id) + + + void + gras_msgtype_dumpall + group__GRAS__msg__decl.html + ga5b7341eb7a6a5a5a827b21cb23e09248 + (void) + + + + GRAS_msg_cb + Callback declaration and use + group__GRAS__msg__cb.html + + #define + gras_cb_register + group__GRAS__msg__cb.html + gada679e069d5516d632542a963a5e921c + (msgtype_name, cb) + + + #define + gras_cb_unregister + group__GRAS__msg__cb.html + ga56559a8e94aa53115e16c5d42d052c79 + (msgtype_name, cb) + + + struct s_gras_msg_cb_ctx * + gras_msg_cb_ctx_t + group__GRAS__msg__cb.html + gac198167fc3b407c9a5d13104944bd1eb + + + + int(* + gras_msg_cb_t + group__GRAS__msg__cb.html + ga4def53ea1c94af2e6ebec7b058fd5e17 + )(gras_msg_cb_ctx_t ctx, void *payload) + + + xbt_socket_t + gras_msg_cb_ctx_from + group__GRAS__msg__cb.html + ga06d07c39a4ab161ef6307f5b947f7687 + (gras_msg_cb_ctx_t ctx) + + + void + gras_cb_register_ + group__GRAS__msg__cb.html + ga18ec958edecee152b5c7227a062556b7 + (gras_msgtype_t msgtype, gras_msg_cb_t cb) + + + void + gras_cb_unregister_ + group__GRAS__msg__cb.html + ga0dbe20c04bc541c025115b42cab5a8b5 + (gras_msgtype_t msgtype, gras_msg_cb_t cb) + + + + GRAS_msg_exchange + Message exchange + group__GRAS__msg__exchange.html + + #define + gras_msg_send + group__GRAS__msg__exchange.html + ga4530e0a98262b6371dc30aa76df1f21a + (sock, name, payload) + + + #define + gras_msg_wait + group__GRAS__msg__exchange.html + ga9ec85c89a6e59334939d4483c2e04374 + (timeout, msgt_want, expeditor, payload) + + + void + gras_msg_send_ + group__GRAS__msg__exchange.html + ga67984c86652a02a790c3833dbcc821e2 + (xbt_socket_t sock, gras_msgtype_t msgtype, void *payload) + + + void + gras_msg_wait_ + group__GRAS__msg__exchange.html + ga514adfffdfb2117532be23878ba7a04e + (double timeout, gras_msgtype_t msgt_want, xbt_socket_t *expeditor, void *payload) + + + void + gras_msg_handleall + group__GRAS__msg__exchange.html + gae4bf51c90fd4f84a66f9e1f44fe1dac5 + (double period) + + + void + gras_msg_handle + group__GRAS__msg__exchange.html + ga734f74309ee66358e60f6926084e46c5 + (double timeOut) + + + + GRAS_msg_rpc + RPC specific functions + group__GRAS__msg__rpc.html + + #define + gras_msg_rpccall + group__GRAS__msg__rpc.html + ga5a63b79b8d8af705c8bdf7ef2b40dfd0 + (server, timeout, msg, req, ans) + + + #define + gras_msg_rpc_async_call + group__GRAS__msg__rpc.html + ga36a36ad46c0ccdab7e512c65c3c7276c + (server, timeout, msg, req) + + + void + gras_msgtype_declare_rpc + group__GRAS__msg__rpc.html + gaf53fe8f369590ea67e56880d46e32b35 + (const char *name, xbt_datadesc_type_t payload_request, xbt_datadesc_type_t payload_answer) + + + void + gras_msgtype_declare_rpc_v + group__GRAS__msg__rpc.html + gaa32491ce5b761886d2bb772501114052 + (const char *name, short int version, xbt_datadesc_type_t payload_request, xbt_datadesc_type_t payload_answer) + + + void + gras_msg_rpccall_ + group__GRAS__msg__rpc.html + gaacda3b53f080544460ae85116119628c + (xbt_socket_t server, double timeOut, gras_msgtype_t msgtype, void *request, void *answer) + + + + gras_msg_rpc_async_call_ + group__GRAS__msg__rpc.html + ga62a3bf4ce9bd90d37730cb860d76e5d9 + (xbt_socket_t server, double timeOut, gras_msgtype_t msgtype, void *request) + + + void + gras_msg_rpc_async_wait + group__GRAS__msg__rpc.html + ga610a80ac29440bc3e4e2383aa3210ddd + (gras_msg_cb_ctx_t ctx, void *answer) + + + void + gras_msg_rpcreturn + group__GRAS__msg__rpc.html + ga618a3c7ac8ce43b4b1f3cdbaf05789d9 + (double timeOut, gras_msg_cb_ctx_t ctx, void *answer) + + + + GRAS_msg_exchangeadv + Message exchange (advanced interface) + group__GRAS__msg__exchangeadv.html + s_gras_msg_t + + e_gras_msg_kind_t + group__GRAS__msg__exchangeadv.html + gaa618b4aea46cb45d82f44d43dfda5d3f + + + + e_gras_msg_kind_oneway + group__GRAS__msg__exchangeadv.html + ggaa618b4aea46cb45d82f44d43dfda5d3fa8c1e9f73450086e01bd48c9c7b75667f + + + + e_gras_msg_kind_rpccall + group__GRAS__msg__exchangeadv.html + ggaa618b4aea46cb45d82f44d43dfda5d3fa7b1f487086684d796b50e5307e2e379b + + + + e_gras_msg_kind_rpcanswer + group__GRAS__msg__exchangeadv.html + ggaa618b4aea46cb45d82f44d43dfda5d3fa96a7ea9ad35e76121d2aeeb2340600f4 + + + + e_gras_msg_kind_rpcerror + group__GRAS__msg__exchangeadv.html + ggaa618b4aea46cb45d82f44d43dfda5d3fa2a93cb274ce45489193b19620c152060 + + + + void + gras_msg_wait_ext_ + group__GRAS__msg__exchangeadv.html + ga2cd92f12bc72c476438b6bd96f1c9bd5 + (double timeout, gras_msgtype_t msgt_want, xbt_socket_t expe_want, gras_msg_filter_t filter, void *filter_ctx, gras_msg_t msg_got) + + + void + gras_msg_wait_or + group__GRAS__msg__exchangeadv.html + ga8d4ce7267e4057b0001e9ed5f37bde59 + (double timeout, xbt_dynar_t msgt_want, gras_msg_cb_ctx_t *ctx, int *msgt_got, void *payload) + + + + GRAS_sock_create + Socket creation functions + group__GRAS__sock__create.html + + xbt_socket_t + gras_socket_client + group__GRAS__sock__create.html + ga1dad2be5438de05743501352f144fad5 + (const char *host, unsigned short port) + + + xbt_socket_t + gras_socket_client_from_string + group__GRAS__sock__create.html + ga6bd1f0bb2497eed9756b8c9557d27f85 + (const char *host) + + + xbt_socket_t + gras_socket_server + group__GRAS__sock__create.html + gafaf3628fe9e0afd023b7c29a167cce75 + (unsigned short port) + + + void + gras_socket_close + group__GRAS__sock__create.html + gabdbbaf32ef66a8006ceb812393cbe591 + (xbt_socket_t sd) + + + xbt_socket_t + gras_socket_client_ext + group__GRAS__sock__create.html + ga33c42cee0950aa1649f4cd1a7a4d48e2 + (const char *host, unsigned short port, unsigned long int bufSize, int measurement) + + + xbt_socket_t + gras_socket_server_ext + group__GRAS__sock__create.html + ga3d9e49e5b0d4287926f2d8192868ee90 + (unsigned short port, unsigned long int bufSize, int measurement) + + + xbt_socket_t + gras_socket_server_range + group__GRAS__sock__create.html + ga9c81857e1e860a757eb9b8b5c004225c + (unsigned short minport, unsigned short maxport, unsigned long int buf_size, int measurement) + + + + GRAS_sock_file + Using files as sockets + group__GRAS__sock__file.html + + xbt_socket_t + gras_socket_client_from_file + group__GRAS__sock__file.html + ga95fd1ae1909dbc2fcd370875cbcd664e + (const char *path) + + + xbt_socket_t + gras_socket_server_from_file + group__GRAS__sock__file.html + gacd1b93d813440fc5c427864682ee7831 + (const char *path) + + + + XBT_cfg_use + User interface: changing values + group__XBT__cfg__use.html + + void * + xbt_cfg_t + group__XBT__cfg__use.html + gac5894d3947cb042db07d729ebfe064ca + + + + void + xbt_cfg_set + group__XBT__cfg__use.html + ga7abcc7c8e0c839f5430ccc5bb04cd29b + (xbt_cfg_t cfg, const char *name,...) + + + void + xbt_cfg_set_vargs + group__XBT__cfg__use.html + gad36ce933af452e3f74373b7a88b097bd + (xbt_cfg_t cfg, const char *name, va_list pa) + + + void + xbt_cfg_set_parse + group__XBT__cfg__use.html + ga660f47d0af70382a502cee9734e32229 + (xbt_cfg_t cfg, const char *options) + + + void + xbt_cfg_set_int + group__XBT__cfg__use.html + ga593f941aa66b21104ebdaa2786a0265e + (xbt_cfg_t cfg, const char *name, int val) + + + void + xbt_cfg_set_double + group__XBT__cfg__use.html + ga660807bb21d0d7a3a0ac9219e2330dbe + (xbt_cfg_t cfg, const char *name, double val) + + + void + xbt_cfg_set_string + group__XBT__cfg__use.html + gaf42b4fd31ad45646a03638ef32fc5a26 + (xbt_cfg_t cfg, const char *name, const char *val) + + + void + xbt_cfg_set_peer + group__XBT__cfg__use.html + ga3ec95e8fb08cc7dffdc32fd7cb05f679 + (xbt_cfg_t cfg, const char *name, const char *peer, int port) + + + void + xbt_cfg_setdefault_int + group__XBT__cfg__use.html + ga56c8db370b0a3ae4c638867a0e0911c0 + (xbt_cfg_t cfg, const char *name, int val) + + + void + xbt_cfg_setdefault_double + group__XBT__cfg__use.html + gafa60b1f2d2e1351522f977cce3b54d99 + (xbt_cfg_t cfg, const char *name, double val) + + + void + xbt_cfg_setdefault_string + group__XBT__cfg__use.html + ga10751dc480c2ea9b0c9637c68ed359e6 + (xbt_cfg_t cfg, const char *name, const char *val) + + + void + xbt_cfg_setdefault_peer + group__XBT__cfg__use.html + ga304c927c166b217d29eee9e18cb1e969 + (xbt_cfg_t cfg, const char *name, const char *host, int port) + + + void + xbt_cfg_rm_int + group__XBT__cfg__use.html + ga6dd959a8fc5ea496641f329423964681 + (xbt_cfg_t cfg, const char *name, int val) + + + void + xbt_cfg_rm_double + group__XBT__cfg__use.html + gaca2fa14bf75f51960538227132d696d5 + (xbt_cfg_t cfg, const char *name, double val) + + + void + xbt_cfg_rm_string + group__XBT__cfg__use.html + ga6b96677e59c03e920f616ef8f6f03db3 + (xbt_cfg_t cfg, const char *name, const char *val) + + + void + xbt_cfg_rm_peer + group__XBT__cfg__use.html + ga495c3de5609e29eb4a5a2edaff1e9119 + (xbt_cfg_t cfg, const char *name, const char *peer, int port) + + + void + xbt_cfg_rm_at + group__XBT__cfg__use.html + gaf90fa7699759834310e5fc90d4cf2594 + (xbt_cfg_t cfg, const char *name, int pos) + + + void + xbt_cfg_empty + group__XBT__cfg__use.html + gabefb42525b7f81c273a9e15ebc2fc401 + (xbt_cfg_t cfg, const char *name) + + + + XBT_cfg_decl + Configuration type declaration and memory management + group__XBT__cfg__decl.html + + void(* + xbt_cfg_cb_t + group__XBT__cfg__decl.html + ga4080887ffe36fb58611ee70094c003be + )(const char *, int) + + + e_xbt_cfgelm_type_t + group__XBT__cfg__decl.html + gaae016e87dc6935ed51617bbea7b8aa6c + + + + xbt_cfgelm_int + group__XBT__cfg__decl.html + ggaae016e87dc6935ed51617bbea7b8aa6caf101f0c7af43525d4a07e9bcb5d3b7f2 + + + + xbt_cfgelm_double + group__XBT__cfg__decl.html + ggaae016e87dc6935ed51617bbea7b8aa6ca35412ca92ec3591c76f5403810aed6f3 + + + + xbt_cfgelm_string + group__XBT__cfg__decl.html + ggaae016e87dc6935ed51617bbea7b8aa6cac8df732d454a4bc85379de2c154a737e + + + + xbt_cfgelm_peer + group__XBT__cfg__decl.html + ggaae016e87dc6935ed51617bbea7b8aa6ca79bd0045369cbc55fe7191a28d31d168 + + + + xbt_cfg_t + xbt_cfg_new + group__XBT__cfg__decl.html + ga25f767ddf162fcf5cf45c2aac58f47b8 + (void) + + + void + xbt_cfg_cpy + group__XBT__cfg__decl.html + gac679f68b23823dc08aceaefaf9b372da + (xbt_cfg_t tocopy, xbt_cfg_t *whereto) + + + void + xbt_cfg_free + group__XBT__cfg__decl.html + ga67592bfbe600c89f45f40ceeb7df2c9a + (xbt_cfg_t *cfg) + + + void + xbt_cfg_dump + group__XBT__cfg__decl.html + ga9ef64a88e6fa46d78938b32247a29528 + (const char *name, const char *indent, xbt_cfg_t cfg) + + + + XBT_cfg_register + Registering stuff + group__XBT__cfg__register.html + + void + xbt_cfg_register + group__XBT__cfg__register.html + gadfab99b0002e20fc701ca606e784a018 + (xbt_cfg_t *cfg, const char *name, const char *description, e_xbt_cfgelm_type_t type, void *default_value, int min, int max, xbt_cfg_cb_t cb_set, xbt_cfg_cb_t cb_rm) + + + void + xbt_cfg_unregister + group__XBT__cfg__register.html + gaec318f1ce663340e84726e5eb88ae81b + (xbt_cfg_t cfg, const char *name) + + + void + xbt_cfg_register_str + group__XBT__cfg__register.html + ga0dd096bfc41dc388b5d82a670dfe23f7 + (xbt_cfg_t *cfg, const char *entry) + + + void + xbt_cfg_help + group__XBT__cfg__register.html + ga20967f829423faa8b91e35978ef46252 + (xbt_cfg_t cfg) + + + void + xbt_cfg_check + group__XBT__cfg__register.html + ga6c53f538a2901ceca585e075e43e3c3e + (xbt_cfg_t cfg) + + + e_xbt_cfgelm_type_t + xbt_cfg_get_type + group__XBT__cfg__register.html + ga754d4928f875979d3fe3dadbb5c3d32e + (xbt_cfg_t cfg, const char *name) + + + + XBT_cfg_get + Getting the stored values + group__XBT__cfg__get.html + + int + xbt_cfg_get_int + group__XBT__cfg__get.html + gaf058b35acfe7f058412fece263b9bede + (xbt_cfg_t cfg, const char *name) + + + double + xbt_cfg_get_double + group__XBT__cfg__get.html + ga31012ed478ffd718fafac27b66f653b2 + (xbt_cfg_t cfg, const char *name) + + + char * + xbt_cfg_get_string + group__XBT__cfg__get.html + ga6e8854c299ca293a8531f3ac477babdd + (xbt_cfg_t cfg, const char *name) + + + void + xbt_cfg_get_peer + group__XBT__cfg__get.html + gad5690b3e30986f2b43e0fd0a92b3b553 + (xbt_cfg_t cfg, const char *name, char **peer, int *port) + + + xbt_dynar_t + xbt_cfg_get_dynar + group__XBT__cfg__get.html + gab69701ad4dbc805b23573f0e4ac02a6f + (xbt_cfg_t cfg, const char *name) + + + int + xbt_cfg_get_int_at + group__XBT__cfg__get.html + gae59bb89c4d59bcc7a47193444369141f + (xbt_cfg_t cfg, const char *name, int pos) + + + double + xbt_cfg_get_double_at + group__XBT__cfg__get.html + gab893722f0ee3b17a6fe0ae7534f60d73 + (xbt_cfg_t cfg, const char *name, int pos) + + + char * + xbt_cfg_get_string_at + group__XBT__cfg__get.html + ga436a50804f44ad8d4cb7e3b4282c3cf4 + (xbt_cfg_t cfg, const char *name, int pos) + + + void + xbt_cfg_get_peer_at + group__XBT__cfg__get.html + ga0555ea640404cc5214c7243e6e91b070 + (xbt_cfg_t cfg, const char *name, int pos, char **peer, int *port) + + + + XBT_dd_basic + Basic operations on data descriptions + group__XBT__dd__basic.html + + struct s_xbt_datadesc_type * + xbt_datadesc_type_t + group__XBT__dd__basic.html + gad201506c459504f0a27213aded48730d + + + + xbt_datadesc_type_t + xbt_datadesc_by_name + group__XBT__dd__basic.html + gaf4b2d699b60f60645c04e294337d93cd + (const char *name) + + + xbt_datadesc_type_t + xbt_datadesc_by_name_or_null + group__XBT__dd__basic.html + ga2a531cee40b9d62672ace670f531ce94 + (const char *name) + + + + XBT_dd_auto + Automatic parsing of data descriptions + group__XBT__dd__auto.html + + #define + XBT_DEFINE_TYPE + group__XBT__dd__auto.html + ga582dcac822dd60778b8c94de58d4f8b2 + (name, def) + + + #define + XBT_DEFINE_TYPE_EXTERN + group__XBT__dd__auto.html + ga8603e34575afb07e3399e940b29caffc + + + + #define + XBT_DEFINE_TYPE_LOCAL + group__XBT__dd__auto.html + gafdbc20cdd4b241eb9b560fb7ba715a5e + (name, def) + + + #define + xbt_datadesc_by_symbol + group__XBT__dd__auto.html + gad252370e735aa0e3074915a638538a73 + (name) + + + #define + XBT_ANNOTE + group__XBT__dd__auto.html + gad5f58245365718043c805436acafcd1b + (key, val) + + + void + xbt_datadesc_set_const + group__XBT__dd__auto.html + ga3e265dfcbdfeae45b43b46b39e594484 + (const char *name, int value) + + xbt_dd_define + XBT_dd_multidim + XBT_dd_multifile + + + XBT_dd_manual + Simple manual data description + group__XBT__dd__manual.html + + struct s_xbt_cbps * + xbt_cbps_t + group__XBT__dd__manual.html + ga3a51060ed7049a956ab9d12a224bbd1f + + + + void(* + xbt_datadesc_type_cb_void_t + group__XBT__dd__manual.html + gaa7427668b318c0f8ca8ca67f471d49fc + )(xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + int(* + xbt_datadesc_type_cb_int_t + group__XBT__dd__manual.html + ga16b64d35c0899e0368506c17eb49957f + )(xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + xbt_datadesc_type_t(* + xbt_datadesc_selector_t + group__XBT__dd__manual.html + gaf9e432079185cddf94a9ae6f96baa103 + )(xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + xbt_datadesc_type_t + xbt_datadesc_struct + group__XBT__dd__manual.html + gaf75f82f979b1b7971a7db551cb15a963 + (const char *name) + + + void + xbt_datadesc_struct_append + group__XBT__dd__manual.html + ga9b85aa5ae3699cbb2627f12045046b2a + (xbt_datadesc_type_t struct_type, const char *name, xbt_datadesc_type_t field_type) + + + void + xbt_datadesc_struct_close + group__XBT__dd__manual.html + gaa55fef3826bb7cecd44a779506902362 + (xbt_datadesc_type_t struct_type) + + + xbt_datadesc_type_t + xbt_datadesc_union + group__XBT__dd__manual.html + ga11a8790485111d8e0209acfe68d00f1f + (const char *name, xbt_datadesc_type_cb_int_t selector) + + + void + xbt_datadesc_union_append + group__XBT__dd__manual.html + gaaccd7a5195f2eac5e28f29aad39543a8 + (xbt_datadesc_type_t union_type, const char *name, xbt_datadesc_type_t field_type) + + + void + xbt_datadesc_union_close + group__XBT__dd__manual.html + ga111a053bea3c30e3db309e20157b84ac + (xbt_datadesc_type_t union_type) + + + xbt_datadesc_type_t + xbt_datadesc_ref + group__XBT__dd__manual.html + ga653cdcf0625d1f0eb0eb982f05eb7aa1 + (const char *name, xbt_datadesc_type_t referenced_type) + + + xbt_datadesc_type_t + xbt_datadesc_copy + group__XBT__dd__manual.html + ga656cdef0ef1a94d69886338aa48cf732 + (const char *name, xbt_datadesc_type_t copied_type) + + + xbt_datadesc_type_t + xbt_datadesc_ref_generic + group__XBT__dd__manual.html + gadf51c5c0bcdbcf5288d275516274ee8f + (const char *name, xbt_datadesc_selector_t selector) + + + xbt_datadesc_type_t + xbt_datadesc_array_fixed + group__XBT__dd__manual.html + gaf510d71d8b3b55c07d5adece8a80da17 + (const char *name, xbt_datadesc_type_t element_type, long int fixed_size) + + + xbt_datadesc_type_t + xbt_datadesc_array_dyn + group__XBT__dd__manual.html + gaaff88d9b0344325dbbe863050f84c14a + (const char *name, xbt_datadesc_type_t element_type, xbt_datadesc_type_cb_int_t dynamic_size) + + + xbt_datadesc_type_t + xbt_datadesc_ref_pop_arr + group__XBT__dd__manual.html + ga7ba9e0d3c6e7ef82576583947d507138 + (xbt_datadesc_type_t element_type) + + + xbt_datadesc_type_t + xbt_datadesc_dynar + group__XBT__dd__manual.html + ga8b6e44623a1831c588409dc824b4fa36 + (xbt_datadesc_type_t elm_t, void_f_pvoid_t free_func) + + + void + xbt_datadesc_cycle_set + group__XBT__dd__manual.html + ga909c5a7089072d87af2f46a21edaf4cf + (xbt_datadesc_type_t type) + + + void + xbt_datadesc_cycle_unset + group__XBT__dd__manual.html + gae2a2d83da317afbdf9466f0f9ff9090b + (xbt_datadesc_type_t type) + + + void + xbt_datadesc_cb_send + group__XBT__dd__manual.html + ga60a592741d03dc571767768f774b299d + (xbt_datadesc_type_t type, xbt_datadesc_type_cb_void_t pre) + + + void + xbt_datadesc_cb_recv + group__XBT__dd__manual.html + gab26b9ab42ef8ced0aef32a3309792121 + (xbt_datadesc_type_t type, xbt_datadesc_type_cb_void_t post) + + + void + xbt_datadesc_cb_field_send + group__XBT__dd__manual.html + ga7bd02e7b15648f8983d6c72a2b25d962 + (xbt_datadesc_type_t type, const char *field_name, xbt_datadesc_type_cb_void_t pre) + + + void + xbt_datadesc_cb_field_recv + group__XBT__dd__manual.html + gaf63643937275aad57fe4fed88b97571b + (xbt_datadesc_type_t type, const char *field_name, xbt_datadesc_type_cb_void_t post) + + + void + xbt_datadesc_cb_field_push + group__XBT__dd__manual.html + gac7164024fb65fb115069e7f332489c37 + (xbt_datadesc_type_t type, const char *field_name) + + + void + xbt_datadesc_cb_field_push_multiplier + group__XBT__dd__manual.html + ga4c981559a5cfc9bb525f64ba8b486dc7 + (xbt_datadesc_type_t type, const char *field_name) + + + const char * + xbt_datadesc_get_name + group__XBT__dd__manual.html + ga9a155b7653576fcb8322b49bfc4b577a + (xbt_datadesc_type_t ddt) + + + int + xbt_datadesc_get_id + group__XBT__dd__manual.html + ga02ed879c83ec6dc9c99c243f89a535d9 + (xbt_datadesc_type_t ddt) + + + + XBT_dd_cb_simple + Data description with Callback Persistant State: Simple push/pop mechanism + group__XBT__dd__cb__simple.html + + void + xbt_cbps_i_push + group__XBT__dd__cb__simple.html + ga3dd84dfbb6becd7112acbb8523f3fd79 + (xbt_cbps_t ps, int val) + + + int + xbt_cbps_i_pop + group__XBT__dd__cb__simple.html + gacc7da7574aecc1bf53b858a012397311 + (xbt_cbps_t ps) + + + int + xbt_datadesc_cb_pop + group__XBT__dd__cb__simple.html + ga465740817b43345fc9c9c0c4085d7016 + (xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + void + xbt_datadesc_cb_push_int + group__XBT__dd__cb__simple.html + ga6545b0ef382856115f0c5803b1f054e4 + (xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + void + xbt_datadesc_cb_push_uint + group__XBT__dd__cb__simple.html + ga9e6f4c9b54914e98db3d21f82244d22c + (xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + void + xbt_datadesc_cb_push_lint + group__XBT__dd__cb__simple.html + gaccf30925e498ba7147eb756318a925a4 + (xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + void + xbt_datadesc_cb_push_ulint + group__XBT__dd__cb__simple.html + gae5bdef15e98af3125c846dcf7188f566 + (xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + void + xbt_datadesc_cb_push_int_mult + group__XBT__dd__cb__simple.html + ga0ee280a32ce28ccdedeae2a61ba3a5b0 + (xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + void + xbt_datadesc_cb_push_uint_mult + group__XBT__dd__cb__simple.html + gae902804a474a7f7ad03bb5591c8a766d + (xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + void + xbt_datadesc_cb_push_lint_mult + group__XBT__dd__cb__simple.html + gab7285f0b6dce3b1e13aeed378d6a2655 + (xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + void + xbt_datadesc_cb_push_ulint_mult + group__XBT__dd__cb__simple.html + ga9af60a3ad5310086d20bd167b610a65b + (xbt_datadesc_type_t typedesc, xbt_cbps_t vars, void *data) + + + + XBT_dd_cb_full + Data description with Callback Persistant State: Full featured interface + group__XBT__dd__cb__full.html + + void + xbt_cbps_v_pop + group__XBT__dd__cb__full.html + gac395ca0b2355cd1244ae31c50d8f91a7 + (xbt_cbps_t ps, const char *name, xbt_datadesc_type_t *ddt, void **res) + + + void + xbt_cbps_v_push + group__XBT__dd__cb__full.html + ga5a353875fc01c709c556cbe21db447c0 + (xbt_cbps_t ps, const char *name, void *data, xbt_datadesc_type_t ddt) + + + void + xbt_cbps_v_set + group__XBT__dd__cb__full.html + ga5d81d2ecc51f55a4f04a98b13c900c70 + (xbt_cbps_t ps, const char *name, void *data, xbt_datadesc_type_t ddt) + + + void * + xbt_cbps_v_get + group__XBT__dd__cb__full.html + gadbfa50f7a3c6c21152e10f3f8a33e528 + (xbt_cbps_t ps, const char *name, xbt_datadesc_type_t *ddt) + + + void + xbt_cbps_block_begin + group__XBT__dd__cb__full.html + ga04e9fc964f9d1a65cb5462f81f0ad1f1 + (xbt_cbps_t ps) + + + void + xbt_cbps_block_end + group__XBT__dd__cb__full.html + ga8b0dd35ac64431d80772d5c185d11a19 + (xbt_cbps_t ps) + + + + XBT_dict_cons + Dict constructor and destructor + group__XBT__dict__cons.html + + struct s_xbt_dict * + xbt_dict_t + group__XBT__dict__cons.html + gac60ea15fce6ea593be308de876712f04 + + + + xbt_dict_t + xbt_dict_new + group__XBT__dict__cons.html + ga3f03623cb96849ab40db9b9af25ac38c + (void) + + + xbt_dict_t + xbt_dict_new_homogeneous + group__XBT__dict__cons.html + ga99fe5eb49d3fa9f1f31fb6d519fb7197 + (void_f_pvoid_t free_ctn) + + + void + xbt_dict_free + group__XBT__dict__cons.html + ga35d2edf4086c13f0c096621aaf421c7d + (xbt_dict_t *dict) + + + unsigned int + xbt_dict_size + group__XBT__dict__cons.html + ga79130ac36df5cbdc334a3424a92eff5d + (xbt_dict_t dict) + + + + XBT_dict_basic + Dictionaries basic usage + group__XBT__dict__basic.html + + void + xbt_dict_set + group__XBT__dict__basic.html + ga5167ca9336b1c9d5e2a3dacd6b702055 + (xbt_dict_t dict, const char *key, void *data, void_f_pvoid_t free_ctn) + + + void * + xbt_dict_get + group__XBT__dict__basic.html + gadc5080181f23fa2802b17b0982d76115 + (xbt_dict_t dict, const char *key) + + + void * + xbt_dict_get_or_null + group__XBT__dict__basic.html + gac1398f8a025c0f22195e74f2bd5522fa + (xbt_dict_t dict, const char *key) + + + char * + xbt_dict_get_key + group__XBT__dict__basic.html + ga16e3ad7d2a93d89b95582ad82d1ce100 + (xbt_dict_t dict, const void *data) + + + void + xbt_dict_remove + group__XBT__dict__basic.html + gac8befeb2dc3ba97fb0ff1d3da83f21fb + (xbt_dict_t dict, const char *key) + + + void + xbt_dict_reset + group__XBT__dict__basic.html + ga0fe854e3c13798e32ebc642c00be6ad4 + (xbt_dict_t dict) + + + int + xbt_dict_length + group__XBT__dict__basic.html + gac0cf96e5e13da996aac831d8d10f0985 + (xbt_dict_t dict) + + + void + xbt_dict_dump_output_string + group__XBT__dict__basic.html + ga38d0003fc16ce9d437c9cb1c7b2e4a8e + (void *s) + + + void + xbt_dict_dump + group__XBT__dict__basic.html + ga7d8b3282a0599ed922bbac9c0686e456 + (xbt_dict_t dict, void(*output)(void *)) + + + void + xbt_dict_dump_sizes + group__XBT__dict__basic.html + gaa8c1e5beb5655c030df76fbcce9c9bbc + (xbt_dict_t dict) + + + int + xbt_dict_is_empty + group__XBT__dict__basic.html + ga68fb97981b63d246769f4b6fbbcb3eaf + (xbt_dict_t dict) + + + + XBT_dict_nnul + Dictionaries with non-nul terminated keys + group__XBT__dict__nnul.html + + void + xbt_dict_set_ext + group__XBT__dict__nnul.html + gac10a4d2fd3a86576c1be1b61811317d8 + (xbt_dict_t dict, const char *key, int key_len, void *data, void_f_pvoid_t free_ctn) + + + void * + xbt_dict_get_ext + group__XBT__dict__nnul.html + ga7e5810ce5387ee78e25bb92c206deacd + (xbt_dict_t dict, const char *key, int key_len) + + + void * + xbt_dict_get_or_null_ext + group__XBT__dict__nnul.html + gabfcc7b250b01f46a4397946a7a104fd1 + (xbt_dict_t dict, const char *key, int key_len) + + + void + xbt_dict_remove_ext + group__XBT__dict__nnul.html + gad36d0be75e939e85ee17a9756332b6c4 + (xbt_dict_t dict, const char *key, int key_len) + + + + XBT_dict_curs + Cursors on dictionaries + group__XBT__dict__curs.html + + #define + xbt_dict_foreach + group__XBT__dict__curs.html + ga3124aa46173fbf9fc703b748cebd4b70 + (dict, cursor, key, data) + + + struct s_xbt_dict_cursor * + xbt_dict_cursor_t + group__XBT__dict__curs.html + gae611da46e5289c03ea69e551e4d6f6b5 + + + + xbt_dict_cursor_t + xbt_dict_cursor_new + group__XBT__dict__curs.html + ga5c29813d0de67603640f948b2d712209 + (const xbt_dict_t dict) + + + void + xbt_dict_cursor_free + group__XBT__dict__curs.html + ga88eb8699e8778f9d1c5821da0bab1849 + (xbt_dict_cursor_t *cursor) + + + void + xbt_dict_cursor_rewind + group__XBT__dict__curs.html + ga0f0f7f26eef7dca0f3d837bac985a0ff + (xbt_dict_cursor_t cursor) + + + char * + xbt_dict_cursor_get_key + group__XBT__dict__curs.html + ga86b45796b83225553370f1ed2298bdba + (xbt_dict_cursor_t cursor) + + + void * + xbt_dict_cursor_get_data + group__XBT__dict__curs.html + ga2ebcfc14c62baafab95b9c994a2e6012 + (xbt_dict_cursor_t cursor) + + + void + xbt_dict_cursor_set_data + group__XBT__dict__curs.html + ga714c4490d2187b042a6993c68e860fad + (xbt_dict_cursor_t cursor, void *data, void_f_pvoid_t free_ctn) + + + void + xbt_dict_cursor_first + group__XBT__dict__curs.html + gaed25ac933321fa3837877f2210979db7 + (const xbt_dict_t dict, xbt_dict_cursor_t *cursor) + + + void + xbt_dict_cursor_step + group__XBT__dict__curs.html + ga9871423165388f7637dd67116b68044a + (xbt_dict_cursor_t cursor) + + + int + xbt_dict_cursor_get_or_free + group__XBT__dict__curs.html + gad8ef9a04e0c50a3ed9a2dfa7ca36d599 + (xbt_dict_cursor_t *cursor, char **key, void **data) + + + + XBT_dynar_cons + Dynar constructor and destructor + group__XBT__dynar__cons.html + + struct xbt_dynar_s * + xbt_dynar_t + group__XBT__dynar__cons.html + gac826571988d2b63ae225e5c62ecdbc79 + + + + xbt_dynar_t + xbt_dynar_new + group__XBT__dynar__cons.html + ga69ab371f667dfe5aa51fb612b9afaca5 + (const unsigned long elm_size, void_f_pvoid_t const free_f) + + + xbt_dynar_t + xbt_dynar_new_sync + group__XBT__dynar__cons.html + ga34979efcf4d9e68ab3d817368ff453ac + (const unsigned long elm_size, void_f_pvoid_t const free_f) + + + void + xbt_dynar_free + group__XBT__dynar__cons.html + ga9b7808eb7a87dcf331a467f323ae16a6 + (xbt_dynar_t *dynar) + + + void + xbt_dynar_free_voidp + group__XBT__dynar__cons.html + gacab2aaa46863a53beaa1637bd41995aa + (void *dynar) + + + void + xbt_dynar_free_container + group__XBT__dynar__cons.html + ga7bc3c4dffd7740c9c1ea129d1167c0bc + (xbt_dynar_t *dynar) + + + void + xbt_dynar_shrink + group__XBT__dynar__cons.html + ga8c1a192e8119147d92eaf873a2861fc0 + (xbt_dynar_t dynar, int empty_slots) + + + + XBT_dynar_array + Dynar as a regular array + group__XBT__dynar__array.html + + void + xbt_dynar_get_cpy + group__XBT__dynar__array.html + ga21d02c5fc8289c0bfc6c7d57222bcf90 + (const xbt_dynar_t dynar, const unsigned long idx, void *const dst) + + + void + xbt_dynar_set + group__XBT__dynar__array.html + ga145c591bf6e4e58edaeeda85e639ff8e + (xbt_dynar_t dynar, const int idx, const void *src) + + + void + xbt_dynar_replace + group__XBT__dynar__array.html + ga22ccf4f0b47dd4a187af2e0a05abd323 + (xbt_dynar_t dynar, const unsigned long idx, const void *object) + + + void + xbt_dynar_insert_at + group__XBT__dynar__array.html + ga26fe1c942bfecc8261d3fd9bc4df9bab + (xbt_dynar_t const dynar, const int idx, const void *src) + + + void + xbt_dynar_remove_at + group__XBT__dynar__array.html + ga32a7eaf157e28533482cda7d84460705 + (xbt_dynar_t const dynar, const int idx, void *const dst) + + + unsigned int + xbt_dynar_search + group__XBT__dynar__array.html + ga0ec08fdba0bad2c1ef0e07269564edcd + (xbt_dynar_t const dynar, void *elem) + + + signed int + xbt_dynar_search_or_negative + group__XBT__dynar__array.html + gafff87cf8f67e2cc57e783a7c740a476e + (xbt_dynar_t const dynar, void *const elem) + + + int + xbt_dynar_member + group__XBT__dynar__array.html + gaa1f2f12b574997619e36d46ac747f880 + (xbt_dynar_t const dynar, void *elem) + + + void + xbt_dynar_sort + group__XBT__dynar__array.html + ga666d4ca5510ffa9f2cc9a1463c19e935 + (xbt_dynar_t const dynar, int_f_cpvoid_cpvoid_t compar_fn) + + + void + xbt_dynar_three_way_partition + group__XBT__dynar__array.html + ga136826efe107769033d82e9d162ff65d + (xbt_dynar_t const dynar, int_f_pvoid_t color) + + + void * + xbt_dynar_to_array + group__XBT__dynar__array.html + ga8fb5745b688cae53556f69b8e728ef70 + (xbt_dynar_t dynar) + + + + XBT_dynar_misc + Dynar miscellaneous functions + group__XBT__dynar__misc.html + + unsigned long + xbt_dynar_length + group__XBT__dynar__misc.html + ga3beec123eb77ceda5b750f6f2ca48e18 + (const xbt_dynar_t dynar) + + + int + xbt_dynar_is_empty + group__XBT__dynar__misc.html + ga57aab83ad4ff1a1df5a1c293627c41d8 + (const xbt_dynar_t dynar) + + + void + xbt_dynar_reset + group__XBT__dynar__misc.html + gadbe6a462084ca281bab5ac3a1585097e + (xbt_dynar_t const dynar) + + + void + xbt_dynar_merge + group__XBT__dynar__misc.html + ga92e52b3898cb02ad47244b88ab7895e4 + (xbt_dynar_t *d1, xbt_dynar_t *d2) + + + + XBT_dynar_perl + Perl-like use of dynars + group__XBT__dynar__perl.html + + void + xbt_dynar_push + group__XBT__dynar__perl.html + gac89da4c2c302218759c7fe477d8eacc0 + (xbt_dynar_t const dynar, const void *src) + + + void + xbt_dynar_pop + group__XBT__dynar__perl.html + ga37d2b11c522e02ede79a12a89575ceb1 + (xbt_dynar_t const dynar, void *const dst) + + + void + xbt_dynar_unshift + group__XBT__dynar__perl.html + ga3499315d48944f3bfaf6aeea1e2c75e8 + (xbt_dynar_t const dynar, const void *src) + + + void + xbt_dynar_shift + group__XBT__dynar__perl.html + ga2966d02b350ef985447c4053c258a1a0 + (xbt_dynar_t const dynar, void *const dst) + + + void + xbt_dynar_map + group__XBT__dynar__perl.html + ga02bb7b95aaa0fe03c26222f65566e744 + (const xbt_dynar_t dynar, void_f_pvoid_t const op) + + + + XBT_dynar_ctn + Direct manipulation to the dynars content + group__XBT__dynar__ctn.html + + void * + xbt_dynar_get_ptr + group__XBT__dynar__ctn.html + ga7cee77666f148fc987bbdeca3d10bdc2 + (const xbt_dynar_t dynar, const unsigned long idx) + + + void * + xbt_dynar_insert_at_ptr + group__XBT__dynar__ctn.html + ga06afc0831b210b5323e61a9a217d6158 + (xbt_dynar_t const dynar, const int idx) + + + void * + xbt_dynar_push_ptr + group__XBT__dynar__ctn.html + ga35272457aa299d326977767a00e01ffe + (xbt_dynar_t const dynar) + + + void * + xbt_dynar_pop_ptr + group__XBT__dynar__ctn.html + ga4f1ef94eae8a2060697a9674d46f0c2f + (xbt_dynar_t const dynar) + + + + XBT_dynar_speed + Speed optimized access to dynars of scalars + group__XBT__dynar__speed.html + + #define + xbt_dynar_get_as + group__XBT__dynar__speed.html + ga5604d34153e9c96ac193245757f63085 + (dynar, idx, type) + + + #define + xbt_dynar_set_as + group__XBT__dynar__speed.html + gafee03470eed0dc5e8eb240288ba8b11b + (dynar, idx, type, val) + + + #define + xbt_dynar_getlast_as + group__XBT__dynar__speed.html + gac056cfe5092e40327377547abd9995ee + (dynar, type) + + + #define + xbt_dynar_getfirst_as + group__XBT__dynar__speed.html + ga209a34611a295f0e3516536e753893c3 + (dynar, type) + + + #define + xbt_dynar_insert_at_as + group__XBT__dynar__speed.html + ga767cbdbaddd71fb98140eb78309b5739 + (dynar, idx, type, value) + + + #define + xbt_dynar_push_as + group__XBT__dynar__speed.html + ga50d763465a98678a3e83afa6b5ecd243 + (dynar, type, value) + + + #define + xbt_dynar_pop_as + group__XBT__dynar__speed.html + gab6dd8b8802c7ad0b12a81ecd806370cc + (dynar, type) + + + + XBT_dynar_cursor + Cursors on dynar + group__XBT__dynar__cursor.html + + #define + xbt_dynar_foreach + group__XBT__dynar__cursor.html + ga315906139864e84a34aa5610ba0be1fc + (_dynar, _cursor, _data) + + + void + xbt_dynar_cursor_rm + group__XBT__dynar__cursor.html + ga478b49fe9e8280b4c73b9ccd208a4f78 + (xbt_dynar_t dynar, unsigned int *const cursor) + + + void + xbt_dynar_cursor_unlock + group__XBT__dynar__cursor.html + ga44f885719301510ce99d93937dc35e0b + (xbt_dynar_t dynar) + + + + XBT_fifo_cons + Fifo constructor and destructor + group__XBT__fifo__cons.html + + struct xbt_fifo_item * + xbt_fifo_item_t + group__XBT__fifo__cons.html + ga58e96f4a3637f7ff6bb1a9f53e7865c8 + + + + struct xbt_fifo * + xbt_fifo_t + group__XBT__fifo__cons.html + ga24efbdc1db204e1a628958ce7509a312 + + + + xbt_fifo_t + xbt_fifo_new + group__XBT__fifo__cons.html + ga2797ae0ae47b096ffdd99fbd60d8402d + (void) + + + void + xbt_fifo_free + group__XBT__fifo__cons.html + ga7e4e0a12b0bb5a0cc761e926a6ec8ea7 + (xbt_fifo_t) + + + void + xbt_fifo_reset + group__XBT__fifo__cons.html + ga028b8b135de99c5526269b5c124093cf + (xbt_fifo_t) + + + + XBT_fifo_perl + Fifo perl-like functions + group__XBT__fifo__perl.html + + xbt_fifo_item_t + xbt_fifo_push + group__XBT__fifo__perl.html + ga62606f494627c7be494082bb2a239f7a + (xbt_fifo_t, void *) + + + void * + xbt_fifo_pop + group__XBT__fifo__perl.html + gaa8ae3369665727b54c3c3d0f5c1e91be + (xbt_fifo_t) + + + xbt_fifo_item_t + xbt_fifo_unshift + group__XBT__fifo__perl.html + gad165b0eb7ea833480776eb02062da45f + (xbt_fifo_t, void *) + + + void * + xbt_fifo_shift + group__XBT__fifo__perl.html + ga79a99aa3de3fb2d15836fffca5e28c83 + (xbt_fifo_t) + + + int + xbt_fifo_size + group__XBT__fifo__perl.html + gad7fdf56ec51e0c1ec442225b3e3ccc07 + (xbt_fifo_t) + + + int + xbt_fifo_is_in + group__XBT__fifo__perl.html + ga29753ca3f59d8e810bcee69304cd8b42 + (xbt_fifo_t, void *) + + + + XBT_fifo_direct + Direct access to fifo elements + group__XBT__fifo__direct.html + + #define + xbt_fifo_foreach + group__XBT__fifo__direct.html + ga7062f0aae3a97fa72fcf86673675d434 + (f, i, n, type) + + + xbt_fifo_item_t + xbt_fifo_new_item + group__XBT__fifo__direct.html + gad9f577f95ac147ed876083d60166a662 + (void) + + + void + xbt_fifo_set_item_content + group__XBT__fifo__direct.html + ga3a95882cc4858a10fa29216c939eb1b4 + (xbt_fifo_item_t, void *) + + + void * + xbt_fifo_get_item_content + group__XBT__fifo__direct.html + ga601af16f78f6f1753477ce8e91eece01 + (xbt_fifo_item_t) + + + void + xbt_fifo_free_item + group__XBT__fifo__direct.html + ga4bfc376902e2e15da4acb31c2ac77d84 + (xbt_fifo_item_t) + + + void + xbt_fifo_push_item + group__XBT__fifo__direct.html + gae1266d2dc81fc9d46334500682756b93 + (xbt_fifo_t, xbt_fifo_item_t) + + + xbt_fifo_item_t + xbt_fifo_pop_item + group__XBT__fifo__direct.html + ga32cfb8161a224dafafbf3f667d8257aa + (xbt_fifo_t) + + + void + xbt_fifo_unshift_item + group__XBT__fifo__direct.html + gab5d6b760390ffc095f35f50e5bfd890a + (xbt_fifo_t, xbt_fifo_item_t) + + + xbt_fifo_item_t + xbt_fifo_shift_item + group__XBT__fifo__direct.html + ga46dbde2e3359af8a79f2d4da7582d18c + (xbt_fifo_t) + + + int + xbt_fifo_remove + group__XBT__fifo__direct.html + gafae46252cee20c382f9ce4f2e2573135 + (xbt_fifo_t, void *) + + + int + xbt_fifo_remove_all + group__XBT__fifo__direct.html + ga0662ae632f8f72753074f0cf234f8c46 + (xbt_fifo_t, void *) + + + void + xbt_fifo_remove_item + group__XBT__fifo__direct.html + gabd68f9b13a5e4984224760e9e5afed3b + (xbt_fifo_t, xbt_fifo_item_t) + + + xbt_fifo_item_t + xbt_fifo_get_first_item + group__XBT__fifo__direct.html + gadde4755e50e84bf3235182227cdc1580 + (xbt_fifo_t l) + + + xbt_fifo_item_t + xbt_fifo_get_last_item + group__XBT__fifo__direct.html + ga8cbb245158703f78cab3d076804eaa61 + (xbt_fifo_t l) + + + xbt_fifo_item_t + xbt_fifo_get_next_item + group__XBT__fifo__direct.html + ga6fde465c7d19469ee07e28d7ae5f611b + (xbt_fifo_item_t i) + + + xbt_fifo_item_t + xbt_fifo_get_prev_item + group__XBT__fifo__direct.html + gac47a383a08e9c08cc4dd5bf29cd50994 + (xbt_fifo_item_t i) + + + + XBT_fifo_misc + Misc fifo functions + group__XBT__fifo__misc.html + + void ** + xbt_fifo_to_array + group__XBT__fifo__misc.html + ga0a85e5e8e1e0774885f73614f3a40770 + (xbt_fifo_t) + + + xbt_fifo_t + xbt_fifo_copy + group__XBT__fifo__misc.html + ga9fc2652fb4c1d80adbf4f8e7267846fd + (xbt_fifo_t) + + + + XBT_log_cats + Existing log categories + group__XBT__log__cats.html + + + XBT_mallocator_cons + Mallocator constructor and destructor + group__XBT__mallocator__cons.html + + struct s_xbt_mallocator * + xbt_mallocator_t + group__XBT__mallocator__cons.html + gab949b93743d06b31bbdf3828d34a72ac + + + + xbt_mallocator_t + xbt_mallocator_new + group__XBT__mallocator__cons.html + ga31b8b348c6b44d730c915c5442a64637 + (int size, pvoid_f_void_t new_f, void_f_pvoid_t free_f, void_f_pvoid_t reset_f) + + + void + xbt_mallocator_free + group__XBT__mallocator__cons.html + gaa884a3ef269f0709b9b2e025708f2e95 + (xbt_mallocator_t mallocator) + + + + XBT_mallocator_objects + Mallocator object handling + group__XBT__mallocator__objects.html + + void * + xbt_mallocator_get + group__XBT__mallocator__objects.html + ga3e52409c5b24294ef98367b56cad4c7b + (xbt_mallocator_t mallocator) + + + void + xbt_mallocator_release + group__XBT__mallocator__objects.html + gaf33e29b8ca5ab081c3ab323cf42fd244 + (xbt_mallocator_t mallocator, void *object) + + + + XBT_set_cons + Set and set elements, constructor/destructor + group__XBT__set__cons.html + xbt_set_elm_ + + struct xbt_set_ * + xbt_set_t + group__XBT__set__cons.html + ga5a56bcacbc9efbb918abb6be2f7c8b7d + + + + struct xbt_set_elm_ + s_xbt_set_elm_t + group__XBT__set__cons.html + gaf8bb4c0082689473e7aa16791283a38e + + + + xbt_set_t + xbt_set_new + group__XBT__set__cons.html + ga2cb4e125f22594bb8f7a2726464fed3d + (void) + + + void + xbt_set_free + group__XBT__set__cons.html + ga268b2b486920b5f0a580b3d1bed6875a + (xbt_set_t *set) + + + + XBT_set_basic + Sets basic usage + group__XBT__set__basic.html + + void + xbt_set_add + group__XBT__set__basic.html + ga1db2802704edc8b5d404ca204fc5b34d + (xbt_set_t set, xbt_set_elm_t elm, void_f_pvoid_t free_func) + + + void + xbt_set_remove + group__XBT__set__basic.html + gadd31f4f1a5a5fdce54f3a8bfbc37de8a + (xbt_set_t set, xbt_set_elm_t elm) + + + void + xbt_set_remove_by_name + group__XBT__set__basic.html + gac5ac26bcb50f5a22c1b2af1f8a1f49c4 + (xbt_set_t set, const char *key) + + + xbt_set_elm_t + xbt_set_get_by_name_or_null + group__XBT__set__basic.html + ga02fb94d3aa9fcfaae688f61a0ca9cdc2 + (xbt_set_t set, const char *key) + + + void + xbt_set_remove_by_name_ext + group__XBT__set__basic.html + gabda240bc3fa5bc0ac6983b19f4caa5f8 + (xbt_set_t set, const char *key, int key_len) + + + void + xbt_set_remove_by_id + group__XBT__set__basic.html + ga917c20ea5adb57ca287dd1d48ca12ec7 + (xbt_set_t set, int id) + + + xbt_set_elm_t + xbt_set_get_by_name + group__XBT__set__basic.html + gaa5ebcac05554bc6c20129b437851b12e + (xbt_set_t set, const char *key) + + + xbt_set_elm_t + xbt_set_get_by_name_ext + group__XBT__set__basic.html + ga6a7bc28b3bedbcb05e2a60297c9df8f0 + (xbt_set_t set, const char *key, int key_len) + + + xbt_set_elm_t + xbt_set_get_by_id + group__XBT__set__basic.html + ga19df8b5e26799112d5aba9f677739138 + (xbt_set_t set, int id) + + + unsigned long + xbt_set_length + group__XBT__set__basic.html + ga5a1935dab5ad9e2f3c9820e6db7889a7 + (const xbt_set_t set) + + + + XBT_set_curs + Sets cursors + group__XBT__set__curs.html + + #define + xbt_set_foreach + group__XBT__set__curs.html + ga58f50aee97a03985e1af193fbdea92ba + (set, cursor, elm) + + + struct xbt_set_cursor_ * + xbt_set_cursor_t + group__XBT__set__curs.html + ga07bc36055121d6d2b49a483608033827 + + + + void + xbt_set_cursor_first + group__XBT__set__curs.html + ga0ae677ad09fbf19fc8f9343dcc647dc2 + (xbt_set_t set, xbt_set_cursor_t *cursor) + + + void + xbt_set_cursor_step + group__XBT__set__curs.html + ga1e42bd77295716cac5d3a38f4b7419b1 + (xbt_set_cursor_t cursor) + + + int + xbt_set_cursor_get_or_free + group__XBT__set__curs.html + gac4c1fa14c3207e4ad1c9973db97147d5 + (xbt_set_cursor_t *cursor, xbt_set_elm_t *elm) + + + + XBT_sock_create + Socket creation functions + group__XBT__sock__create.html + + struct s_xbt_socket * + xbt_socket_t + group__XBT__sock__create.html + ga490f317ed9bc4b6d7f0b78bf91e6f184 + + + + void + xbt_socket_new + group__XBT__sock__create.html + ga74063187ff4613e222182d2d15470b8b + (int incoming, xbt_socket_t *dst) + + + void + xbt_socket_new_ext + group__XBT__sock__create.html + ga2a1ab2bf2abddc36a185271d5c7eec28 + (int incoming, xbt_socket_t *dst, xbt_trp_plugin_t plugin, unsigned long int buf_size, int measurement) + + + xbt_socket_t + xbt_socket_tcp_client + group__XBT__sock__create.html + ga5e8064902e221d58babcc5e9e29486fb + (const char *host, unsigned short port) + + + xbt_socket_t + xbt_socket_tcp_server + group__XBT__sock__create.html + ga51c2d089498cd0b624dfd0dc4c951b4f + (unsigned short port) + + + xbt_socket_t + xbt_socket_tcp_client_ext + group__XBT__sock__create.html + ga8b7a8ef98dedacec480e81d269c9cf15 + (const char *host, unsigned short port, unsigned long int bufSize, int measurement) + + + xbt_socket_t + xbt_socket_tcp_server_ext + group__XBT__sock__create.html + ga2e65b16a680eb855b2cd81358972facb + (unsigned short portcp_t, unsigned long int bufSize, int measurement) + + + + XBT_sock_info + Retrieving data about sockets and peers + group__XBT__sock__info.html + + int + xbt_socket_my_port + group__XBT__sock__info.html + gafe4ba785c1b995f3508423b064ad6527 + (xbt_socket_t sock) + + + int + xbt_socket_peer_port + group__XBT__sock__info.html + ga261ce2b45f820b18c6cf9efc46257f13 + (xbt_socket_t sock) + + + const char * + xbt_socket_peer_name + group__XBT__sock__info.html + ga333dd4cc354fc99c54661967b58efe27 + (xbt_socket_t sock) + + + const char * + xbt_socket_peer_proc + group__XBT__sock__info.html + ga9a749edc9efe22f95cbdabdbfe8c123a + (xbt_socket_t sock) + + + + XBT_sock_meas + Using measurement sockets + group__XBT__sock__meas.html + + int + xbt_socket_is_meas + group__XBT__sock__meas.html + ga6123c76b9debccd4338a856cce5896d8 + (xbt_socket_t sock) + + + void + xbt_socket_meas_send + group__XBT__sock__meas.html + ga2702c9f2e738cde0bbbce90c6647b334 + (xbt_socket_t peer, unsigned int timeout, unsigned long int msgSize, unsigned long int msgAmount) + + + void + xbt_socket_meas_recv + group__XBT__sock__meas.html + gabaff122cfcb3bd3f6c991d0b2d50b710 + (xbt_socket_t peer, unsigned int timeout, unsigned long int msgSize, unsigned long int msgAmount) + + + xbt_socket_t + xbt_socket_meas_accept + group__XBT__sock__meas.html + ga4b3de4557dde69d3862c9657fbfb07a7 + (xbt_socket_t peer) + + + + XBT_sock_plugin + Plugin mechanism + group__XBT__sock__plugin.html + + + XBT_swag_type + Swag types + group__XBT__swag__type.html + + struct xbt_swag_hookup + s_xbt_swag_hookup_t + group__XBT__swag__type.html + ga1cb9298c552ff2834e5dad4848311692 + + + + struct xbt_swag * + xbt_swag_t + group__XBT__swag__type.html + gae08645c9a236bae019fb12ab374dc17f + + + + + XBT_swag_func + SWAG functions + group__XBT__swag__func.html + + #define + xbt_swag_reset + group__XBT__swag__func.html + ga178b8841e1a3e2561f5b73fbfdecdfa1 + (swag) + + + #define + xbt_swag_insert + group__XBT__swag__func.html + ga1bb1fb6d0e53c58a6d5c9ceac94339b6 + (obj, swag) + + + #define + xbt_swag_offset + group__XBT__swag__func.html + ga96193348bca3b2b0840cbc122d8516f7 + (var, field) + + + xbt_swag_t + xbt_swag_new + group__XBT__swag__func.html + ga11b0c605fb84243e1c399831c9efbf6c + (size_t offset) + + + void + xbt_swag_free + group__XBT__swag__func.html + ga936859aae1ee95f8cfb9f32047dc482d + (xbt_swag_t swag) + + + void + xbt_swag_init + group__XBT__swag__func.html + ga08da2ee0936e19da57695b5d99007c64 + (xbt_swag_t swag, size_t offset) + + + void + xbt_swag_insert_at_head + group__XBT__swag__func.html + ga19c8dc8c1637bb0fce94c4bc38b7d088 + (void *obj, xbt_swag_t swag) + + + void + xbt_swag_insert_at_tail + group__XBT__swag__func.html + gae5919f7e25c402ac3079d792e033a1fb + (void *obj, xbt_swag_t swag) + + + void * + xbt_swag_remove + group__XBT__swag__func.html + gabce3d24a60fbd2e2cbd31df6612418a3 + (void *obj, xbt_swag_t swag) + + + void * + xbt_swag_extract + group__XBT__swag__func.html + ga008f75ad3c220b326121e44a6cadb6d3 + (xbt_swag_t swag) + + + int + xbt_swag_size + group__XBT__swag__func.html + gaef55e706dcbabb605cf71e522caa82e6 + (xbt_swag_t swag) + + + + XBT_swag_curs + Swag cursor + group__XBT__swag__curs.html + + #define + xbt_swag_foreach + group__XBT__swag__curs.html + gad0579732a4cf176b7812381b85c1df42 + (obj, swag) + + + #define + xbt_swag_foreach_safe + group__XBT__swag__curs.html + ga1cd81b745c6799a768b8f08c5d4c7974 + (obj, obj_next, swag) + + + + SD_link_management + Links + group__SD__link__management.html + + const SD_link_t * + SD_link_get_list + group__SD__link__management.html + gae6a4a20a3269c3595a195d24f220fb40 + (void) + + + int + SD_link_get_number + group__SD__link__management.html + ga8f5ff7ea86c621aa77f44e913222613d + (void) + + + void * + SD_link_get_data + group__SD__link__management.html + ga4f56602832da18405e8d0e2653f0744c + (SD_link_t link) + + + void + SD_link_set_data + group__SD__link__management.html + ga180c8056827783104c4cecce3acc9b23 + (SD_link_t link, void *data) + + + const char * + SD_link_get_name + group__SD__link__management.html + gace788d7f0b4b57c5af0b8a5025929780 + (SD_link_t link) + + + double + SD_link_get_current_bandwidth + group__SD__link__management.html + ga4bdb09a991d2366f38c303ed2e48c885 + (SD_link_t link) + + + double + SD_link_get_current_latency + group__SD__link__management.html + ga61b0106214ae990e8f4c9aaecfbc0779 + (SD_link_t link) + + + e_SD_link_sharing_policy_t + SD_link_get_sharing_policy + group__SD__link__management.html + gaab6c4e1b06d62ed57157b508561b28c8 + (SD_link_t link) + + + + SD_workstation_management + Workstations + group__SD__workstation__management.html + + SD_workstation_t + SD_workstation_get_by_name + group__SD__workstation__management.html + ga1c912ef7ecda05d307afefad0fc759b6 + (const char *name) + + + const SD_workstation_t * + SD_workstation_get_list + group__SD__workstation__management.html + ga2849ed01ae4dc580923fbd6782d9ccf4 + (void) + + + int + SD_workstation_get_number + group__SD__workstation__management.html + gacdc811bb1046b88da230d51c68533ba2 + (void) + + + void + SD_workstation_set_data + group__SD__workstation__management.html + ga63c39639777faf77a8e6c0bd41694fa1 + (SD_workstation_t workstation, void *data) + + + void * + SD_workstation_get_data + group__SD__workstation__management.html + gaed29af2c807f986fccf6d3ad4bf15156 + (SD_workstation_t workstation) + + + const char * + SD_workstation_get_name + group__SD__workstation__management.html + ga229affb29b5472c8f62f054b0def9547 + (SD_workstation_t workstation) + + + xbt_dict_t + SD_workstation_get_properties + group__SD__workstation__management.html + ga24a4f207e56f070fa83c56d8bb0c35c1 + (SD_workstation_t workstation) + + + const char * + SD_workstation_get_property_value + group__SD__workstation__management.html + ga6977e577293bd72f9e191dd2613b650f + (SD_workstation_t workstation, const char *name) + + + void + SD_workstation_dump + group__SD__workstation__management.html + ga71b72259a6d31b4445700eb1d21a087a + (SD_workstation_t ws) + + + const SD_link_t * + SD_route_get_list + group__SD__workstation__management.html + gaa9522a1e095218a426cf6c70315fdc9d + (SD_workstation_t src, SD_workstation_t dst) + + + int + SD_route_get_size + group__SD__workstation__management.html + gad28c1465fa8cc17f0d73668ed8dbca4a + (SD_workstation_t src, SD_workstation_t dst) + + + double + SD_workstation_get_power + group__SD__workstation__management.html + ga324f3ae1cea2ae9e52bfb70448361f26 + (SD_workstation_t workstation) + + + double + SD_workstation_get_available_power + group__SD__workstation__management.html + gadfd3673bc4bc5011babfd0247d45ef28 + (SD_workstation_t workstation) + + + e_SD_workstation_access_mode_t + SD_workstation_get_access_mode + group__SD__workstation__management.html + ga68c974556d55dc2ae760fde9408a32e6 + (SD_workstation_t workstation) + + + void + SD_workstation_set_access_mode + group__SD__workstation__management.html + gac00d8cc9c460d532aedfb9ba8fc49c66 + (SD_workstation_t workstation, e_SD_workstation_access_mode_t access_mode) + + + double + SD_workstation_get_computation_time + group__SD__workstation__management.html + ga9caaba45417c65427ee74da841dd14e2 + (SD_workstation_t workstation, double computation_amount) + + + double + SD_route_get_current_latency + group__SD__workstation__management.html + ga224866561ec8000a495faea7c5e25b48 + (SD_workstation_t src, SD_workstation_t dst) + + + double + SD_route_get_current_bandwidth + group__SD__workstation__management.html + gad52c195122d5cd98331a3838c52d4d81 + (SD_workstation_t src, SD_workstation_t dst) + + + double + SD_route_get_communication_time + group__SD__workstation__management.html + ga0983ee235addaee99467ef4c4f97966b + (SD_workstation_t src, SD_workstation_t dst, double communication_amount) + + + SD_task_t + SD_workstation_get_current_task + group__SD__workstation__management.html + ga0e4d5fa0f15423b8c1e55abfecd25164 + (SD_workstation_t workstation) + + + + SD_task_management + Tasks + group__SD__task__management.html + + #define + SD_SCHED_NO_COST + group__SD__task__management.html + ga430717fbd36bb2d92b85e4c47a96ffa0 + + + + SD_task_t + SD_task_create + group__SD__task__management.html + ga4ac4414bf72fd959333848d88562502f + (const char *name, void *data, double amount) + + + void * + SD_task_get_data + group__SD__task__management.html + ga766539121eadc77886003186e1b45e83 + (SD_task_t task) + + + void + SD_task_set_data + group__SD__task__management.html + ga8f5b24ab48696ea78998b42ace35900a + (SD_task_t task, void *data) + + + e_SD_task_state_t + SD_task_get_state + group__SD__task__management.html + ga2b320214a7e5a1c74cf50b236453b288 + (SD_task_t task) + + + const char * + SD_task_get_name + group__SD__task__management.html + gaf1f33ccbe8a0568836387a46d444473d + (SD_task_t task) + + + void + SD_task_set_name + group__SD__task__management.html + gaea6138e1ab09935b8a575e1ccbea045c + (SD_task_t task, const char *name) + + + void + SD_task_set_rate + group__SD__task__management.html + ga5763ec9afe02f381bd1ae9b0be8cb64a + (SD_task_t task, double rate) + + + void + SD_task_watch + group__SD__task__management.html + ga7853f1943b540ff9d3d7078ed46206cb + (SD_task_t task, e_SD_task_state_t state) + + + void + SD_task_unwatch + group__SD__task__management.html + ga5cc2370b3d1c43b298a0d5512d8d9312 + (SD_task_t task, e_SD_task_state_t state) + + + double + SD_task_get_amount + group__SD__task__management.html + gaff407e0ad880fe3e34e0905bbbc1568a + (SD_task_t task) + + + double + SD_task_get_remaining_amount + group__SD__task__management.html + ga4f8d27d92e9fc813c44b5a64adb24410 + (SD_task_t task) + + + double + SD_task_get_execution_time + group__SD__task__management.html + ga6c7f9b54e7f061555f07c6ade5fc1e9f + (SD_task_t task, int workstation_nb, const SD_workstation_t *workstation_list, const double *computation_amount, const double *communication_amount) + + + void + SD_task_schedule + group__SD__task__management.html + ga30a5dbfc2983c1700375075f16c22364 + (SD_task_t task, int workstation_nb, const SD_workstation_t *workstation_list, const double *computation_amount, const double *communication_amount, double rate) + + + void + SD_task_unschedule + group__SD__task__management.html + ga5f1619e6ed05db349d89ea12944f64ba + (SD_task_t task) + + + double + SD_task_get_start_time + group__SD__task__management.html + ga1cc17b4c7857521fc4b679bff63446b6 + (SD_task_t task) + + + double + SD_task_get_finish_time + group__SD__task__management.html + ga9ed01cda917f36b4da719f0594fbe9ee + (SD_task_t task) + + + xbt_dynar_t + SD_task_get_parents + group__SD__task__management.html + ga8e6a82c3100081945a6afc650975dee3 + (SD_task_t task) + + + xbt_dynar_t + SD_task_get_children + group__SD__task__management.html + gabcb438f55dd8fb525a6753576c8c4069 + (SD_task_t task) + + + int + SD_task_get_workstation_count + group__SD__task__management.html + ga4092ccda7d10951ffaf47b65a2da4ae3 + (SD_task_t task) + + + SD_workstation_t * + SD_task_get_workstation_list + group__SD__task__management.html + ga773124574884bcff102efa3adc9b6120 + (SD_task_t task) + + + void + SD_task_destroy + group__SD__task__management.html + ga0cffb2af680086f53fb1599db6ae3c42 + (SD_task_t task) + + + void + SD_task_dump + group__SD__task__management.html + ga9ea8bd4d42155b26f17a875ce24a9ca0 + (SD_task_t task) + + + void + SD_task_dotty + group__SD__task__management.html + gab29f36e954266588b46c3f2e76e4afe3 + (SD_task_t task, void *out_FILE) + + + SD_task_t + SD_task_create_comp_seq + group__SD__task__management.html + ga3f6480d75795a3309c0c026e540d86e0 + (const char *name, void *data, double amount) + + + SD_task_t + SD_task_create_comp_par_amdahl + group__SD__task__management.html + ga39c7eb7e2db73d0c022c78bf0d4a64a2 + (const char *name, void *data, double amount, double alpha) + + + SD_task_t + SD_task_create_comm_e2e + group__SD__task__management.html + ga5690de45db3666e42b97c171f952df15 + (const char *name, void *data, double amount) + + + void + SD_task_distribute_comp_amdhal + group__SD__task__management.html + gac3aba9d592abda234b32dc3e1d5f2af3 + (SD_task_t task, int ws_count) + + + void + SD_task_schedulev + group__SD__task__management.html + gab0ec206f43cda6a8cbdb4aaa8d1a9d02 + (SD_task_t task, int count, const SD_workstation_t *list) + + + void + SD_task_schedulel + group__SD__task__management.html + ga35bc9c3b6f25462bacb8f467605f87bb + (SD_task_t task, int count,...) + + + void + SD_task_set_category + group__SD__task__management.html + gae070a8d12815166eaefe016b54553287 + (SD_task_t task, const char *category) + + + const char * + SD_task_get_category + group__SD__task__management.html + ga9bfc296f5fd292edb7d1047756371346 + (SD_task_t task) + + + + SD_task_dependency_management + Tasks dependencies + group__SD__task__dependency__management.html + + void + SD_task_dependency_add + group__SD__task__dependency__management.html + gaeaa883b0561beefb647c5c4280299138 + (const char *name, void *data, SD_task_t src, SD_task_t dst) + + + void + SD_task_dependency_remove + group__SD__task__dependency__management.html + ga3a22709b38b7a4eb86317e334a8110e0 + (SD_task_t src, SD_task_t dst) + + + void * + SD_task_dependency_get_data + group__SD__task__dependency__management.html + gaa1bdcdfefbf9b19e03cf90376d6fbbb0 + (SD_task_t src, SD_task_t dst) + + + int + SD_task_dependency_exists + group__SD__task__dependency__management.html + gad492251b41fcd05684d88359c26656e1 + (SD_task_t src, SD_task_t dst) + + + + SD_simulation + Simulation + group__SD__simulation.html + + void + SD_init + group__SD__simulation.html + gaa4c19ede9d99b8925e62f30c52f1e65f + (int *argc, char **argv) + + + void + SD_application_reinit + group__SD__simulation.html + ga8c9fdcd05effacd9b20c0ea75c5c5f7e + (void) + + + void + SD_create_environment + group__SD__simulation.html + gac961eff01737333623e3b5343e78a269 + (const char *platform_file) + + + void + SD_load_environment_script + group__SD__simulation.html + gaeb0b621a2ac717745e76d7df49931933 + (const char *script_file) + + + xbt_dynar_t + SD_simulate + group__SD__simulation.html + ga5a1f4e7f674374210de13181acbd98d3 + (double how_long) + + + double + SD_get_clock + group__SD__simulation.html + gafc34707cae382f245f7a33d1eb202392 + (void) + + + void + SD_exit + group__SD__simulation.html + gad1a92b51e423aad6d47be2b82c6536ba + (void) + + + xbt_dynar_t + SD_daxload + group__SD__simulation.html + ga1882fd299f53829a131dd01c83ed5471 + (const char *filename) + + + xbt_dynar_t + SD_dotload + group__SD__simulation.html + ga35de259bc832b4926a310d0359a36dd6 + (const char *filename) + + + + m_datatypes_management_details + Details on SIMIX datatypes + group__m__datatypes__management__details.html + + + XBT_dd + Data description + group__XBT__dd.html + XBT_dd_basic + XBT_dd_auto + XBT_dd_manual + XBT_dd_cb_simple + XBT_dd_cb_full + + + amok_result_t + structamok__result__t.html + + + DataDescriptorStruct + structDataDescriptorStruct.html + + + gras_procdata_t + structgras__procdata__t.html + + + s_gras_cblist + structs__gras__cblist.html + + + s_gras_msg_cb_ctx + structs__gras__msg__cb__ctx.html + + + s_gras_msg_t + structs__gras__msg__t.html + + + s_gras_msgtype + structs__gras__msgtype.html + + + s_model_type + structs__model__type.html + + + s_smx_action + structs__smx__action.html + + + s_smx_host + structs__smx__host.html + + char * + name + structs__smx__host.html + a5cc8b4e4cee6068286c16bd63fa212a6 + + + + void * + data + structs__smx__host.html + af7239e861f698e1d7ad1817d94903492 + + + + + s_smx_process + structs__smx__process.html + + char * + name + structs__smx__process.html + a5c047926058308fa200c609bbd6e4d27 + + + + + s_smx_rvpoint + structs__smx__rvpoint.html + + + s_smx_simcall + structs__smx__simcall.html + + + s_smx_timer + structs__smx__timer.html + + + s_surf_metric_t + structs__surf__metric__t.html + + + s_xbt_datadesc_type + structs__xbt__datadesc__type.html + + + s_xbt_dd_cat_array + structs__xbt__dd__cat__array.html + + + s_xbt_dd_cat_field + structs__xbt__dd__cat__field.html + + + s_xbt_dd_cat_ref + structs__xbt__dd__cat__ref.html + + + s_xbt_dd_cat_struct + structs__xbt__dd__cat__struct.html + + + s_xbt_dd_cat_union + structs__xbt__dd__cat__union.html + + + s_xbt_parmap + structs__xbt__parmap.html + + e_xbt_parmap_flag_t + status + structs__xbt__parmap.html + afe6c4afdbdfecc9dc4cc141e264e1fa7 + + + + unsigned + work + structs__xbt__parmap.html + acbf2e11c9c8d053907e5bc6f8e4d396d + + + + unsigned + thread_counter + structs__xbt__parmap.html + a4cb1478d076f1df7aa59518292b9300e + + + + unsigned int + num_workers + structs__xbt__parmap.html + a4610f24b4081b535323b5ae767221137 + + + + void_f_pvoid_t + fun + structs__xbt__parmap.html + ab41017148fff9bfd45f1e4562cd8881f + + + + xbt_dynar_t + data + structs__xbt__parmap.html + ae218d5ac5ff8b9a5910f445627cb248e + + + + unsigned int + index + structs__xbt__parmap.html + ac583971bdbd4b8d9693e6bb539da69fe + + + + e_xbt_parmap_mode_t + mode + structs__xbt__parmap.html + ac414c60f2d3a61b47e436bfb96245969 + + + + void(* + master_wait_f + structs__xbt__parmap.html + a675dabf4d9e2117c079aa3dcf1c82678 + )(xbt_parmap_t) + + + void(* + worker_signal_f + structs__xbt__parmap.html + a9ba6b2ab3c8e1f943d9308c77c4f13ec + )(xbt_parmap_t) + + + void(* + master_signal_f + structs__xbt__parmap.html + a5cf66c7f69b8cf8e5546561d5feddfb5 + )(xbt_parmap_t) + + + void(* + worker_wait_f + structs__xbt__parmap.html + a5524248ea1a35b7094e3c898e293bf0d + )(xbt_parmap_t, unsigned) + + + + s_xbt_peer + structs__xbt__peer.html + + + s_xbt_strbuff_t + structs__xbt__strbuff__t.html + + + surf_action + structsurf__action.html + + double + cost + structsurf__action.html + a240981003cb7b2ef07b822b07a3e9973 + + + + double + priority + structsurf__action.html + ad856ef7cb77971a29ce0691b52bfd89e + + + + double + max_duration + structsurf__action.html + ab18a20606e4b5393b305f7b0e5ca8fbf + + + + double + remains + structsurf__action.html + a524498b274bd63b350e368a57105f47f + + + + double + start + structsurf__action.html + ab81d9f768089a74b58910ad81f50d5f7 + + + + double + finish + structsurf__action.html + a4999b0d857d5e2e56431de7308909fbb + + + + void * + data + structsurf__action.html + a0f6bd3843542d60168febd743a659c6b + + + + char * + category + structsurf__action.html + ad4acecd52a2d4699e5f2145225fc890d + + + + surf_file_t + file + structsurf__action.html + aa9ca06fd7e5854befa6036abda2365b4 + + + + s_file_stat_t + stat + structsurf__action.html + ab8bdf1c1badb49555ac0d1c327c4bc3a + + + + + surf_action_state + structsurf__action__state.html + + xbt_swag_t + ready_action_set + structsurf__action__state.html + a037da16821384bfb2364d03d7bc7c6b2 + + + + xbt_swag_t + running_action_set + structsurf__action__state.html + a25766c647f7fadf3b54cdd5f7ab81957 + + + + xbt_swag_t + failed_action_set + structsurf__action__state.html + afd75fc8c3f9c0427127d33cf6c0514d8 + + + + xbt_swag_t + done_action_set + structsurf__action__state.html + ae22e8832c0918dc4942f1d918103e186 + + + + + surf_cpu_model_extension_public + structsurf__cpu__model__extension__public.html + + + surf_model + structsurf__model.html + + const char * + name + structsurf__model.html + a285237be60a0c75c56d50f754f10ca1b + + + + s_surf_action_state_t + states + structsurf__model.html + a0e84008d3c39ef70dbdb98a9de1bcf48 + + + + e_surf_action_state_t(* + action_state_get + structsurf__model.html + ad6398c4a857042569f6943e95d4dcec4 + )(surf_action_t action) + + + void(* + action_state_set + structsurf__model.html + a969312b9fd1533e9fb8488059522d760 + )(surf_action_t action, e_surf_action_state_t state) + + + double(* + action_get_start_time + structsurf__model.html + a2ab1dc2a56a9950a1fc5afd4b09013f9 + )(surf_action_t action) + + + double(* + action_get_finish_time + structsurf__model.html + a9bcb1343173e301eb3e861d8cefe30c1 + )(surf_action_t action) + + + int(* + action_unref + structsurf__model.html + acb6cffe534dbfcfb5c3fefc5b714e623 + )(surf_action_t action) + + + void(* + action_cancel + structsurf__model.html + aae5c7f6115a8e8f0c2c7dbd168dd8a8e + )(surf_action_t action) + + + void(* + action_recycle + structsurf__model.html + afdbd4f9c98ca4af207c89ebb29c9d8bb + )(surf_action_t action) + + + void(* + action_data_set + structsurf__model.html + ade0d9846b3a3e6321e87a51fc257116b + )(surf_action_t action, void *data) + + + void(* + suspend + structsurf__model.html + a90af557a210c80ed385fc4a0f4b3a882 + )(surf_action_t action) + + + void(* + resume + structsurf__model.html + a8f0b61e06575462b3c5cbf1a22f3e859 + )(surf_action_t action) + + + int(* + is_suspended + structsurf__model.html + af65ddbc8ce59a3e2e7e26098b5ba6552 + )(surf_action_t action) + + + void(* + set_max_duration + structsurf__model.html + a4702f5e90dc62742ec188695e0ff1c72 + )(surf_action_t action, double duration) + + + void(* + set_priority + structsurf__model.html + a34f89ec266f457c37000f52cdd354a08 + )(surf_action_t action, double priority) + + + void(* + set_category + structsurf__model.html + a2fe3155ae5dfb3782e1e7b01dc90a988 + )(surf_action_t action, const char *category) + + + double(* + get_remains + structsurf__model.html + adf9644f3b9b404f36973a25bfee0e761 + )(surf_action_t action) + + + + surf_model_description + structsurf__model__description.html + + + surf_network_model_extension_public + structsurf__network__model__extension__public.html + + + surf_storage_model_extension_public + structsurf__storage__model__extension__public.html + + + surf_workstation_model_extension_public + structsurf__workstation__model__extension__public.html + + surf_action_t(* + execute + structsurf__workstation__model__extension__public.html + ad44708cb6550651107c38f4cccf0262f + )(void *workstation, double size) + + + surf_action_t(* + sleep + structsurf__workstation__model__extension__public.html + a21f808bbbafa9bf838c71b5e54501465 + )(void *workstation, double duration) + + + e_surf_resource_state_t(* + get_state + structsurf__workstation__model__extension__public.html + a13bf38fd96228f099d5edbe6f55dafff + )(void *workstation) + + + double(* + get_speed + structsurf__workstation__model__extension__public.html + a4360bd7e469801b2adc37c56edccfeca + )(void *workstation, double load) + + + double(* + get_available_speed + structsurf__workstation__model__extension__public.html + ae6ed8c858e3d713fc7f1ba8f04bd1008 + )(void *workstation) + + + xbt_dynar_t(* + get_route + structsurf__workstation__model__extension__public.html + a84cdf3b9de17ceef028da789296fd1ae + )(void *workstation_src, void *workstation_dst) + + + double(* + get_link_bandwidth + structsurf__workstation__model__extension__public.html + a564334f9eb1e783fa1f561bdf3a5aae0 + )(const void *link) + + + double(* + get_link_latency + structsurf__workstation__model__extension__public.html + a660cd47d3c8ef9bdd3dcb1bfd81f8e57 + )(const void *link) + + + + u_xbt_datadesc_category + unionu__xbt__datadesc__category.html + + + xbt_ex_t + structxbt__ex__t.html + + char * + msg + structxbt__ex__t.html + ad0a0a10d1bb3838b5b205fc005693ec3 + + + + xbt_errcat_t + category + structxbt__ex__t.html + a2fdd312ae1d96663701d743283404924 + + + + int + value + structxbt__ex__t.html + a9bb9f8aef46f7821ab7c0ccd04b52f4f + + + + short int + remote + structxbt__ex__t.html + a64d5ce4fa8dee32083ee85d800d0328c + + + + char * + host + structxbt__ex__t.html + a18608979c3ac00dbd1f2980d7f3989d7 + + + + char * + procname + structxbt__ex__t.html + a2b10084a06349fff9725b7de494027a5 + + + + int + pid + structxbt__ex__t.html + a1d67c080063f5af389c3b23c381c240f + + + + char * + file + structxbt__ex__t.html + a699c25f08a1720fd3d669706e0765782 + + + + int + line + structxbt__ex__t.html + ab5dd68c13c396302ebd7e98f76ff825d + + + + char * + func + structxbt__ex__t.html + a83dc86da4901fc1589688824301eb929 + + + + + xbt_set_elm_ + structxbt__set__elm__.html + + unsigned int + ID + structxbt__set__elm__.html + ad72fec45d8f1714b7465f1b951095746 + + + + char * + name + structxbt__set__elm__.html + a5a2ab800a2ad4e62739c13ff4f7d6104 + + + + unsigned int + name_len + structxbt__set__elm__.html + a6896ad1af2ffaa976b0aa3850bd0a9c9 + + + + + amok/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/amok/ + dir_28324c62742e8219e629ef8429d682ae.html + amok/Bandwidth/ + amok/PeerManagement/ + amok_base.c + amok_modinter.h + + + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/amok/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/amok/ + dir_8e6715976bd84905621294d5b7c395a7.html + bandwidth.h + base.h + peermanagement.h + + + amok/Bandwidth/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/amok/Bandwidth/ + dir_a4438f769462b65fc63e554f16d88c52.html + bandwidth.c + bandwidth_private.h + saturate.c + + + xbt/datadesc/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/xbt/datadesc/ + dir_91a0a405ac108847b4126db2a2aa8ab1.html + cbps.c + datadesc.c + datadesc_interface.h + datadesc_private.h + ddt_convert.c + ddt_create.c + ddt_exchange.c + ddt_parse.c + ddt_parse.yy.c + ddt_parse.yy.h + + + gras/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/gras/ + dir_693401973e97b5bdb5ec6440f05de278.html + gras/Msg/ + gras/Transport/ + gras/Virtu/ + gras.c + rl_stubs.c + + + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/gras/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/gras/ + dir_c863d7564cb82afc86a94aec0f2d92aa.html + emul.h + messages.h + module.h + process.h + timer.h + transport.h + virtu.h + + + include/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/include/ + dir_b0856f6b0d80ccb263b2f415c91f9e17.html + include/surf/ + + + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/ + dir_d44c64559bbebec7f509842c48db8b23.html + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/amok/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/gras/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/msg/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/simdag/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/simgrid/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/xbt/ + gras.h + xbt.h + + + instr/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/instr/ + dir_e4627dd4e1973fdf9f4e2b34f6210e6e.html + instr_config.c + instr_interface.c + instr_msg_process.c + instr_msg_task.c + instr_paje_containers.c + instr_paje_trace.c + instr_paje_types.c + instr_paje_values.c + instr_private.h + instr_resource_utilization.c + instr_routing.c + instr_smpi.c + instr_surf.c + + + msg/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/msg/ + dir_92db932c96b71876a62b1386c1d468d9.html + msg_actions.c + msg_config.c + msg_deployment.c + msg_environment.c + msg_global.c + msg_gos.c + msg_host.c + msg_io.c + msg_mailbox.c + msg_mailbox.h + msg_private.h + msg_process.c + msg_task.c + msg_vm.c + + + gras/Msg/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/gras/Msg/ + dir_76dbdff3ff126b3f08d70b314c25c289.html + gras_msg_exchange.c + gras_msg_listener.c + gras_msg_mod.c + gras_msg_types.c + msg_interface.h + msg_private.h + rl_msg.c + rpc.c + sg_msg.c + timer.c + + + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/msg/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/msg/ + dir_f4a0ada2a696f9fa1f0722f1cc886f9d.html + datatypes.h + msg.h + + + amok/PeerManagement/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/amok/PeerManagement/ + dir_575d2cfac7ed40e52ed71ff63d36a6fc.html + peermanagement.c + + + simdag/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/simdag/ + dir_5b50adeb297f828a350356408820bb9d.html + dax_dtd.c + dax_dtd.h + private.h + sd_daxloader.c + sd_dotloader.c + sd_global.c + sd_link.c + sd_task.c + sd_workstation.c + + + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/simdag/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/simdag/ + dir_0263ee954995510870faa4b1fe8ff434.html + datatypes.h + simdag.h + + + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/simgrid/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/simgrid/ + dir_6a74bcf2fcf62215754778ceca10f2c7.html + modelchecker.h + platf.h + simix.h + + + simix/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/simix/ + dir_96d409525d77f9a64d47cab50cea52e6.html + smx_context.c + smx_context_base.c + smx_context_raw.c + smx_context_sysv.c + smx_context_thread.c + smx_deployment.c + smx_environment.c + smx_global.c + smx_host.c + smx_host_private.h + smx_io.c + smx_io_private.h + smx_network.c + smx_network_private.h + smx_private.h + smx_process.c + smx_process_private.h + smx_smurf.c + smx_smurf_private.h + smx_synchro.c + smx_synchro_private.h + smx_user.c + + + surf/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/surf/ + dir_c640365a1f2b97689859d021e20abcd7.html + cpu_cas01.c + cpu_ti.c + cpu_ti_private.h + fair_bottleneck.c + lagrange.c + maxmin.c + maxmin_private.h + network.c + network_constant.c + network_gtnets.c + network_gtnets_private.h + network_ns3.c + network_ns3_private.h + network_private.h + random_mgr.c + sg_platf.c + simgrid_dtd.c + storage.c + storage_private.h + surf.c + surf_action.c + surf_config.c + surf_model.c + surf_private.h + surf_routing.c + surf_routing_cluster.c + surf_routing_dijkstra.c + surf_routing_floyd.c + surf_routing_full.c + surf_routing_generic.c + surf_routing_none.c + surf_routing_private.h + surf_routing_rulebased.c + surf_routing_vivaldi.c + surfxml_parse.c + surfxml_parseplatf.c + trace_mgr.c + trace_mgr_private.h + workstation.c + workstation_ptask_L07.c + + + include/surf/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/include/surf/ + dir_7b471f56678bcaf979e1c230a94e387e.html + datatypes.h + maxmin.h + random_mgr.h + surf.h + surf_resource.h + surf_resource_lmm.h + surfxml_parse_values.h + trace_mgr.h + + + gras/Transport/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/gras/Transport/ + dir_894d9574e027c3b1963687a8dd798986.html + rl_transport.c + sg_transport.c + transport.c + transport_interface.h + transport_plugin_file.c + transport_plugin_sg.c + transport_private.h + + + gras/Virtu/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/gras/Virtu/ + dir_9c5d41195325f39faff256e4fa61e37c.html + gras_module.c + process.c + rl_dns.c + rl_emul.c + rl_process.c + sg_dns.c + sg_emul.c + sg_process.c + virtu_interface.h + virtu_private.h + virtu_rl.h + virtu_sg.h + + + xbt/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/src/xbt/ + dir_0fa1f9f9bfded4011a1639113cabffc9.html + xbt/datadesc/ + backtrace_dummy.c + backtrace_linux.c + backtrace_windows.c + config.c + cunit.c + dict.c + dict_cursor.c + dict_elm.c + dict_multi.c + dict_private.h + dynar.c + ex.c + ex_interface.h + fifo.c + fifo_private.h + graph.c + graph_private.h + graphxml.c + graphxml_parse.c + heap.c + heap_private.h + lib.c + log.c + log_private.h + mallocator.c + mallocator_private.h + parmap.c + RngStream.c + set.c + setset.c + setset_private.h + snprintf.c + swag.c + win32_ucontext.c + xbt_log_appender_file.c + xbt_log_layout_format.c + xbt_log_layout_simple.c + xbt_main.c + xbt_matrix.c + xbt_os_thread.c + xbt_os_time.c + xbt_peer.c + xbt_queue.c + xbt_replay.c + xbt_rl_synchro.c + xbt_rl_time.c + xbt_sg_stubs.c + xbt_sg_synchro.c + xbt_sg_time.c + xbt_sha.c + xbt_socket.c + xbt_socket_private.h + xbt_str.c + xbt_strbuff.c + xbt_synchro.c + xbt_trp_plugin_tcp.c + xbt_virtu.c + + + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/xbt/ + /home/lbobelin/postdoc/projects/simgrid/simgrid/include/xbt/ + dir_abfd4b05a641ac2679f98816407469af.html + asserts.h + automaton.h + automatonparse_promela.h + config.h + cunit.h + datadesc.h + dict.h + dynar.h + ex.h + fifo.h + file_stat.h + function_types.h + graph.h + graphxml.h + graphxml_parse.h + hash.h + heap.h + lib.h + log.h + mallocator.h + matrix.h + misc.h + mmalloc.h + module.h + parmap.h + peer.h + queue.h + replay.h + RngStream.h + set.h + setset.h + socket.h + str.h + strbuff.h + swag.h + synchro.h + synchro_core.h + sysdep.h + time.h + virtu.h + win32_ucontext.h + xbt_os_thread.h + + diff --git a/doc/module-gras.doc b/doc/shared/doxygen/gras-examples.doc similarity index 83% rename from doc/module-gras.doc rename to doc/shared/doxygen/gras-examples.doc index 2d0d9755a7..f00ab28317 100644 --- a/doc/module-gras.doc +++ b/doc/shared/doxygen/gras-examples.doc @@ -1,34 +1,12 @@ -/** \addtogroup GRAS_API - - \section GRAS_funct GRAS offers the following functionnalities - - \ref GRAS_comm: Exchanging messages between peers - - \ref GRAS_dd : any data which may transit on the network must be - described beforehand so that GRAS can handle the platform - heterogeneity and convert them if needed. - - \ref GRAS_sock : this is how to open a communication channel to - other processes, and retrive information about them. - - \ref GRAS_msg : communications are message oriented. You have to - describe all possible messages and their payload beforehand, and - can then attach callbacks to the arrival of a given kind of message. - - \ref GRAS_timer : this is how to program repetitive and delayed - tasks, not unlike cron(8) and at(1). This cannot be used to timeout - a function (like setitimer(2) or signal(2) games could do). - - \ref GRAS_run: Running both on top of the simulator and on - top of real platforms, and portability support. - - \ref GRAS_virtu : You naturally don't want to call the - gettimeofday(2) function in simulation mode since it would give - you the time on the host running the simulation, not the time in - the simulated world (you are belonging to).\n - This a system call virtualization layer, which also acts as a - portability layer. - - \ref GRAS_globals : The use of globals is forbidden since the - "processes" are threads in simulation mode. \n - This is how to let GRAS handle your globals properly. - - \ref GRAS_emul : Support to emulate code excution (ie, reporting - execution time into the simulator and having code sections specific - to simulation or to real mode). - - \section GRAS_examples Examples +/** +@defgroup GRAS_ex GRAS Examples +@ingroup GRAS_User_Guide + + +*/ + +/** +\section GRAS_examples Examples There is for now rather few examples of GRAS, but it's better than nothing, isn't it? @@ -79,45 +57,11 @@ - \ref GRAS_howto - \ref GRAS_howto_design - @{ */ - /** @defgroup GRAS_comm Communication facilities */ - /** @defgroup GRAS_run Virtualization */ + @{ */ /** @defgroup GRAS_ex Examples */ /** @defgroup GRAS_tut Tutorial */ /** @} */ -##################################################################### -/** @addtogroup GRAS_comm - - Here are the communication facilities. GRAS allows you to exchange - messages on sockets (which can be seen as pipes between - processes). On reception, messages start callbacks (that's the - default communication mode, not the only one). All messages of a given - type convey the same kind of data, and you have to describe it - beforehand. - - Timers are also seen as a mean of communication (with yourself). It - allows you to run a repetitive task ("do this every N second until I tell - you to stop"), or to deffer a treatment ("do this in 3 sec"). - - @{ */ - /** @defgroup GRAS_dd Data description */ - /** @defgroup GRAS_sock Sockets */ - /** @defgroup GRAS_msg Messages */ - /** @defgroup GRAS_timer Timers */ - -/** @} */ -##################################################################### -/** @addtogroup GRAS_run - - Virtualization facilities allow your code to run both on top of the simulator or in real setting. - @{ */ - - /** @defgroup GRAS_globals Globals */ - /** @defgroup GRAS_emul Emulation support */ - /** @defgroup GRAS_virtu Syscalls */ - -/** @} */ ##################################################################### /** @addtogroup GRAS_ex diff --git a/doc/module-msg.doc b/doc/shared/doxygen/msg-examples.doc similarity index 64% rename from doc/module-msg.doc rename to doc/shared/doxygen/msg-examples.doc index 2c708c990e..f6a0e6ad02 100644 --- a/doc/module-msg.doc +++ b/doc/shared/doxygen/msg-examples.doc @@ -1,37 +1,7 @@ -/** \addtogroup MSG_API - - MSG was the first distributed programming environment provided within - SimGrid. While almost realistic, it remains quite simple (simplistic?). - This describes the native to MSG. - - \section jMSG_who Who should use this (and who shouldn't) - - You should use MSG if you want to study some heuristics for a - given problem you don't really want to implement. If you want to - use the C programming language, your are in the right - section. To use the Java or Ruby programming interfaces, please refer to - the documentation provided in the relevant packages. - - \section MSG_funct Offered functionnalities - - \ref msg_simulation - - \ref m_process_management - - \ref m_host_management - - \ref m_task_management - - \ref msg_file_management - - \ref msg_task_usage - - \ref msg_VMs - - \ref msg_trace_driven - - \ref msg_deprecated_functions - - - Also make sure to visit the page @ref MSG_examples. -*/ - /** @defgroup MSG_examples MSG Examples -@ingroup MSG_API +@ingroup MSG_User_Guide -@htmlonly @endhtmlonly MSG comes with an extensive set of examples. It is sometimes difficult to find the one you need. This list aims at helping you finding the @@ -41,155 +11,6 @@ example from which you can learn what you want to. */ -/** -@defgroup msg_simulation Main MSG simulation Functions -@ingroup MSG_API -@brief Describes how to setup and control your simulation. - -The basic workflow is the following (check the \ref MSG_examples for -details). - - -# Initialize the library with #MSG_global_init - -# Create a platform (usually by parsing a file with - #MSG_create_environment) - -# Register the functions that your processes are supposed to run with - #MSG_function_register (and maybe #MSG_function_register_default) - -# Launch your processes from a deployment file with #MSG_launch_application - -# Run the simulation with #MSG_main - -# Cleanup the library with #MSG_clean before ending your program - (optional). - -@htmlonly @endhtmlonly -*/ - -/** @defgroup m_process_management Process Management Functions - * @ingroup MSG_API - * @brief This section describes the process structure of MSG - * (#m_process_t) and the functions for managing it. - */ - -/** @defgroup m_host_management Host Management Functions - * @ingroup MSG_API - * @brief This section describes the host structure of MSG - */ - -/** @defgroup m_task_management Task Management Functions - * @ingroup MSG_API - * @brief This section describes the task structure of MSG - * (#m_task_t) and the functions for managing it. See - * \ref msg_task_usage to see how to put the tasks in action. - * - * \htmlonly \endhtmlonly - */ - -/** @defgroup msg_task_usage Task Actions - * @ingroup MSG_API - * @brief This section describes the functions that can be used - * by a process to execute, communicate or otherwise handle some task. - */ - -/** @defgroup msg_VMs VMs - * @ingroup MSG_API - * @brief This section describes the interface created to mimick IaaS clouds. - * - * With it, you can create virtual machines to put your processes - * into, and interact directly with the VMs to manage groups of - * processes. - * - * This interface is highly experimental at this point. Testing is - * welcomed, but do not expect too much of it right now. Even the - * interfaces may be changed in future releases of SimGrid (although - * things are expected to stabilize nicely before SimGrid v3.8). - * There is no guaranty on the rest of SimGrid, and there is less - * than that on this part. - * - */ - -/** @defgroup msg_file_management File Management Functions - * @ingroup MSG_API - * @brief This section describes the file structure of MSG - * (#msg_file_t) and the functions for managing it. It - * is based on POSIX functions. - */ - - -/** -@defgroup msg_trace_driven Trace-driven simulations -@ingroup MSG_API -@brief This section describes the functions allowing to build trace-driven simulations. - -\htmlonly \endhtmlonly - -This is very handy when you want to test an algorithm or protocol that -does nothing unless it receives some events from outside. For example, -a P2P protocol reacts to requests from the user, but does nothing if -there is no such event. - -In such situations, SimGrid allows to write your protocol in your C -file, and the events to react to in a separate text file. Declare a -function handling each of the events that you want to accept in your -trace files, register them using #MSG_action_register in your main, -and then use #MSG_action_trace_run to launch the simulation. You can -either have one trace file containing all your events, or a file per -simulated process. - -Check the examples in examples/msg/actions/actions.c for details. - - */ - - - -/** -@defgroup MSG_LUA Lua bindings -@ingroup MSG_API -@brief Lua bindings to MSG (\ref MSG_API) - -@htmlonly @endhtmlonly - -This is the lua bindings of the \ref MSG_API interface. - -\section lMSG_who Who should use this (and who shouldn't) - -If you want to use MSG to study your algorithm, but you don't want to -use the C language (using \ref MSG_API), then you should use some -bindings such as this one. The advantage of the lua bindings is that -they are distributed directly with the main archive (in contrary to -Java and Ruby bindings, for example, that are distributed separately). -Another advantage of lua is that there is almost no performance loss -with regard to the C version (at least there shouln't be any -- it is -still to be precisely assessed). - -\section MSG_Lua_funct Lua offered functionnalities in MSG - -Almost all important features of the MSG interface are available from -the lua bindings. Unfortunately, since doxygen does not support the -lua modules implemented directly in C as we are using, there is no -ready to use reference documentation for this module. Even more than -for the other modules, you will have to dig into the source code of -the examples to learn how to use it. - -\section Lua_examples Examples of lua MSG - - - \ref MSG_ex_master_slave_lua - - \ref MSG_ex_master_slave_lua_bypass - - Also, the lua version of the Chord example (in the source tree) - is a working non-trivial example of use of the lua bindings -*/ - -/** -@defgroup msg_deprecated_functions MSG Deprecated -@ingroup MSG_API -@brief This section describes the deprecated functions. PLEASE STOP USING THEM. - -We don't remove them because the ability to run old scientific -code is something important to us. But these functionalities are -not actively supported anymore. - -To access these functions, you should define the relevant option -at configuration time in ccmake. - */ - - /** @defgroup MSG_ex_asynchronous_communications Asynchronous communications @ingroup MSG_examples @@ -299,6 +120,7 @@ We can also wait for the arrival of all messages. */ + /** @defgroup MSG_ex_master_slave Basic Master/Slaves @ingroup MSG_examples diff --git a/doc/fig/simgrid_modules.fig b/doc/shared/fig/simgrid_modules.fig similarity index 100% rename from doc/fig/simgrid_modules.fig rename to doc/shared/fig/simgrid_modules.fig diff --git a/doc/shared/fig/simgrid_modules.png b/doc/shared/fig/simgrid_modules.png new file mode 100644 index 0000000000..89166b57ef Binary files /dev/null and b/doc/shared/fig/simgrid_modules.png differ diff --git a/doc/fig/simgrid_modules2.fig b/doc/shared/fig/simgrid_modules2.fig similarity index 100% rename from doc/fig/simgrid_modules2.fig rename to doc/shared/fig/simgrid_modules2.fig diff --git a/doc/shared/fig/simgrid_modules2.png b/doc/shared/fig/simgrid_modules2.png new file mode 100644 index 0000000000..918c36ae21 Binary files /dev/null and b/doc/shared/fig/simgrid_modules2.png differ diff --git a/doc/simgrid.zargo b/doc/simgrid.zargo deleted file mode 100644 index c09b986742..0000000000 Binary files a/doc/simgrid.zargo and /dev/null differ diff --git a/doc/FAQ.doc b/doc/user_guide/doxygen/FAQ.doc similarity index 99% rename from doc/FAQ.doc rename to doc/user_guide/doxygen/FAQ.doc index a3745b1a25..dc46ff1374 100644 --- a/doc/FAQ.doc +++ b/doc/user_guide/doxygen/FAQ.doc @@ -1,6 +1,5 @@ /*! \page FAQ Frequently Asked Questions -\htmlinclude .FAQ.doc.toc \section faq_simgrid I'm new to SimGrid. I have some questions. Where should I start? diff --git a/doc/user_guide/doxygen/UserGuideDoxyfile.in b/doc/user_guide/doxygen/UserGuideDoxyfile.in new file mode 100644 index 0000000000..d85cb15e49 --- /dev/null +++ b/doc/user_guide/doxygen/UserGuideDoxyfile.in @@ -0,0 +1,1847 @@ + +# @WARNING@ + +# Doxyfile 1.8.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" "). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or sequence of words) that should +# identify the project. Note that if you do not use Doxywizard you need +# to put quotes around the project name if it contains spaces. + +PROJECT_NAME = SimGrid + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = @release_version@ + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer +# a quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = "Scalable Simulation of Distributed Systems - User Guide" + +# With the PROJECT_LOGO tag one can specify an logo or icon that is +# included in the documentation. The maximum height of the logo should not +# exceed 55 pixels and the maximum width should not exceed 200 pixels. +# Doxygen will copy the logo to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = ../ + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = YES + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = @srcdir@ + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful if your file system +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding +# "class=itcl::class" will allow you to use the command class in the +# itcl::class meaning. + +#TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = YES + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this +# tag. The format is ext=language, where ext is a file extension, and language +# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, +# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions +# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all +# comments according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you +# can mix doxygen, HTML, and XML commands with Markdown formatting. +# Disable only in case of backward compatibilities issues. + +#MARKDOWN_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also makes the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and +# unions are shown inside the group in which they are included (e.g. using +# @ingroup) instead of on a separate page (for HTML and Man pages) or +# section (for LaTeX and RTF). + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and +# unions with only public data fields will be shown inline in the documentation +# of the scope in which they are defined (i.e. file, namespace, or group +# documentation), provided this scope is documented. If set to NO (the default), +# structs, classes, and unions are shown on a separate page (for HTML and Man +# pages) or section (for LaTeX and RTF). + +#INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penalty. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will roughly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols. + +SYMBOL_CACHE_SIZE = 0 + +# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be +# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given +# their name and scope. Since this can be an expensive process and often the +# same symbol appear multiple times in the code, doxygen keeps a cache of +# pre-resolved symbols. If the cache is too small doxygen will become slower. +# If the cache is too large, memory is wasted. The cache size is given by this +# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols. + +#LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal scope will be included in the documentation. + +#EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespaces are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = YES + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = YES + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen +# will list include files with double quotes in the documentation +# rather than with sharp brackets. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = NO + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen +# will sort the (brief and detailed) documentation of class members so that +# constructors and destructors are listed first. If set to NO (the default) +# the constructors will appear in the respective orders defined by +# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. +# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO +# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to +# do proper type resolution of all parameters of a function it will reject a +# match between the prototype and the implementation of a member function even +# if there is only one candidate or it is obvious which candidate to choose +# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen +# will still accept a match between prototype and implementation in such cases. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or macro consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and macros in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. +# This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command , where is the value of +# the FILE_VERSION_FILTER tag, and is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. The create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. +# You can optionally specify a file name after the option, if omitted +# DoxygenLayout.xml will be used as the name of the layout file. + +LAYOUT_FILE = UserGuideDoxygenLayout.xml + +# The CITE_BIB_FILES tag can be used to specify one or more bib files +# containing the references data. This must be a list of .bib files. The +# .bib extension is automatically appended if omitted. Using this command +# requires the bibtex tool to be installed. See also +# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style +# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this +# feature you need bibtex and perl available in the search path. + +#CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = YES + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# The WARN_NO_PARAMDOC option can be enabled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = index.doc \ + install.doc \ + use.doc \ + modules.doc \ + options.doc \ + platform.doc \ + tracing.doc \ + pls.doc \ + bindings.doc \ + FAQ.doc \ + @top_srcdir@/doc/user_guide/doxygen/logcategories.doc + +################################################### +## PLEASE DON'T MESS WITH THE ORDER OF EXAMPLES ## (unless you know what you are doing, of course) +################################################### + +INPUT += @top_srcdir@/examples/msg/sendrecv/sendrecv.c \ + @top_srcdir@/examples/msg/masterslave/masterslave_forwarder.c \ + @top_srcdir@/examples/msg/masterslave/masterslave_console.c \ + @top_srcdir@/examples/msg/migration \ + @top_srcdir@/examples/msg/suspend \ + @top_srcdir@/examples/msg/properties \ + @top_srcdir@/examples/msg/parallel_task \ + @top_srcdir@/examples/msg/priority \ + @top_srcdir@/examples/msg/icomms/peer.c \ + @top_srcdir@/examples/msg/icomms/peer2.c \ + @top_srcdir@/examples/msg/icomms/peer3.c \ + @top_srcdir@/examples/msg/tracing/simple.c \ + @top_srcdir@/examples/msg/tracing/ms.c \ + @top_srcdir@/examples/msg/tracing/categories.c \ + @top_srcdir@/examples/msg/tracing/procmig.c \ + @top_srcdir@/examples/msg/tracing/trace_platform.c \ + @top_srcdir@/examples/msg/tracing/user_variables.c \ + @top_srcdir@/examples/msg/tracing/link_user_variables.c \ + @top_srcdir@/examples/msg/tracing/link_srcdst_user_variables.c \ + @top_srcdir@/examples/msg/ns3 \ + @top_srcdir@/examples/msg/gtnets \ + @top_srcdir@/examples/msg/io \ + @top_srcdir@/examples/msg/gpu \ + @top_srcdir@/examples/msg/actions \ + @top_srcdir@/examples/msg/token_ring \ + @top_srcdir@/examples/msg/pmm \ + @top_srcdir@/examples/msg/chord + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh +# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py +# *.f90 *.f *.for *.vhd *.vhdl + +FILE_PATTERNS = + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = ./ \ + @top_srcdir@/doc/gtut-files \ + @top_srcdir@/src/surf/ \ + @top_srcdir@/src/xbt/ \ + @top_srcdir@/examples \ + @top_srcdir@/testsuite + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = YES + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = @top_srcdir@/doc + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command , where +# is the value of the INPUT_FILTER tag, and is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. +# If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. +# Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. +# The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty or if +# non of the patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) +# and it is also possible to disable source filtering for a specific pattern +# using *.ext= (so without naming a filter). This option only has effect when +# FILTER_SOURCE_FILES is enabled. + +FILTER_SOURCE_PATTERNS = + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. +# Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. Note that when using a custom header you are responsible +# for the proper inclusion of any scripts and style sheets that doxygen +# needs, which is dependent on the configuration options used. +# It is advised to generate a default header using "doxygen -w html +# header.html footer.html stylesheet.css YourConfigFile" and then modify +# that header. Note that the header is subject to change so you typically +# have to redo this when upgrading to a newer version of doxygen or when +# changing the value of configuration settings such as GENERATE_TREEVIEW! + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# style sheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that +# the files will be copied as-is; there are no commands or markers available. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. +# Doxygen will adjust the colors in the style sheet and background images +# according to this color. Hue is specified as an angle on a colorwheel, +# see http://en.wikipedia.org/wiki/Hue for more information. +# For instance the value 0 represents red, 60 is yellow, 120 is green, +# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. +# The allowed range is 0 to 359. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of +# the colors in the HTML output. For a value of 0 the output will use +# grayscales only. A value of 255 will produce the most vivid colors. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to +# the luminance component of the colors in the HTML output. Values below +# 100 gradually make the output lighter, whereas values above 100 make +# the output darker. The value divided by 100 is the actual gamma applied, +# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, +# and 100 does not change the gamma. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting +# this to NO can help when comparing the output of multiple runs. + +HTML_TIMESTAMP = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. + +HTML_DYNAMIC_SECTIONS = NO + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of +# entries shown in the various tree structured indices initially; the user +# can expand and collapse entries dynamically later on. Doxygen will expand +# the tree to such a level that at most the specified number of entries are +# visible (unless a fully collapsed tree already exceeds this amount). +# So setting the number of entries 1 will produce a full collapsed tree by +# default. 0 is a special value representing an infinite number of entries +# and will result in a full expanded tree by default. + +#HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = YES + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated +# that can be used as input for Qt's qhelpgenerator to generate a +# Qt Compressed Help (.qch) of the generated HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to +# add. For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see +# +# Qt Help Project / Custom Filters. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's +# filter section matches. +# +# Qt Help Project / Filter Attributes. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files +# will be generated, which together with the HTML files, form an Eclipse help +# plugin. To install this plugin and make it available under the help contents +# menu in Eclipse, the contents of the directory containing the HTML and XML +# files needs to be copied into the plugins directory of eclipse. The name of +# the directory within the plugins directory should be the same as +# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before +# the help appears. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have +# this name. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) +# at top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. Since the tabs have the same information as the +# navigation tree you can set this option to NO if you already set +# GENERATE_TREEVIEW to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. +# Since the tree basically has the same information as the tab index you +# could consider to set DISABLE_INDEX to NO when enabling this option. + +GENERATE_TREEVIEW = YES + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values +# (range [0,1..20]) that doxygen will group on one line in the generated HTML +# documentation. Note that a value of 0 will completely suppress the enum +# values from appearing in the overview section. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open +# links to external symbols imported via tag files in a separate window. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are +# not supported properly for IE 6.0, but are supported on all modern browsers. +# Note that when changing this option you need to delete any form_*.png files +# in the HTML output before the changes have effect. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax +# (see http://www.mathjax.org) which uses client side Javascript for the +# rendering instead of using prerendered bitmaps. Use this if you do not +# have LaTeX installed or if you want to formulas look prettier in the HTML +# output. When enabled you may also need to install MathJax separately and +# configure the path to it using the MATHJAX_RELPATH option. + +USE_MATHJAX = NO + +# When MathJax is enabled you need to specify the location relative to the +# HTML output directory using the MATHJAX_RELPATH option. The destination +# directory should contain the MathJax.js script. For instance, if the mathjax +# directory is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to +# the MathJax Content Delivery Network so you can quickly see the result without +# installing MathJax. +# However, it is strongly recommended to install a local +# copy of MathJax from http://www.mathjax.org before deployment. + +MATHJAX_RELPATH = http://www.mathjax.org/mathjax + +# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension +# names that should be enabled during MathJax rendering. + +#MATHJAX_EXTENSIONS = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box +# for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using +# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets +# (GENERATE_DOCSET) there is already a search function so this one should +# typically be disabled. For large projects the javascript based search engine +# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. + +SEARCHENGINE = NO + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a PHP enabled web server instead of at the web client +# using Javascript. Doxygen will generate the search PHP script and index +# file to put on the web server. The advantage of the server +# based approach is that it scales better to large projects and allows +# full text search. The disadvantages are that it is more difficult to setup +# and does not have live searching capabilities. + +SERVER_BASED_SEARCH = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. +# Note that when enabling USE_PDFLATEX this option is only used for +# generating bitmaps for formulas in the HTML output, but not in the +# Makefile that is written to the output directory. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = YES + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = pdfpages + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for +# the generated latex document. The footer should contain everything after +# the last chapter. If it is left blank doxygen will generate a +# standard footer. Notice: only use this tag if you know what you are doing! + +LATEX_FOOTER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = YES + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = YES + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include +# source code with syntax highlighting in the LaTeX output. +# Note that which sources are shown also depends on other settings +# such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +# The LATEX_BIB_STYLE tag can be used to specify the style to use for the +# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See +# http://en.wikipedia.org/wiki/BibTeX for more info. + +#LATEX_BIB_STYLE = plain + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load style sheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. +# This is useful +# if you want to understand what is going on. +# On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = YES + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = YES + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# pointed to by INCLUDE_PATH will be searched when a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = DOXYGEN \ + DOXYGEN_SKIP_IT \ + XBT_PUBLIC= \ + XBT_INLINE= \ + HAVE_TRACING \ + MSG_USE_DEPRECATED + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition that +# overrules the definition found in the source code. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all references to function-like macros +# that are alone on a line, have an all uppercase name, and do not end with a +# semicolon, because these will confuse the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. For each +# tag file the location of the external documentation should be added. The +# format of a tag file without this location is as follows: +# +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths +# or URLs. Note that each tag file must have a unique name (where the name does +# NOT include the path). If a tag file is not located in the directory in which +# doxygen is run, you must also specify the path to the tagfile here. + +TAGFILES = ../../shared/doxygen/simgridrefguide.tag=../../ref_guide/html/ + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = ../../shared/doxygen/simgriduserguide.tag + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = NO + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option also works with HAVE_DOT disabled, but it is recommended to +# install and use dot, since it yields more powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is +# allowed to run in parallel. When set to 0 (the default) doxygen will +# base this on the number of processors available in the system. You can set it +# explicitly to a value larger than 0 to get control over the balance +# between CPU load and processing speed. + +DOT_NUM_THREADS = 0 + +# By default doxygen will use the Helvetica font for all dot files that +# doxygen generates. When you want a differently looking font you can specify +# the font name using DOT_FONTNAME. You need to make sure dot is able to find +# the font, which can be done by putting it in a standard location or by setting +# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the +# directory containing the font. + +DOT_FONTNAME = Helvetica + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the Helvetica font. +# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to +# set the path where dot can find it. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If the UML_LOOK tag is enabled, the fields and methods are shown inside +# the class node. If there are many fields or methods and many nodes the +# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS +# threshold limits the number of items for each type to make the size more +# managable. Set this to 0 for no limit. Note that the threshold may be +# exceeded by 50% before the limit is enforced. + +#UML_LIMIT_NUM_FIELDS = 10 + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = NO + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = YES + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will generate a graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are svg, png, jpg, or gif. +# If left blank png will be used. If you choose svg you need to set +# HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible in IE 9+ (other browsers do not have this requirement). + +DOT_IMAGE_FORMAT = png + +# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to +# enable generation of interactive SVG images that allow zooming and panning. +# Note that this requires a modern browser other than Internet Explorer. +# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you +# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files +# visible. Older versions of IE do not have SVG support. + +#INTERACTIVE_SVG = NO + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MSCFILE_DIRS tag can be used to specify one or more directories that +# contain msc files that are included in the documentation (see the +# \mscfile command). + +MSCFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES diff --git a/doc/user_guide/doxygen/UserGuideDoxygenLayout.xml b/doc/user_guide/doxygen/UserGuideDoxygenLayout.xml new file mode 100644 index 0000000000..e44aa5e45a --- /dev/null +++ b/doc/user_guide/doxygen/UserGuideDoxygenLayout.xml @@ -0,0 +1,192 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/bindings.doc b/doc/user_guide/doxygen/bindings.doc similarity index 99% rename from doc/bindings.doc rename to doc/user_guide/doxygen/bindings.doc index ff55b738de..59f7827591 100644 --- a/doc/bindings.doc +++ b/doc/user_guide/doxygen/bindings.doc @@ -1,6 +1,5 @@ /*! \page bindings Bindings -\htmlinclude .bindings.doc.toc \section bindings_binding_Java Java Binding Simgrid-Java documentation. diff --git a/doc/gtut-howto-design.doc b/doc/user_guide/doxygen/gtut-howto-design.doc similarity index 100% rename from doc/gtut-howto-design.doc rename to doc/user_guide/doxygen/gtut-howto-design.doc diff --git a/doc/gtut-howto.doc b/doc/user_guide/doxygen/gtut-howto.doc similarity index 100% rename from doc/gtut-howto.doc rename to doc/user_guide/doxygen/gtut-howto.doc diff --git a/doc/gtut-introduction.doc b/doc/user_guide/doxygen/gtut-introduction.doc similarity index 100% rename from doc/gtut-introduction.doc rename to doc/user_guide/doxygen/gtut-introduction.doc diff --git a/doc/gtut-main.doc b/doc/user_guide/doxygen/gtut-main.doc similarity index 100% rename from doc/gtut-main.doc rename to doc/user_guide/doxygen/gtut-main.doc diff --git a/doc/gtut-tour-00-install.doc b/doc/user_guide/doxygen/gtut-tour-00-install.doc similarity index 100% rename from doc/gtut-tour-00-install.doc rename to doc/user_guide/doxygen/gtut-tour-00-install.doc diff --git a/doc/gtut-tour-01-bones.doc b/doc/user_guide/doxygen/gtut-tour-01-bones.doc similarity index 100% rename from doc/gtut-tour-01-bones.doc rename to doc/user_guide/doxygen/gtut-tour-01-bones.doc diff --git a/doc/gtut-tour-02-simple.doc b/doc/user_guide/doxygen/gtut-tour-02-simple.doc similarity index 100% rename from doc/gtut-tour-02-simple.doc rename to doc/user_guide/doxygen/gtut-tour-02-simple.doc diff --git a/doc/gtut-tour-03-args.doc b/doc/user_guide/doxygen/gtut-tour-03-args.doc similarity index 100% rename from doc/gtut-tour-03-args.doc rename to doc/user_guide/doxygen/gtut-tour-03-args.doc diff --git a/doc/gtut-tour-04-callback.doc b/doc/user_guide/doxygen/gtut-tour-04-callback.doc similarity index 100% rename from doc/gtut-tour-04-callback.doc rename to doc/user_guide/doxygen/gtut-tour-04-callback.doc diff --git a/doc/gtut-tour-05-globals.doc b/doc/user_guide/doxygen/gtut-tour-05-globals.doc similarity index 100% rename from doc/gtut-tour-05-globals.doc rename to doc/user_guide/doxygen/gtut-tour-05-globals.doc diff --git a/doc/gtut-tour-06-logs.doc b/doc/user_guide/doxygen/gtut-tour-06-logs.doc similarity index 100% rename from doc/gtut-tour-06-logs.doc rename to doc/user_guide/doxygen/gtut-tour-06-logs.doc diff --git a/doc/gtut-tour-07-timers.doc b/doc/user_guide/doxygen/gtut-tour-07-timers.doc similarity index 100% rename from doc/gtut-tour-07-timers.doc rename to doc/user_guide/doxygen/gtut-tour-07-timers.doc diff --git a/doc/gtut-tour-08-exceptions.doc b/doc/user_guide/doxygen/gtut-tour-08-exceptions.doc similarity index 100% rename from doc/gtut-tour-08-exceptions.doc rename to doc/user_guide/doxygen/gtut-tour-08-exceptions.doc diff --git a/doc/gtut-tour-09-simpledata.doc b/doc/user_guide/doxygen/gtut-tour-09-simpledata.doc similarity index 100% rename from doc/gtut-tour-09-simpledata.doc rename to doc/user_guide/doxygen/gtut-tour-09-simpledata.doc diff --git a/doc/gtut-tour-10-rpc.doc b/doc/user_guide/doxygen/gtut-tour-10-rpc.doc similarity index 100% rename from doc/gtut-tour-10-rpc.doc rename to doc/user_guide/doxygen/gtut-tour-10-rpc.doc diff --git a/doc/gtut-tour-11-explicitwait.doc b/doc/user_guide/doxygen/gtut-tour-11-explicitwait.doc similarity index 100% rename from doc/gtut-tour-11-explicitwait.doc rename to doc/user_guide/doxygen/gtut-tour-11-explicitwait.doc diff --git a/doc/gtut-tour-12-staticstruct.doc b/doc/user_guide/doxygen/gtut-tour-12-staticstruct.doc similarity index 100% rename from doc/gtut-tour-12-staticstruct.doc rename to doc/user_guide/doxygen/gtut-tour-12-staticstruct.doc diff --git a/doc/gtut-tour-13-pointers.doc b/doc/user_guide/doxygen/gtut-tour-13-pointers.doc similarity index 100% rename from doc/gtut-tour-13-pointers.doc rename to doc/user_guide/doxygen/gtut-tour-13-pointers.doc diff --git a/doc/gtut-tour-14-dynar.doc b/doc/user_guide/doxygen/gtut-tour-14-dynar.doc similarity index 100% rename from doc/gtut-tour-14-dynar.doc rename to doc/user_guide/doxygen/gtut-tour-14-dynar.doc diff --git a/doc/gtut-tour-15-manualdatadef.doc b/doc/user_guide/doxygen/gtut-tour-15-manualdatadef.doc similarity index 100% rename from doc/gtut-tour-15-manualdatadef.doc rename to doc/user_guide/doxygen/gtut-tour-15-manualdatadef.doc diff --git a/doc/gtut-tour-16-exchangecb.doc b/doc/user_guide/doxygen/gtut-tour-16-exchangecb.doc similarity index 100% rename from doc/gtut-tour-16-exchangecb.doc rename to doc/user_guide/doxygen/gtut-tour-16-exchangecb.doc diff --git a/doc/gtut-tour-recap-messages.doc b/doc/user_guide/doxygen/gtut-tour-recap-messages.doc similarity index 100% rename from doc/gtut-tour-recap-messages.doc rename to doc/user_guide/doxygen/gtut-tour-recap-messages.doc diff --git a/doc/gtut-tour.doc b/doc/user_guide/doxygen/gtut-tour.doc similarity index 100% rename from doc/gtut-tour.doc rename to doc/user_guide/doxygen/gtut-tour.doc diff --git a/doc/user_guide/doxygen/index.doc b/doc/user_guide/doxygen/index.doc new file mode 100644 index 0000000000..084e6235b3 --- /dev/null +++ b/doc/user_guide/doxygen/index.doc @@ -0,0 +1,168 @@ +/*! +@mainpage +
+\htmlonly + + + + + +
+ SimGrid - Scalable simulation of distributed systems, ranging from grids to peer-to-peer systems + +\endhtmlonly +\htmlonly +
+\endhtmlonly +
+ +Welcome to the SimGrid user guide. In this document, you will find how to install, get started, configure, and run your first simulation with SimGrid. + +\section sim_over SimGrid Overview +SimGrid is a toolkit that provides core functionalities for the simulation +of distributed applications in heterogeneous distributed environments. + +The specific goal of the project is to facilitate research in the area of +distributed and parallel application scheduling on distributed computing +platforms ranging from simple network of workstations to Computational +Grids. + + - The official webpage is simgrid.gforge.inria.fr. + - The Frequently Asked Questions are here. + - The development webpage is gforge.inria.fr/projects/simgrid. + - The user mailing list is + - The SimGrid software package can be downloaded from here. +
+ +
+ +\section overview Overview of the toolkit components + +As depicted by the following diagram, the SimGrid toolkit is basically +three-layered (click on the picture to jump to a specific component). + + +\htmlonly +
+\endhtmlonly +\htmlinclude simgrid_modules.map +\htmlonly +
Relationships between the SimGrid components (click to jump to API) +
+\endhtmlonly + + +\subsection overview_envs Programmation environments layer + +SimGrid provides several programmation environments built on top of a unique +simulation kernel. Each environment targets a specific audiance and +constitutes a different paradigm. To choose which of them you want to use, +you have to think about what you want to do and what would be the result of +your work. + + - If you want to study a theoritical problem and compare several + heuristics, you probably want to try \ref MSG_API (yet another + historical name). It was designed exactly to that extend and should allow + you to build easily rather realistic multi-agents simulation. Yet, + realism is not the main goal of this environment and the most annoying + technical issues of real platforms are masked here. Check the \ref + MSG_API section for more information. + + - If you want to study the behaviour of a MPI application using emulation + technics, you should have a look at the \ref SMPI_API (Simulated + MPI) programming environment. Unfortunately, this work is still underway. + Check the \ref SMPI_API section for more information. + + - If you want to develop a real distributed application, then you may find + \ref GRAS_API (Grid Reality And Simulation) useful. This is an API + for the realization of distributed applications. + \n\n + Moreover, there is two implementations of this API: one on top of the + SURF (allowing to develop and test your application within the comfort of + the simulator) and another suited for deployment on real platforms + (allowing the resulting application to be highly portable and extremely + efficient). + \n\n + Even if you do not plan to run your code for real, you may want to switch + to GRAS if you intend to use MSG in a very intensive way (e.g. for + simulating a peer-to-peer environment). + \n\n + See the \ref GRAS_API section for more details. + +If your favorite programming environment/model is not there (BSP, +components, OpenMP, etc.) is not represented in the SimGrid toolkit yet, you may +consider adding it. You should contact us first on the +SimGrid +developers mailing list, though. + +\subsection overview_kernel Simulation kernel layer + +The core functionnalities to simulate a virtual platform are provided by a +module called \ref SURF_API. It is +very low-level and is not intended to be used as such by end-users. Instead, +it serve as a basis for the higher level layer. + +SURF main features are a fast max-min linear solver and the ability to +change transparently the model used to describe the platform. This greatly +eases the comparison of the several models existing in the litterature. + +See the \ref SURF_API section for more details. + +\subsection overview_fondation Base layer + +The base of the whole toolkit is constituted by the \ref XBT_API +(eXtended Bundle of Tools). + +It is a portable library providing some grounding features such as \ref +XBT_log, \ref XBT_ex and \ref XBT_config. XBT also encompass +the following convenient datastructures: \ref XBT_dynar, \ref XBT_fifo, \ref +XBT_dict, \ref XBT_heap, \ref XBT_set and \ref XBT_swag. + +See the \ref XBT_API section for more details. + + +\subsection lucas_layer Tracing simulation +Finally, a transversal module allows you to trace your simulation. More documentation in the section \ref TRACE_doc + + +
+The SimGrid software package can be downloaded from +here.
+ +If you are interested in the history of SimGrid and in current and planned development, +you can find out more here. + +Any question, remark or suggestion are welcome on the +SimGrid users +mailing list. + + +
+\htmlonly +
+CC-GNU LGPL +
+\endhtmlonly + +/** +@defgroup SimGrid_User_Guide SimGrid User Guide + @{ */ + /** @defgroup SimGrid_install Install */ + /** @defgroup SimGrid_options Options and configuration */ + /** @defgroup SimGrid_pls Packet-level simulation */ + /** @defgroup SimGrid_pf Platform description */ + /** @defgroup SimGrid_tracing Tracing */ + /** @defgroup MSG_User_Guide MSG User Guide */ + /** @defgroup SIMDAG_User_Guide SIMDAG User Guide */ + /** @defgroup GRAS_User_Guide GRAS User Guide */ + /** @defgroup SMPI_User_Guide SMPI User Guide */ + /** @defgroup AMOK_User_Guide AMOK User Guide */ + /** @defgroup XBT_User_Guide XBT User Guide */ + /** @defgroup Advanced_User_Guide Advanced User Guide */ +/** @{ */ + /** @defgroup SIMIX_User_Guide SIMIX User Guide: writing your own model */ + +/** @} */ +/** @} */ + +*/ diff --git a/doc/install.doc b/doc/user_guide/doxygen/install.doc similarity index 99% rename from doc/install.doc rename to doc/user_guide/doxygen/install.doc index 8c084e8636..1e76fc3f51 100644 --- a/doc/install.doc +++ b/doc/user_guide/doxygen/install.doc @@ -1,6 +1,5 @@ -/*! \page install Installing Simgrid - -\htmlinclude .install.doc.toc +/*! \addtogroup SimGrid_install +\page install Installing Simgrid \section install_cmake Installing the SimGrid library diff --git a/doc/user_guide/doxygen/modules.doc b/doc/user_guide/doxygen/modules.doc new file mode 100644 index 0000000000..76de6d67bc --- /dev/null +++ b/doc/user_guide/doxygen/modules.doc @@ -0,0 +1,255 @@ +/** + \defgroup SimGrid_API SimGrid modules */ + +/** \defgroup XBT_API XBT + \ingroup SimGrid_API + \brief The core toolbox of SimGrid, containing usefull datatypes, + portability support and so on. + +*/ + +/** \defgroup MSG_API MSG + \ingroup SimGrid_API + \brief Simple programming environment + + MSG was the first distributed programming environment provided within + SimGrid. While almost realistic, it remains quite simple (simplistic?). + + \section MSG_who Who should use this (and who shouldn't) + + You should use this module if you want to study some heuristics for a + given problem you don't really want to implement. + If you want to use DAGs, have a look at the \ref SD_API programming + environment. + If you want to get a real (but experimental) implementation of your solution, have a look + at the \ref GRAS_API one. If you want to study an existing MPI program, + have a look at the \ref SMPI_API one. If none of those programming + environments fits your needs, you may consider implementing your own + directly on top of \ref SURF_API (but you probably want to contact us + before). +*/ + + +/** \defgroup SIMIX_API SIMIX + \ingroup SimGrid_API + \brief POSIX-like interface for building simulation + + This is a developer-level interface that should be useful only if you + plan to design a new interface for SimGrid. +*/ + + +/** \defgroup GRAS_API GRAS + \ingroup SimGrid_API + \brief Realistic programming environment (Grid Reality And Simulation) + + GRAS provides a complete API to implement distributed application on top + of heterogeneous plateforms. In addition to the SimGrid implementation + of this interface (allowing you to work on your application within the + comfort of the simulator), an implementation suited to real platforms is + also provided (allowing you to really use your application once you're + done with developing it). It may still contain rought corners as + GRAS is not the most used part of SimGrid, however. + + GRAS thus constitute a complete grid application developement framework, + encompassing both developer helping tools (the simulator and associated + tools) and an efficient while portable execution runtime. + + \section GRAS_who Who should use this (and who shouldn't) + + You should use this programming environment if you want to develop real + applications, ie if the final result of your work is a program which + may eventually be distributed. Rember however that GRAS is + considered as experimental at this point. Help would be welcomed + to improve this sorry situation... + + If you just want to study some heuristics for a given problem you don't + want to implement really (ie, if your result would be a theorem), have a + look at the \ref MSG_API one, or the \ref SD_API one if you need to use DAGs. + If you want to study an existing MPI program, have a look at the + \ref SMPI_API one. + If none of those programming environments fits your needs, you may + consider implementing your own directly on top of \ref SURF_API (but you + probably want to contact us before). +*/ + +/** \defgroup AMOK_API AMOK + \ingroup SimGrid_API + \brief Distributed toolkit built over \ref GRAS_API (Advanced Metacomputing Overlay Kit) + + AMOK provides several tools useful to most applications built on top of GRAS, + but yet not belonging to GRAS itself. It is planned that those modules will be + changed to real plugins one day, allowing users to load only the needed parts at + run time. For now, they live in another library against which you should link your + programs explicitly. +*/ + +/** \defgroup SMPI_API SMPI + \ingroup SimGrid_API + \brief Programming environment for the simulation of MPI applications + +This programming environment permits to study existing MPI application +by emulating them on top of the SimGrid simulator. In other words, it +will constitute an emulation solution for parallel codes. You don't +even have to modify your code for that, although that may help, as +detailed below. + +\section SMPI_who Who should use SMPI (and who shouldn't) + +You should use this programming environment of the SimGrid suite if +you want to study existing MPI applications. If you want to create a +distributed application, you may be interested in the \ref GRAS_API +environment instead (but note that GRAS is not very actively +maintained nowadays). If you want to study some heuristics for a given +problem (and if your goal is to produce theorems and publications, not +code), have a look at the \ref MSG_API environment, or the \ref SD_API +one if you need to use DAGs. If none of those programming environments +fits your needs, you may consider implementing your own directly on +top of \ref SURF_API (but you probably want to contact us before). + +\section SMPI_what What can run within SMPI? + +You can run unmodified MPI applications (both C and Fortran) within +SMPI, provided you only use MPI calls that we implemented in MPI. Our +coverage of the interface is not bad, but will probably never be +complete. One sided communications and I/O primitives are not targeted +for now. The full list of not yet implemented functions is available +in file include/smpi/smpi.h of the archive, between two lines +containing the FIXME marker. If you really need a missing +feature, please get in touch with us: we can guide you though the +SimGrid code to help you implementing it, and we'd glad to integrate +it in the main project afterward if you contribute them back. + +\section SMPI_adapting Adapting your MPI code to the use of SMPI + +As detailed in the reference article (available at +http://hal.inria.fr/inria-00527150), you may want to adapt your code +to improve the simulation performance. But these tricks may seriously +hinder the result qualtity (or even prevent the app to run) if used +wrongly. We assume that if you want to simulate an HPC application, +you know what you are doing. Don't prove us wrong! + +If you get short on memory (the whole app is executed on a single node +when simulated), you should have a look at the SMPI_SHARED_MALLOC and +SMPI_SHARED_FREE macros. It allows to share memory areas between +processes. For example, matrix multiplication code may want to store +the blocks on the same area. Of course, the resulting computations +will useless, but you can still study the application behavior this +way. Of course, if your code is data-dependent, this won't work. + +If your application is too slow, try using SMPI_SAMPLE_LOCAL, +SMPI_SAMPLE_GLOBAL and friends to indicate which computation loops can +be sampled. Some of the loop iterations will be executed to measure +their duration, and this duration will be used for the subsequent +iterations. These samples are done per processor with +SMPI_SAMPLE_LOCAL, and shared between all processors with +SMPI_SAMPLE_GLOBAL. Of course, none of this will work if the execution +time of your loop iteration are not stable. + +Yes, that's right, these macros are not documented yet, but we'll fix +it as soon as time permits. Sorry about that -- patch welcomed! +Meanwhile, grep for them on the examples for more information. + +\section SMPI_compiling Compiling your code + +This is very simply done with the smpicc script. If you +already compiled any MPI code before, you already know how to use it. +If not, you should try to get your MPI code running on top of MPI +before giving SMPI a spin. Actually, that's very simple even if it's +the first time you use MPI code: just use smpicc as a compiler (in +replacement of gcc or your usual compiler), and you're set. + +\section SMPI_executing Executing your code on top of the simulator + +This is done though the smpirun script as follows. +my_hostfile.txt is a classical MPI hostfile (that is, this +file lists the machines on which the processes must be dispatched, one +per line) my_platform.xml is a classical SimGrid platform +file. Of course, the hosts of the hostfile must exist in the provided +platform. ./program is the MPI program that you want to +simulate (must be compiled by smpicc) while -arg is +a command-line parameter passed to this program. + +\verbatim +smpirun -hostfile my_hostfile.txt -platform my_platform.xml ./program -arg +\endverbatim + +smpirun accepts other parameters, such as -np if you don't +want to use all the hosts defined in the hostfile, -map to +display on which host each rank gets mapped of -trace to +activate the tracing during the simulation. You can get the full list +by running +\verbatim +smpirun -help +\endverbatim + + +*/ + + +/** \defgroup SD_API SimDag + \ingroup SimGrid_API + \brief Programming environment for DAG applications + + SimDag provides some functionnalities to simulate parallel task scheduling + with DAGs models (Direct Acyclic Graphs). + The old versions of SimGrid were based on DAGs. But the DAG part (named SG) + was removed in SimGrid 3 because the new kernel (\ref SURF_API) was implemented. \ref SURF_API + was much faster and more flexible than SG and did not use DAGs. + SimDag is a new implementation of DAGs handling and it is built on top of \ref SURF_API. + + \section SD_who Who should use this (and who shouldn't) + + You should use this programming environment of the SimGrid suite if you want + to study algorithms and heuristics with DAGs of parallel tasks. + If you don't need to use DAGs for your simulation, have a look at the + \ref MSG_API programming environment. + If you want to implement a real distributed application, have a look at the + \ref GRAS_API programming environment. + If you want to study an existing MPI program, have a look at the + \ref SMPI_API one. + If none of those programming environments fits your needs, you may + consider implementing your own directly on top of \ref SURF_API (but you + probably want to contact us before). + +*/ + +/** +@defgroup SURF_API SURF +@ingroup SimGrid_API +@brief Internal kernel of all the simulators used in SimGrid, and associated models. + +SURF provides the core functionnalities to simulate a virtual +platform. It is very low-level and is not intended to be used by end +users, but rather to serve as a basis for higher-level simulators. Its +interface are not frozen (and will probably never be), and the +structure emphasis on performance over ease of use. This module +contains the platform models. If you need a model that is not encoded +yet, please come to the devel mailing list so that we can discuss on +the feasibility of your idea. + +Please note that as it is not really intended for public use, this +module is only partially documented. +*/ + + +/** +@defgroup TRACE_API TRACE +@ingroup SimGrid_API +@brief Tracing mechanism and its functions. + +SimGrid can trace the resource (of hosts and links) utilization using +any of its programming interfaces (MSG, SimDAG and SMPI). This means +that the tracing will register how much power is used for each host +and how much bandwidth is used for each link of the platform. + +The idea of the tracing facilities is to give SimGrid users to +possibility to classify MSG and SimDAG tasks by category, tracing the +platform utilization (hosts and links) for each of the categories. +The API enables the declaration of categories and a function to +associate them to the tasks (MSG and SD). The tasks that are not +classified according to a category are not traced. If no categories +are specified, simulations can still be traced using a special +parameter in the command line (see \ref tracing_tracing for details). +*/ + diff --git a/doc/options.doc b/doc/user_guide/doxygen/options.doc similarity index 99% rename from doc/options.doc rename to doc/user_guide/doxygen/options.doc index 5bb02b7fe4..c1d2409338 100644 --- a/doc/options.doc +++ b/doc/user_guide/doxygen/options.doc @@ -1,7 +1,5 @@ /*! \page options Simgrid options and configurations -\htmlinclude .options.doc.toc - A number of options can be given at runtime to change the default SimGrid behavior. For a complete list of all configuration options accepted by the SimGrid version used in your simulator, simply pass @@ -490,4 +488,4 @@ when \b verbose-exit is set to 0 (it is to 1 by default). - \c workstation/model: \ref options_model_select -*/ \ No newline at end of file +*/ diff --git a/doc/platform.doc b/doc/user_guide/doxygen/platform.doc similarity index 99% rename from doc/platform.doc rename to doc/user_guide/doxygen/platform.doc index 61df1734c0..f4f4eab8c3 100644 --- a/doc/platform.doc +++ b/doc/user_guide/doxygen/platform.doc @@ -1,7 +1,5 @@ /*! \page platform Platform Description -\htmlinclude .platform.doc.toc - In order to run any simulation, SimGrid needs 3 things: something to run (so, your code), a description of the platform on which you want to run your application, and finally it needs something to know where to deploy what. diff --git a/doc/pls.doc b/doc/user_guide/doxygen/pls.doc similarity index 99% rename from doc/pls.doc rename to doc/user_guide/doxygen/pls.doc index 1fcdc93f00..a893f9c98a 100644 --- a/doc/pls.doc +++ b/doc/user_guide/doxygen/pls.doc @@ -1,7 +1,5 @@ /*! \page pls Packet level simulation -\htmlinclude .pls.doc.toc - It is possible to use a packet-level network simulator instead of the default flow-based simulation. You may want to use such an approach if you have doubts about the validity of the default model diff --git a/doc/tracing.doc b/doc/user_guide/doxygen/tracing.doc similarity index 99% rename from doc/tracing.doc rename to doc/user_guide/doxygen/tracing.doc index f2b586b49e..11b21420aa 100644 --- a/doc/tracing.doc +++ b/doc/user_guide/doxygen/tracing.doc @@ -1,7 +1,5 @@ /*! \page tracing Tracing Simulations for Visualization -\htmlinclude .tracing.doc.toc - \section tracing_tracing Tracing Simulations for Visualization The trace visualization is widely used to observe and understand the behavior diff --git a/doc/use.doc b/doc/user_guide/doxygen/use.doc similarity index 100% rename from doc/use.doc rename to doc/user_guide/doxygen/use.doc diff --git a/doc/fig/amok_bw_sat.fig b/doc/user_guide/fig/amok_bw_sat.fig similarity index 100% rename from doc/fig/amok_bw_sat.fig rename to doc/user_guide/fig/amok_bw_sat.fig diff --git a/doc/user_guide/fig/amok_bw_sat.png b/doc/user_guide/fig/amok_bw_sat.png new file mode 100644 index 0000000000..bed6ec3cda Binary files /dev/null and b/doc/user_guide/fig/amok_bw_sat.png differ diff --git a/doc/fig/amok_bw_test.fig b/doc/user_guide/fig/amok_bw_test.fig similarity index 100% rename from doc/fig/amok_bw_test.fig rename to doc/user_guide/fig/amok_bw_test.fig diff --git a/doc/user_guide/fig/amok_bw_test.png b/doc/user_guide/fig/amok_bw_test.png new file mode 100644 index 0000000000..bbd5c98335 Binary files /dev/null and b/doc/user_guide/fig/amok_bw_test.png differ diff --git a/doc/fig/gras_comm.fig b/doc/user_guide/fig/gras_comm.fig similarity index 100% rename from doc/fig/gras_comm.fig rename to doc/user_guide/fig/gras_comm.fig diff --git a/doc/user_guide/fig/gras_comm.png b/doc/user_guide/fig/gras_comm.png new file mode 100644 index 0000000000..389e8cba39 Binary files /dev/null and b/doc/user_guide/fig/gras_comm.png differ diff --git a/doc/webcruft/SimGrid_2010.ico b/doc/webcruft/SimGrid_2010.ico deleted file mode 100644 index 619a707afb..0000000000 Binary files a/doc/webcruft/SimGrid_2010.ico and /dev/null differ diff --git a/doc/webcruft/simgrid_logo_2010.png b/doc/webcruft/simgrid_logo_2010.png deleted file mode 100644 index 2ff15a6e4f..0000000000 Binary files a/doc/webcruft/simgrid_logo_2010.png and /dev/null differ diff --git a/doc/webcruft/simgrid_logo_2011_small.png b/doc/webcruft/simgrid_logo_2011_small.png new file mode 100644 index 0000000000..03d942ade2 Binary files /dev/null and b/doc/webcruft/simgrid_logo_2011_small.png differ diff --git a/doc/webcruft/simgrid_logo_small.png b/doc/webcruft/simgrid_logo_small.png deleted file mode 100644 index 358b06926e..0000000000 Binary files a/doc/webcruft/simgrid_logo_small.png and /dev/null differ diff --git a/doc/webcruft/simgrid_logo_smaller.png b/doc/webcruft/simgrid_logo_smaller.png deleted file mode 100644 index bcaf7b869e..0000000000 Binary files a/doc/webcruft/simgrid_logo_smaller.png and /dev/null differ diff --git a/examples/msg/actions/actions.c b/examples/msg/actions/actions.c index 6c63e71310..6d7361559d 100644 --- a/examples/msg/actions/actions.c +++ b/examples/msg/actions/actions.c @@ -296,105 +296,105 @@ static void action_barrier(const char *const *action) static void action_reduce(const char *const *action) { - int i; - char *reduce_identifier; - char mailbox[80]; - double comm_size = parse_double(action[2]); - double comp_size = parse_double(action[3]); - m_task_t comp_task = NULL; - const char *process_name; - double clock = MSG_get_clock(); - - process_globals_t counters = (process_globals_t) MSG_process_get_data(MSG_process_self()); - - xbt_assert(communicator_size, "Size of Communicator is not defined, " - "can't use collective operations"); - - process_name = MSG_process_get_name(MSG_process_self()); - - reduce_identifier = bprintf("reduce_%d", counters->reduce_counter++); - - if (!strcmp(process_name, "p0")) { - XBT_DEBUG("%s: %s is the Root", reduce_identifier, process_name); - - msg_comm_t *comms = xbt_new0(msg_comm_t,communicator_size-1); - m_task_t *tasks = xbt_new0(m_task_t,communicator_size-1); - for (i = 1; i < communicator_size; i++) { - sprintf(mailbox, "%s_p%d_p0", reduce_identifier, i); - comms[i-1] = MSG_task_irecv(&(tasks[i-1]),mailbox); - } - MSG_comm_waitall(comms,communicator_size-1,-1); - for (i = 1; i < communicator_size; i++) { - MSG_comm_destroy(comms[i-1]); - MSG_task_destroy(tasks[i-1]); - } - free(tasks); - - comp_task = MSG_task_create("reduce_comp", comp_size, 0, NULL); - XBT_DEBUG("%s: computing 'reduce_comp'", reduce_identifier); - MSG_task_execute(comp_task); - MSG_task_destroy(comp_task); - XBT_DEBUG("%s: computed", reduce_identifier); - - } else { - XBT_DEBUG("%s: %s sends", reduce_identifier, process_name); - sprintf(mailbox, "%s_%s_p0", reduce_identifier, process_name); - XBT_DEBUG("put on %s", mailbox); - MSG_task_send(MSG_task_create(reduce_identifier, 0, comm_size, NULL), - mailbox); - } - - XBT_VERB("%s %f", xbt_str_join_array(action, " "), MSG_get_clock() - clock); - free(reduce_identifier); + int i; + char *reduce_identifier; + char mailbox[80]; + double comm_size = parse_double(action[2]); + double comp_size = parse_double(action[3]); + m_task_t comp_task = NULL; + const char *process_name; + double clock = MSG_get_clock(); + + process_globals_t counters = (process_globals_t) MSG_process_get_data(MSG_process_self()); + + xbt_assert(communicator_size, "Size of Communicator is not defined, " + "can't use collective operations"); + + process_name = MSG_process_get_name(MSG_process_self()); + + reduce_identifier = bprintf("reduce_%d", counters->reduce_counter++); + + if (!strcmp(process_name, "p0")) { + XBT_DEBUG("%s: %s is the Root", reduce_identifier, process_name); + + msg_comm_t *comms = xbt_new0(msg_comm_t,communicator_size-1); + m_task_t *tasks = xbt_new0(m_task_t,communicator_size-1); + for (i = 1; i < communicator_size; i++) { + sprintf(mailbox, "%s_p%d_p0", reduce_identifier, i); + comms[i-1] = MSG_task_irecv(&(tasks[i-1]),mailbox); + } + MSG_comm_waitall(comms,communicator_size-1,-1); + for (i = 1; i < communicator_size; i++) { + MSG_comm_destroy(comms[i-1]); + MSG_task_destroy(tasks[i-1]); + } + free(tasks); + + comp_task = MSG_task_create("reduce_comp", comp_size, 0, NULL); + XBT_DEBUG("%s: computing 'reduce_comp'", reduce_identifier); + MSG_task_execute(comp_task); + MSG_task_destroy(comp_task); + XBT_DEBUG("%s: computed", reduce_identifier); + + } else { + XBT_DEBUG("%s: %s sends", reduce_identifier, process_name); + sprintf(mailbox, "%s_%s_p0", reduce_identifier, process_name); + XBT_DEBUG("put on %s", mailbox); + MSG_task_send(MSG_task_create(reduce_identifier, 0, comm_size, NULL), + mailbox); + } + + XBT_VERB("%s %f", xbt_str_join_array(action, " "), MSG_get_clock() - clock); + free(reduce_identifier); } static void action_bcast(const char *const *action) { - int i; - char *bcast_identifier; - char mailbox[80]; - double comm_size = parse_double(action[2]); - m_task_t task = NULL; - const char *process_name; - double clock = MSG_get_clock(); - - process_globals_t counters = (process_globals_t) MSG_process_get_data(MSG_process_self()); - - xbt_assert(communicator_size, "Size of Communicator is not defined, " - "can't use collective operations"); - - process_name = MSG_process_get_name(MSG_process_self()); - - bcast_identifier = bprintf("bcast_%d", counters->bcast_counter++); - - if (!strcmp(process_name, "p0")) { - XBT_DEBUG("%s: %s is the Root", bcast_identifier, process_name); - - msg_comm_t *comms = xbt_new0(msg_comm_t,communicator_size-1); - - for (i = 1; i < communicator_size; i++) { - sprintf(mailbox, "%s_p0_p%d", bcast_identifier, i); - comms[i-1] = - MSG_task_isend(MSG_task_create(mailbox,0,comm_size,NULL), - mailbox); - } - MSG_comm_waitall(comms,communicator_size-1,-1); - for (i = 1; i < communicator_size; i++) - MSG_comm_destroy(comms[i-1]); - free(comms); - - XBT_DEBUG("%s: all messages sent by %s have been received", - bcast_identifier, process_name); - - } else { - sprintf(mailbox, "%s_p0_%s", bcast_identifier, process_name); - MSG_task_receive(&task, mailbox); - MSG_task_destroy(task); - XBT_DEBUG("%s: %s has received", bcast_identifier, process_name); - } - - XBT_VERB("%s %f", xbt_str_join_array(action, " "), MSG_get_clock() - clock); - free(bcast_identifier); + int i; + char *bcast_identifier; + char mailbox[80]; + double comm_size = parse_double(action[2]); + m_task_t task = NULL; + const char *process_name; + double clock = MSG_get_clock(); + + process_globals_t counters = (process_globals_t) MSG_process_get_data(MSG_process_self()); + + xbt_assert(communicator_size, "Size of Communicator is not defined, " + "can't use collective operations"); + + process_name = MSG_process_get_name(MSG_process_self()); + + bcast_identifier = bprintf("bcast_%d", counters->bcast_counter++); + + if (!strcmp(process_name, "p0")) { + XBT_DEBUG("%s: %s is the Root", bcast_identifier, process_name); + + msg_comm_t *comms = xbt_new0(msg_comm_t,communicator_size-1); + + for (i = 1; i < communicator_size; i++) { + sprintf(mailbox, "%s_p0_p%d", bcast_identifier, i); + comms[i-1] = + MSG_task_isend(MSG_task_create(mailbox,0,comm_size,NULL), + mailbox); + } + MSG_comm_waitall(comms,communicator_size-1,-1); + for (i = 1; i < communicator_size; i++) + MSG_comm_destroy(comms[i-1]); + free(comms); + + XBT_DEBUG("%s: all messages sent by %s have been received", + bcast_identifier, process_name); + + } else { + sprintf(mailbox, "%s_p0_%s", bcast_identifier, process_name); + MSG_task_receive(&task, mailbox); + MSG_task_destroy(task); + XBT_DEBUG("%s: %s has received", bcast_identifier, process_name); + } + + XBT_VERB("%s %f", xbt_str_join_array(action, " "), MSG_get_clock() - clock); + free(bcast_identifier); } diff --git a/examples/msg/masterslave/masterslave_bypass.c b/examples/msg/masterslave/masterslave_bypass.c index 343c92fcaa..b600d07af7 100644 --- a/examples/msg/masterslave/masterslave_bypass.c +++ b/examples/msg/masterslave/masterslave_bypass.c @@ -72,7 +72,7 @@ static int surf_parse_bypass_platform(void) SURFXML_BUFFER_SET(route_dst, "host B"); A_surfxml_route_symmetrical = A_surfxml_route_symmetrical_YES; SURFXML_START_TAG(route); - XBT_DEBUG(" "); + XBT_DEBUG(" "); SURFXML_BUFFER_SET(link_ctn_id, "LinkA"); A_surfxml_link_ctn_direction = A_surfxml_link_ctn_direction_NONE; SURFXML_START_TAG(link_ctn); @@ -220,7 +220,7 @@ int master(int argc, char *argv[]) ("All tasks have been dispatched. Let's tell everybody the computation is over."); for (i = 0; i < slaves_count; i++) MSG_task_send(MSG_task_create("finalize", 0, 0, FINALIZE), - MSG_host_get_name(slaves[i])); + MSG_host_get_name(slaves[i])); XBT_INFO("Goodbye now!"); free(slaves); diff --git a/examples/msg/masterslave/masterslave_cluster.c b/examples/msg/masterslave/masterslave_cluster.c index 1e54f5e73b..e45876fe47 100644 --- a/examples/msg/masterslave/masterslave_cluster.c +++ b/examples/msg/masterslave/masterslave_cluster.c @@ -90,7 +90,7 @@ int master(int argc, char *argv[]) ("All tasks have been dispatched. Let's tell everybody the computation is over."); for (i = 0; i < slaves_count; i++) MSG_task_send(MSG_task_create("finalize", 0, 0, FINALIZE), - MSG_host_get_name(slaves[i])); + MSG_host_get_name(slaves[i])); XBT_INFO("Goodbye now!"); free(slaves); @@ -119,7 +119,7 @@ int slave(int argc, char *argv[]) } else { XBT_INFO("Hey ?! What's up ? "); xbt_die("Unexpected behavior"); - } + } } XBT_INFO("I'm done. See you!"); return 0; @@ -129,101 +129,101 @@ int slave(int argc, char *argv[]) /** Bypass deployment **/ static int bypass_deployment(void) { - int nb_host,i; - static int AX_ptr; - static int surfxml_bufferstack_size = 2048; - static int surfxml_buffer_stack_stack_ptr = 0; - static int surfxml_buffer_stack_stack[1024]; - xbt_dynar_t hosts = MSG_hosts_as_dynar(); - /* allocating memory to the buffer, I think 2MB should be enough */ - surfxml_bufferstack = xbt_new0(char, surfxml_bufferstack_size); - - nb_host = xbt_dynar_length(hosts); - xbt_dynar_free(&hosts); - - /* */ - SURFXML_BUFFER_SET(platform_version, "3"); - SURFXML_START_TAG(platform); - XBT_DEBUG(""); - - XBT_DEBUG(" "); - SURFXML_BUFFER_SET(process_host, "c-0.me"); - SURFXML_BUFFER_SET(process_function, "master"); - SURFXML_BUFFER_SET(process_start_time, "-1.0"); - SURFXML_BUFFER_SET(process_kill_time, "-1.0"); - SURFXML_START_TAG(process); - - XBT_DEBUG(" ",bprintf("%d",nb_host-1)); - SURFXML_BUFFER_SET(argument_value, bprintf("%d",nb_host-1)); - SURFXML_START_TAG(argument); - SURFXML_END_TAG(argument); - - XBT_DEBUG(" "); - SURFXML_BUFFER_SET(argument_value, "5000000"); - SURFXML_START_TAG(argument); - SURFXML_END_TAG(argument); - - XBT_DEBUG(" "); - SURFXML_BUFFER_SET(argument_value, "100000"); - SURFXML_START_TAG(argument); - SURFXML_END_TAG(argument); - - for(i=1 ; i",bprintf("c-%d",i)); - SURFXML_BUFFER_SET(argument_value, bprintf("c-%d.me",i)); - SURFXML_START_TAG(argument); - SURFXML_END_TAG(argument); - } - XBT_DEBUG(" "); - SURFXML_END_TAG(process); - - for(i=1 ; i",bprintf("c-%d",i)); - SURFXML_BUFFER_SET(process_host, bprintf("c-%d.me",i)); - SURFXML_BUFFER_SET(process_function, "slave"); - SURFXML_BUFFER_SET(process_start_time, "-1.0"); - SURFXML_BUFFER_SET(process_kill_time, "-1.0"); - SURFXML_START_TAG(process); - SURFXML_END_TAG(process); - } - - XBT_DEBUG(""); - SURFXML_END_TAG(platform); - - free(surfxml_bufferstack); - return 0; + int nb_host,i; + static int AX_ptr; + static int surfxml_bufferstack_size = 2048; + static int surfxml_buffer_stack_stack_ptr = 0; + static int surfxml_buffer_stack_stack[1024]; + xbt_dynar_t hosts = MSG_hosts_as_dynar(); + /* allocating memory to the buffer, I think 2MB should be enough */ + surfxml_bufferstack = xbt_new0(char, surfxml_bufferstack_size); + + nb_host = xbt_dynar_length(hosts); + xbt_dynar_free(&hosts); + + /* */ + SURFXML_BUFFER_SET(platform_version, "3"); + SURFXML_START_TAG(platform); + XBT_DEBUG(""); + + XBT_DEBUG(" "); + SURFXML_BUFFER_SET(process_host, "c-0.me"); + SURFXML_BUFFER_SET(process_function, "master"); + SURFXML_BUFFER_SET(process_start_time, "-1.0"); + SURFXML_BUFFER_SET(process_kill_time, "-1.0"); + SURFXML_START_TAG(process); + + XBT_DEBUG(" ",bprintf("%d",nb_host-1)); + SURFXML_BUFFER_SET(argument_value, bprintf("%d",nb_host-1)); + SURFXML_START_TAG(argument); + SURFXML_END_TAG(argument); + + XBT_DEBUG(" "); + SURFXML_BUFFER_SET(argument_value, "5000000"); + SURFXML_START_TAG(argument); + SURFXML_END_TAG(argument); + + XBT_DEBUG(" "); + SURFXML_BUFFER_SET(argument_value, "100000"); + SURFXML_START_TAG(argument); + SURFXML_END_TAG(argument); + + for(i=1 ; i",bprintf("c-%d",i)); + SURFXML_BUFFER_SET(argument_value, bprintf("c-%d.me",i)); + SURFXML_START_TAG(argument); + SURFXML_END_TAG(argument); + } + XBT_DEBUG(" "); + SURFXML_END_TAG(process); + + for(i=1 ; i",bprintf("c-%d",i)); + SURFXML_BUFFER_SET(process_host, bprintf("c-%d.me",i)); + SURFXML_BUFFER_SET(process_function, "slave"); + SURFXML_BUFFER_SET(process_start_time, "-1.0"); + SURFXML_BUFFER_SET(process_kill_time, "-1.0"); + SURFXML_START_TAG(process); + SURFXML_END_TAG(process); + } + + XBT_DEBUG(""); + SURFXML_END_TAG(platform); + + free(surfxml_bufferstack); + return 0; } /** Test function */ MSG_error_t test_all(const char *platform_file) { - MSG_error_t res = MSG_OK; - MSG_create_environment(platform_file); - MSG_function_register("master", master); - MSG_function_register("slave", slave); - surf_parse = bypass_deployment; - MSG_launch_application(NULL); + MSG_error_t res = MSG_OK; + MSG_create_environment(platform_file); + MSG_function_register("master", master); + MSG_function_register("slave", slave); + surf_parse = bypass_deployment; + MSG_launch_application(NULL); - res = MSG_main(); + res = MSG_main(); - XBT_INFO("Simulation time %g", MSG_get_clock()); - return res; + XBT_INFO("Simulation time %g", MSG_get_clock()); + return res; } /* end_of_test_all */ /** Main function */ int main(int argc, char *argv[]) { - MSG_error_t res = MSG_OK; + MSG_error_t res = MSG_OK; - MSG_global_init(&argc, argv); - res = test_all(argv[1]); - MSG_clean(); + MSG_global_init(&argc, argv); + res = test_all(argv[1]); + MSG_clean(); - if (res == MSG_OK) - return 0; - else - return 1; + if (res == MSG_OK) + return 0; + else + return 1; } /* end_of_main */ diff --git a/examples/msg/masterslave/masterslave_forwarder.c b/examples/msg/masterslave/masterslave_forwarder.c index 4ebb580d8d..3e3560e5aa 100644 --- a/examples/msg/masterslave/masterslave_forwarder.c +++ b/examples/msg/masterslave/masterslave_forwarder.c @@ -160,7 +160,7 @@ int forwarder(int argc, char *argv[]) ("All tasks have been dispatched. Let's tell everybody the computation is over."); for (i = 0; i < slaves_count; i++) MSG_task_send(MSG_task_create("finalize", 0, 0, FINALIZE), - MSG_host_get_name(slaves[i])); + MSG_host_get_name(slaves[i])); MSG_task_destroy(task); break; } diff --git a/examples/msg/mc/bugged1_for_liveness.c b/examples/msg/mc/bugged1_for_liveness.c index 10cda7e9f3..0a5983d072 100644 --- a/examples/msg/mc/bugged1_for_liveness.c +++ b/examples/msg/mc/bugged1_for_liveness.c @@ -42,28 +42,28 @@ int coordinator(int argc, char *argv[]) XBT_INFO("CS already used. Queue the request of client %d", atoi(req) +1); xbt_dynar_push(requests, &req); } else { // can serve it immediatly - if(strcmp(req, "2") == 0){ - m_task_t answer = MSG_task_create("grant", 0, 1000, NULL); - MSG_task_send(answer, req); - CS_used = 1; - XBT_INFO("CS idle. Grant immediatly"); - } + if(strcmp(req, "2") == 0){ + m_task_t answer = MSG_task_create("grant", 0, 1000, NULL); + MSG_task_send(answer, req); + CS_used = 1; + XBT_INFO("CS idle. Grant immediatly"); + } } } else { // that's a release. Check if someone was waiting for the lock if (xbt_dynar_length(requests) > 0) { XBT_INFO("CS release. Grant to queued requests (queue size: %lu)", xbt_dynar_length(requests)); char *req ; - xbt_dynar_get_cpy(requests, (xbt_dynar_length(requests) - 1), &req); - if(strcmp(req, "2") == 0){ - xbt_dynar_pop(requests, &req); - MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req); - todo--; - }else{ - xbt_dynar_pop(requests, &req); - MSG_task_send(MSG_task_create("notgrant", 0, 1000, NULL), req); - CS_used = 0; - todo--; - } + xbt_dynar_get_cpy(requests, (xbt_dynar_length(requests) - 1), &req); + if(strcmp(req, "2") == 0){ + xbt_dynar_pop(requests, &req); + MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req); + todo--; + }else{ + xbt_dynar_pop(requests, &req); + MSG_task_send(MSG_task_create("notgrant", 0, 1000, NULL), req); + CS_used = 0; + todo--; + } } else { // nobody wants it XBT_INFO("CS release. resource now idle"); CS_used = 0; diff --git a/examples/msg/mc/bugged1_while_liveness.c b/examples/msg/mc/bugged1_while_liveness.c index 23ddc734da..f26749c847 100644 --- a/examples/msg/mc/bugged1_while_liveness.c +++ b/examples/msg/mc/bugged1_while_liveness.c @@ -37,26 +37,26 @@ int coordinator(int argc, char *argv[]) XBT_INFO("CS already used. Queue the request of client %d", atoi(req) +1); xbt_dynar_push(requests, &req); } else { // can serve it immediatly - if(strcmp(req, "2") == 0){ - m_task_t answer = MSG_task_create("grant", 0, 1000, NULL); - MSG_task_send(answer, req); - CS_used = 1; - XBT_INFO("CS idle. Grant immediatly"); - } + if(strcmp(req, "2") == 0){ + m_task_t answer = MSG_task_create("grant", 0, 1000, NULL); + MSG_task_send(answer, req); + CS_used = 1; + XBT_INFO("CS idle. Grant immediatly"); + } } } else { // that's a release. Check if someone was waiting for the lock if (xbt_dynar_length(requests) > 0) { XBT_INFO("CS release. Grant to queued requests (queue size: %lu)", xbt_dynar_length(requests)); char *req ; - xbt_dynar_get_cpy(requests, (xbt_dynar_length(requests) - 1), &req); - if(strcmp(req, "2") == 0){ - xbt_dynar_pop(requests, &req); - MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req); - }else{ - xbt_dynar_pop(requests, &req); - MSG_task_send(MSG_task_create("notgrant", 0, 1000, NULL), req); - CS_used = 0; - } + xbt_dynar_get_cpy(requests, (xbt_dynar_length(requests) - 1), &req); + if(strcmp(req, "2") == 0){ + xbt_dynar_pop(requests, &req); + MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req); + }else{ + xbt_dynar_pop(requests, &req); + MSG_task_send(MSG_task_create("notgrant", 0, 1000, NULL), req); + CS_used = 0; + } } else { // nobody wants it XBT_INFO("CS release. resource now idle"); CS_used = 0; diff --git a/examples/msg/mc/bugged2_liveness.c b/examples/msg/mc/bugged2_liveness.c index 09ec963ce4..5a2dd19e80 100644 --- a/examples/msg/mc/bugged2_liveness.c +++ b/examples/msg/mc/bugged2_liveness.c @@ -46,23 +46,23 @@ int coordinator(int argc, char *argv[]) if (!strcmp(kind, "request")) { char *req = MSG_task_get_data(task); if (CS_used) { - XBT_INFO("CS already used. Queue the request"); - xbt_dynar_push(requests, &req); + XBT_INFO("CS already used. Queue the request"); + xbt_dynar_push(requests, &req); } else { - m_task_t answer = MSG_task_create("grant", 0, 1000, NULL); - MSG_task_send(answer, req); - CS_used = 1; - XBT_INFO("CS idle. Grant immediatly"); + m_task_t answer = MSG_task_create("grant", 0, 1000, NULL); + MSG_task_send(answer, req); + CS_used = 1; + XBT_INFO("CS idle. Grant immediatly"); } } else { if (xbt_dynar_length(requests) > 0) { - XBT_INFO("CS release. Grant to queued requests"); - char *req; - xbt_dynar_pop(requests, &req); - MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req); + XBT_INFO("CS release. Grant to queued requests"); + char *req; + xbt_dynar_pop(requests, &req); + MSG_task_send(MSG_task_create("grant", 0, 1000, NULL), req); } else { - XBT_INFO("CS_realase, ressource now idle"); - CS_used = 0; + XBT_INFO("CS_realase, ressource now idle"); + CS_used = 0; } } diff --git a/examples/msg/mc/centralized_liveness.c b/examples/msg/mc/centralized_liveness.c index b1438e2775..395d4c2814 100644 --- a/examples/msg/mc/centralized_liveness.c +++ b/examples/msg/mc/centralized_liveness.c @@ -1,6 +1,6 @@ /***************** Centralized Mutual Exclusion Algorithm *********************/ /* This example implements a centralized mutual exclusion algorithm. */ -/* LTL property checked : !(GFcs) */ +/* LTL property checked : !(GFcs) */ /******************************************************************************/ #include "msg/msg.h" @@ -32,7 +32,7 @@ int coordinator(int argc, char *argv[]) char *req = MSG_task_get_data(task); if (CS_used) { XBT_INFO("CS already used."); - m_task_t answer = MSG_task_create("not grant", 0, 1000, NULL); + m_task_t answer = MSG_task_create("not grant", 0, 1000, NULL); MSG_task_send(answer, req); } else { // can serve it immediatly XBT_INFO("CS idle. Grant immediatly"); @@ -72,15 +72,15 @@ int client(int argc, char *argv[]) XBT_INFO("Client (%s) got the answer (grant). Sleep a bit and release it", my_mailbox); if(!strcmp(my_mailbox, "1")) - cs = 1; + cs = 1; /*MSG_process_sleep(my_pid); MSG_task_send(MSG_task_create("release", 0, 1000, NULL), - "coordinator"); - XBT_INFO("Client (%s) releases the CS", my_mailbox); + "coordinator"); + XBT_INFO("Client (%s) releases the CS", my_mailbox); if(!strcmp(my_mailbox, "1")) - cs = 0;*/ + cs = 0;*/ }else{ diff --git a/examples/msg/mc/centralized_liveness_deadlock.c b/examples/msg/mc/centralized_liveness_deadlock.c index e58364ed43..d73624fea8 100644 --- a/examples/msg/mc/centralized_liveness_deadlock.c +++ b/examples/msg/mc/centralized_liveness_deadlock.c @@ -1,6 +1,6 @@ /***************** Centralized Mutual Exclusion Algorithm *********************/ /* This example implements a centralized mutual exclusion algorithm. */ -/* LTL property checked : !(GFcs) */ +/* LTL property checked : !(GFcs) */ /******************************************************************************/ #include "msg/msg.h" diff --git a/examples/msg/mc/lex.yy.c b/examples/msg/mc/lex.yy.c index 78d770306f..d90a4cfe19 100644 --- a/examples/msg/mc/lex.yy.c +++ b/examples/msg/mc/lex.yy.c @@ -92,15 +92,15 @@ typedef unsigned int flex_uint32_t; /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST -#else /* ! __cplusplus */ +#else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST -#endif /* defined (__STDC__) */ -#endif /* ! __cplusplus */ +#endif /* defined (__STDC__) */ +#endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const @@ -173,17 +173,17 @@ extern FILE *yyin, *yyout; /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = (yy_hold_char); \ - YY_RESTORE_YY_MORE_OFFSET \ - (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) + *yy_cp = (yy_hold_char); \ + YY_RESTORE_YY_MORE_OFFSET \ + (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) @@ -195,66 +195,66 @@ typedef size_t yy_size_t; #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - yy_size_t yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + yy_size_t yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; - int yy_buffer_status; + int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ #define YY_BUFFER_EOF_PENDING 2 - }; + }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ @@ -279,13 +279,13 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; -static int yy_n_chars; /* number of characters read into yy_ch_buf */ +static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; -static int yy_init = 0; /* whether we need to initialize */ -static int yy_start = 0; /* start state number */ +static int yy_init = 0; /* whether we need to initialize */ +static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... @@ -317,24 +317,24 @@ void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ + { \ + if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ + YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } + } \ + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ + } #define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ + { \ + if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ + YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } + } \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ + } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) @@ -365,21 +365,21 @@ static void yy_fatal_error (yyconst char msg[] ); * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ - (yytext_ptr) = yy_bp; \ - yyleng = (size_t) (yy_cp - yy_bp); \ - (yy_hold_char) = *yy_cp; \ - *yy_cp = '\0'; \ - (yy_c_buf_p) = yy_cp; + (yytext_ptr) = yy_bp; \ + yyleng = (size_t) (yy_cp - yy_bp); \ + (yy_hold_char) = *yy_cp; \ + *yy_cp = '\0'; \ + (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 25 #define YY_END_OF_BUFFER 26 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; + { + flex_int32_t yy_verify; + flex_int32_t yy_nxt; + }; static yyconst flex_int16_t yy_accept[54] = { 0, 0, 0, 26, 24, 18, 23, 8, 24, 24, 9, @@ -612,33 +612,33 @@ static int input (void ); */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - size_t n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ + { \ + int c = '*'; \ + size_t n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else \ + { \ + errno=0; \ + while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ + { \ + if( errno != EINTR) \ + { \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + break; \ + } \ + errno=0; \ + clearerr(yyin); \ + } \ + }\ \ #endif @@ -687,208 +687,208 @@ extern int yylex (void); #endif #define YY_RULE_SETUP \ - YY_USER_ACTION + YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; + register yy_state_type yy_current_state; + register char *yy_cp, *yy_bp; + register int yy_act; #line 29 "parserPromela.lex" #line 704 "lex.yy.c" - if ( !(yy_init) ) - { - (yy_init) = 1; + if ( !(yy_init) ) + { + (yy_init) = 1; #ifdef YY_USER_INIT - YY_USER_INIT; + YY_USER_INIT; #endif - if ( ! (yy_start) ) - (yy_start) = 1; /* first start state */ + if ( ! (yy_start) ) + (yy_start) = 1; /* first start state */ - if ( ! yyin ) - yyin = stdin; + if ( ! yyin ) + yyin = stdin; - if ( ! yyout ) - yyout = stdout; + if ( ! yyout ) + yyout = stdout; - if ( ! YY_CURRENT_BUFFER ) { - yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ); - } + if ( ! YY_CURRENT_BUFFER ) { + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer(yyin,YY_BUF_SIZE ); + } - yy_load_buffer_state( ); - } + yy_load_buffer_state( ); + } - while ( 1 ) /* loops until end-of-file is reached */ - { - yy_cp = (yy_c_buf_p); + while ( 1 ) /* loops until end-of-file is reached */ + { + yy_cp = (yy_c_buf_p); - /* Support of yytext. */ - *yy_cp = (yy_hold_char); + /* Support of yytext. */ + *yy_cp = (yy_hold_char); - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; - yy_current_state = (yy_start); + yy_current_state = (yy_start); yy_match: - do - { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 54 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - ++yy_cp; - } - while ( yy_base[yy_current_state] != 90 ); + do + { + register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 54 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + ++yy_cp; + } + while ( yy_base[yy_current_state] != 90 ); yy_find_action: - yy_act = yy_accept[yy_current_state]; - if ( yy_act == 0 ) - { /* have to back up */ - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - yy_act = yy_accept[yy_current_state]; - } - - YY_DO_BEFORE_ACTION; - -do_action: /* This label is used only to access EOF actions. */ - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = (yy_hold_char); - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - goto yy_find_action; + yy_act = yy_accept[yy_current_state]; + if ( yy_act == 0 ) + { /* have to back up */ + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + yy_act = yy_accept[yy_current_state]; + } + + YY_DO_BEFORE_ACTION; + +do_action: /* This label is used only to access EOF actions. */ + + switch ( yy_act ) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = (yy_hold_char); + yy_cp = (yy_last_accepting_cpos); + yy_current_state = (yy_last_accepting_state); + goto yy_find_action; case 1: YY_RULE_SETUP #line 31 "parserPromela.lex" { printf("%s", yytext); return (NEVER); } - YY_BREAK + YY_BREAK case 2: YY_RULE_SETUP #line 32 "parserPromela.lex" { printf("%s", yytext); return (IF); } - YY_BREAK + YY_BREAK case 3: YY_RULE_SETUP #line 33 "parserPromela.lex" { printf("%s", yytext); return (FI); } - YY_BREAK + YY_BREAK case 4: YY_RULE_SETUP #line 35 "parserPromela.lex" { printf("%s", yytext); return (IMPLIES); } - YY_BREAK + YY_BREAK case 5: YY_RULE_SETUP #line 36 "parserPromela.lex" { printf("%s", yytext); return (GOTO); } - YY_BREAK + YY_BREAK case 6: YY_RULE_SETUP #line 37 "parserPromela.lex" { printf("%s", yytext); return (AND); } - YY_BREAK + YY_BREAK case 7: YY_RULE_SETUP #line 38 "parserPromela.lex" { printf("%s", yytext); return (OR); } - YY_BREAK + YY_BREAK case 8: YY_RULE_SETUP #line 39 "parserPromela.lex" { printf("%s", yytext); return (NOT); } - YY_BREAK + YY_BREAK case 9: YY_RULE_SETUP #line 40 "parserPromela.lex" { printf("%s", yytext); return (LEFT_PAR); } - YY_BREAK + YY_BREAK case 10: YY_RULE_SETUP #line 41 "parserPromela.lex" { printf("%s", yytext); return (RIGHT_PAR); } - YY_BREAK + YY_BREAK case 11: YY_RULE_SETUP #line 42 "parserPromela.lex" { printf("%s", yytext); return (CASE); } - YY_BREAK + YY_BREAK case 12: YY_RULE_SETUP #line 43 "parserPromela.lex" { printf("%s", yytext); return (COLON); } - YY_BREAK + YY_BREAK case 13: YY_RULE_SETUP #line 44 "parserPromela.lex" { printf("%s", yytext); return (SEMI_COLON); } - YY_BREAK + YY_BREAK case 14: YY_RULE_SETUP #line 45 "parserPromela.lex" { printf("%s", yytext); return (CASE_TRUE); } - YY_BREAK + YY_BREAK case 15: YY_RULE_SETUP #line 46 "parserPromela.lex" { printf("%s", yytext); return (LEFT_BRACE); } - YY_BREAK + YY_BREAK case 16: YY_RULE_SETUP #line 47 "parserPromela.lex" { printf("%s", yytext); return (RIGHT_BRACE); } - YY_BREAK + YY_BREAK case 17: /* rule 17 can match eol */ YY_RULE_SETUP #line 50 "parserPromela.lex" { printf(" ");} - YY_BREAK + YY_BREAK case 18: YY_RULE_SETUP #line 52 "parserPromela.lex" { printf("%s",yytext); } - YY_BREAK + YY_BREAK case 19: YY_RULE_SETUP #line 55 "parserPromela.lex" { printf("%s",yytext); sscanf(yytext,"%lf",&yylval.real); return (LITT_REEL); } - YY_BREAK + YY_BREAK case 20: YY_RULE_SETUP #line 59 "parserPromela.lex" { printf("%s",yytext); sscanf(yytext,"%d",&yylval.integer); return (LITT_ENT); } - YY_BREAK + YY_BREAK case 21: /* rule 21 can match eol */ YY_RULE_SETUP @@ -897,395 +897,395 @@ YY_RULE_SETUP yylval.string=(char *)malloc(strlen(yytext)+1); sscanf(yytext,"%s",yylval.string); return (LITT_CHAINE); } - YY_BREAK + YY_BREAK case 22: YY_RULE_SETUP #line 68 "parserPromela.lex" { printf("%s",yytext); - yylval.string=(char *)malloc(strlen(yytext)+1); - sscanf(yytext,"%s",yylval.string); - return (ID); } - YY_BREAK + yylval.string=(char *)malloc(strlen(yytext)+1); + sscanf(yytext,"%s",yylval.string); + return (ID); } + YY_BREAK case 23: /* rule 23 can match eol */ YY_RULE_SETUP #line 73 "parserPromela.lex" { printf("\n"); } - YY_BREAK + YY_BREAK case 24: YY_RULE_SETUP #line 75 "parserPromela.lex" { printf("caractère inconnu\n"); } - YY_BREAK + YY_BREAK case 25: YY_RULE_SETUP #line 77 "parserPromela.lex" ECHO; - YY_BREAK + YY_BREAK #line 926 "lex.yy.c" case YY_STATE_EOF(INITIAL): - yyterminate(); - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = (yy_hold_char); - YY_RESTORE_YY_MORE_OFFSET - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( ); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state ); - - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++(yy_c_buf_p); - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = (yy_c_buf_p); - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer( ) ) - { - case EOB_ACT_END_OF_FILE: - { - (yy_did_buffer_switch_on_eof) = 0; - - if ( yywrap( ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! (yy_did_buffer_switch_on_eof) ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = - (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( ); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - (yy_c_buf_p) = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; - - yy_current_state = yy_get_previous_state( ); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ + yyterminate(); + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = (yy_hold_char); + YY_RESTORE_YY_MORE_OFFSET + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between YY_CURRENT_BUFFER and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++(yy_c_buf_p); + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = (yy_c_buf_p); + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_END_OF_FILE: + { + (yy_did_buffer_switch_on_eof) = 0; + + if ( yywrap( ) ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = + (yytext_ptr) + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + (yy_c_buf_p) = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; + + yy_current_state = yy_get_previous_state( ); + + yy_cp = (yy_c_buf_p); + yy_bp = (yytext_ptr) + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = (yytext_ptr); - register int number_to_move, i; - int ret_val; - - if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; - - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; - - int yy_c_buf_p_offset = - (int) ((yy_c_buf_p) - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; - - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), (size_t) num_to_read ); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - if ( (yy_n_chars) == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart(yyin ); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { - /* Extend the array by 50%, plus the number we really need. */ - yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); - if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); - } - - (yy_n_chars) += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; - - (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + register char *source = (yytext_ptr); + register int number_to_move, i; + int ret_val; + + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; + + else + { + int num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ + + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = YY_CURRENT_BUFFER; + + int yy_c_buf_p_offset = + (int) ((yy_c_buf_p) - b->yy_ch_buf); + + if ( b->yy_is_our_buffer ) + { + int new_size = b->yy_buf_size * 2; + + if ( new_size <= 0 ) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; + + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = 0; + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( + "fatal error - scanner input buffer overflow" ); + + (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; + + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - + number_to_move - 1; + + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), + (yy_n_chars), (size_t) num_to_read ); + + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } - return ret_val; + if ( (yy_n_chars) == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart(yyin ); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + /* Extend the array by 50%, plus the number we really need. */ + yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + } + + (yy_n_chars) += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; + + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; + + return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state (void) { - register yy_state_type yy_current_state; - register char *yy_cp; + register yy_state_type yy_current_state; + register char *yy_cp; - yy_current_state = (yy_start); - - for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) - { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 54 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - } - - return yy_current_state; + yy_current_state = (yy_start); + + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) + { + register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 54 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + } + + return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis - * next_state = yy_try_NUL_trans( current_state ); + * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { - register int yy_is_jam; - register char *yy_cp = (yy_c_buf_p); - - register YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 54 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 53); - - return yy_is_jam ? 0 : yy_current_state; + register int yy_is_jam; + register char *yy_cp = (yy_c_buf_p); + + register YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 54 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + yy_is_jam = (yy_current_state == 53); + + return yy_is_jam ? 0 : yy_current_state; } static void yyunput (int c, register char * yy_bp ) { - register char *yy_cp; + register char *yy_cp; yy_cp = (yy_c_buf_p); - /* undo effects of setting up yytext */ - *yy_cp = (yy_hold_char); + /* undo effects of setting up yytext */ + *yy_cp = (yy_hold_char); - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = (yy_n_chars) + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - register char *source = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ + register int number_to_move = (yy_n_chars) + 2; + register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; + register char *source = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; - while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - *--dest = *--source; + while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + *--dest = *--source; - yy_cp += (int) (dest - source); - yy_bp += (int) (dest - source); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; + yy_cp += (int) (dest - source); + yy_bp += (int) (dest - source); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } - *--yy_cp = (char) c; + *--yy_cp = (char) c; - (yytext_ptr) = yy_bp; - (yy_hold_char) = *yy_cp; - (yy_c_buf_p) = yy_cp; + (yytext_ptr) = yy_bp; + (yy_hold_char) = *yy_cp; + (yy_c_buf_p) = yy_cp; } #ifndef YY_NO_INPUT @@ -1296,71 +1296,71 @@ static int yy_get_next_buffer (void) #endif { - int c; + int c; - *(yy_c_buf_p) = (yy_hold_char); - - if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) - /* This was really a NUL. */ - *(yy_c_buf_p) = '\0'; - - else - { /* need more input */ - int offset = (yy_c_buf_p) - (yytext_ptr); - ++(yy_c_buf_p); - - switch ( yy_get_next_buffer( ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - yyrestart(yyin ); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if ( yywrap( ) ) - return EOF; - - if ( ! (yy_did_buffer_switch_on_eof) ) - YY_NEW_FILE; + *(yy_c_buf_p) = (yy_hold_char); + + if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) + /* This was really a NUL. */ + *(yy_c_buf_p) = '\0'; + + else + { /* need more input */ + int offset = (yy_c_buf_p) - (yytext_ptr); + ++(yy_c_buf_p); + + switch ( yy_get_next_buffer( ) ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + yyrestart(yyin ); + + /*FALLTHROUGH*/ + + case EOB_ACT_END_OF_FILE: + { + if ( yywrap( ) ) + return EOF; + + if ( ! (yy_did_buffer_switch_on_eof) ) + YY_NEW_FILE; #ifdef __cplusplus - return yyinput(); + return yyinput(); #else - return input(); + return input(); #endif - } + } - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = (yytext_ptr) + offset; - break; - } - } - } + case EOB_ACT_CONTINUE_SCAN: + (yy_c_buf_p) = (yytext_ptr) + offset; + break; + } + } + } - c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve yytext */ - (yy_hold_char) = *++(yy_c_buf_p); + c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ + *(yy_c_buf_p) = '\0'; /* preserve yytext */ + (yy_hold_char) = *++(yy_c_buf_p); - return c; + return c; } -#endif /* ifndef YY_NO_INPUT */ +#endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. @@ -1370,14 +1370,14 @@ static int yy_get_next_buffer (void) void yyrestart (FILE * input_file ) { - if ( ! YY_CURRENT_BUFFER ){ + if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = + YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); - } + } - yy_init_buffer(YY_CURRENT_BUFFER,input_file ); - yy_load_buffer_state( ); + yy_init_buffer(YY_CURRENT_BUFFER,input_file ); + yy_load_buffer_state( ); } /** Switch to a different input buffer. @@ -1387,40 +1387,40 @@ static int yy_get_next_buffer (void) void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); + /* TODO. We should be able to replace this entire function body + * with + * yypop_buffer_state(); + * yypush_buffer_state(new_buffer); */ - yyensure_buffer_stack (); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; - - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state( ); - - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - (yy_did_buffer_switch_on_eof) = 1; + yyensure_buffer_stack (); + if ( YY_CURRENT_BUFFER == new_buffer ) + return; + + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + YY_CURRENT_BUFFER_LVALUE = new_buffer; + yy_load_buffer_state( ); + + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + (yy_did_buffer_switch_on_eof) = 1; } static void yy_load_buffer_state (void) { - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - (yy_hold_char) = *(yy_c_buf_p); + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. @@ -1431,26 +1431,26 @@ static void yy_load_buffer_state (void) */ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { - YY_BUFFER_STATE b; + YY_BUFFER_STATE b; - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - b->yy_buf_size = size; + b->yy_buf_size = size; - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - b->yy_is_our_buffer = 1; + b->yy_is_our_buffer = 1; - yy_init_buffer(b,file ); + yy_init_buffer(b,file ); - return b; + return b; } /** Destroy the buffer. @@ -1460,16 +1460,16 @@ static void yy_load_buffer_state (void) void yy_delete_buffer (YY_BUFFER_STATE b ) { - if ( ! b ) - return; + if ( ! b ) + return; - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; + if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - if ( b->yy_is_our_buffer ) - yyfree((void *) b->yy_ch_buf ); + if ( b->yy_is_our_buffer ) + yyfree((void *) b->yy_ch_buf ); - yyfree((void *) b ); + yyfree((void *) b ); } #ifndef __cplusplus @@ -1483,12 +1483,12 @@ extern int isatty (int ); static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { - int oerrno = errno; + int oerrno = errno; - yy_flush_buffer(b ); + yy_flush_buffer(b ); - b->yy_input_file = file; - b->yy_fill_buffer = 1; + b->yy_input_file = file; + b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. @@ -1501,7 +1501,7 @@ extern int isatty (int ); b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - errno = oerrno; + errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. @@ -1510,25 +1510,25 @@ extern int isatty (int ); */ void yy_flush_buffer (YY_BUFFER_STATE b ) { - if ( ! b ) - return; + if ( ! b ) + return; - b->yy_n_chars = 0; + b->yy_n_chars = 0; - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - b->yy_buf_pos = &b->yy_ch_buf[0]; + b->yy_buf_pos = &b->yy_ch_buf[0]; - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; - if ( b == YY_CURRENT_BUFFER ) - yy_load_buffer_state( ); + if ( b == YY_CURRENT_BUFFER ) + yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes @@ -1539,28 +1539,28 @@ extern int isatty (int ); */ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { - if (new_buffer == NULL) - return; - - yyensure_buffer_stack(); - - /* This block is copied from yy_switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - (yy_buffer_stack_top)++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; + if (new_buffer == NULL) + return; + + yyensure_buffer_stack(); + + /* This block is copied from yy_switch_to_buffer. */ + if ( YY_CURRENT_BUFFER ) + { + /* Flush out information for old buffer. */ + *(yy_c_buf_p) = (yy_hold_char); + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); + } + + /* Only push if top exists. Otherwise, replace top. */ + if (YY_CURRENT_BUFFER) + (yy_buffer_stack_top)++; + YY_CURRENT_BUFFER_LVALUE = new_buffer; + + /* copied from yy_switch_to_buffer. */ + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. @@ -1569,18 +1569,18 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) */ void yypop_buffer_state (void) { - if (!YY_CURRENT_BUFFER) - return; - - yy_delete_buffer(YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - if ((yy_buffer_stack_top) > 0) - --(yy_buffer_stack_top); - - if (YY_CURRENT_BUFFER) { - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; - } + if (!YY_CURRENT_BUFFER) + return; + + yy_delete_buffer(YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + if ((yy_buffer_stack_top) > 0) + --(yy_buffer_stack_top); + + if (YY_CURRENT_BUFFER) { + yy_load_buffer_state( ); + (yy_did_buffer_switch_on_eof) = 1; + } } /* Allocates the stack if it does not exist. @@ -1588,45 +1588,45 @@ void yypop_buffer_state (void) */ static void yyensure_buffer_stack (void) { - int num_to_alloc; + int num_to_alloc; - if (!(yy_buffer_stack)) { + if (!(yy_buffer_stack)) { - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. */ - num_to_alloc = 1; - (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - ); - if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - - memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - (yy_buffer_stack_max) = num_to_alloc; - (yy_buffer_stack_top) = 0; - return; - } - - if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ - - /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc - ((yy_buffer_stack), - num_to_alloc * sizeof(struct yy_buffer_state*) - ); - if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - - /* zero only the new slots.*/ - memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); - (yy_buffer_stack_max) = num_to_alloc; - } + num_to_alloc = 1; + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc + (num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + + (yy_buffer_stack_max) = num_to_alloc; + (yy_buffer_stack_top) = 0; + return; + } + + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ + + /* Increase the buffer to prepare for a possible push. */ + int grow_size = 8 /* arbitrary grow size */; + + num_to_alloc = (yy_buffer_stack_max) + grow_size; + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc + ((yy_buffer_stack), + num_to_alloc * sizeof(struct yy_buffer_state*) + ); + if ( ! (yy_buffer_stack) ) + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + + /* zero only the new slots.*/ + memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); + (yy_buffer_stack_max) = num_to_alloc; + } } /** Setup the input buffer state to scan directly from a user-specified character buffer. @@ -1637,31 +1637,31 @@ static void yyensure_buffer_stack (void) */ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) { - YY_BUFFER_STATE b; + YY_BUFFER_STATE b; - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); - - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = 0; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - yy_switch_to_buffer(b ); - - return b; + if ( size < 2 || + base[size-2] != YY_END_OF_BUFFER_CHAR || + base[size-1] != YY_END_OF_BUFFER_CHAR ) + /* They forgot to leave room for the EOB's. */ + return 0; + + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + + b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = 0; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; + + yy_switch_to_buffer(b ); + + return b; } /** Setup the input buffer state to scan a string. The next call to yylex() will @@ -1675,7 +1675,7 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) { - return yy_scan_bytes(yystr,strlen(yystr) ); + return yy_scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will @@ -1687,32 +1687,32 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) */ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) { - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; + int i; - /* Get memory for full buffer, including space for trailing EOB's. */ - n = _yybytes_len + 2; - buf = (char *) yyalloc(n ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); + /* Get memory for full buffer, including space for trailing EOB's. */ + n = _yybytes_len + 2; + buf = (char *) yyalloc(n ); + if ( ! buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; + for ( i = 0; i < _yybytes_len; ++i ) + buf[i] = yybytes[i]; - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; + buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - b = yy_scan_buffer(buf,n ); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); + b = yy_scan_buffer(buf,n ); + if ( ! b ) + YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; - return b; + return b; } #ifndef YY_EXIT_FAILURE @@ -1721,26 +1721,26 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) static void yy_fatal_error (yyconst char* msg ) { - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); + (void) fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = (yy_hold_char); \ - (yy_c_buf_p) = yytext + yyless_macro_arg; \ - (yy_hold_char) = *(yy_c_buf_p); \ - *(yy_c_buf_p) = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) + yytext[yyleng] = (yy_hold_char); \ + (yy_c_buf_p) = yytext + yyless_macro_arg; \ + (yy_hold_char) = *(yy_c_buf_p); \ + *(yy_c_buf_p) = '\0'; \ + yyleng = yyless_macro_arg; \ + } \ + while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ @@ -1855,15 +1855,15 @@ int yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - yy_delete_buffer(YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(); - } + while(YY_CURRENT_BUFFER){ + yy_delete_buffer(YY_CURRENT_BUFFER ); + YY_CURRENT_BUFFER_LVALUE = NULL; + yypop_buffer_state(); + } - /* Destroy the stack itself. */ - yyfree((yy_buffer_stack) ); - (yy_buffer_stack) = NULL; + /* Destroy the stack itself. */ + yyfree((yy_buffer_stack) ); + (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ @@ -1879,43 +1879,43 @@ int yylex_destroy (void) #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; + register int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { - register int n; - for ( n = 0; s[n]; ++n ) - ; + register int n; + for ( n = 0; s[n]; ++n ) + ; - return n; + return n; } #endif void *yyalloc (yy_size_t size ) { - return (void *) malloc( size ); + return (void *) malloc( size ); } void *yyrealloc (void * ptr, yy_size_t size ) { - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return (void *) realloc( (char *) ptr, size ); } void yyfree (void * ptr ) { - free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" diff --git a/examples/msg/ns3/ns3.c b/examples/msg/ns3/ns3.c index 6b509d2045..81ee74b98a 100644 --- a/examples/msg/ns3/ns3.c +++ b/examples/msg/ns3/ns3.c @@ -168,8 +168,8 @@ int slave(int argc, char *argv[]) elapsed_time = MSG_get_clock() - start_time; XBT_INFO("FLOW[%d] : Receive %.0f bytes from %s to %s", - id, - MSG_task_get_data_size(task), + id, + MSG_task_get_data_size(task), masternames[id], slavenames[id]); // MSG_task_execute(task); diff --git a/examples/msg/pmm/msg_pmm.c b/examples/msg/pmm/msg_pmm.c index 75d0e6e448..243657dde1 100644 --- a/examples/msg/pmm/msg_pmm.c +++ b/examples/msg/pmm/msg_pmm.c @@ -27,8 +27,8 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_pmm, /* This example should always be executed using a deployment of * GRID_SIZE * GRID_SIZE nodes. */ -#define GRID_SIZE 3 /* Modify to adjust the grid's size */ -#define NODE_MATRIX_SIZE 300 /* Ammount of work done by each node*/ +#define GRID_SIZE 3 /* Modify to adjust the grid's size */ +#define NODE_MATRIX_SIZE 300 /* Ammount of work done by each node*/ #define GRID_NUM_NODES GRID_SIZE * GRID_SIZE #define MATRIX_SIZE NODE_MATRIX_SIZE * GRID_SIZE diff --git a/examples/simdag/scheduling/minmin_test.c b/examples/simdag/scheduling/minmin_test.c index d0f137d12e..41310892db 100644 --- a/examples/simdag/scheduling/minmin_test.c +++ b/examples/simdag/scheduling/minmin_test.c @@ -53,17 +53,17 @@ static void SD_workstation_set_available_at(SD_workstation_t workstation, } static SD_task_t SD_workstation_get_last_scheduled_task( SD_workstation_t workstation){ - WorkstationAttribute attr = - (WorkstationAttribute) SD_workstation_get_data(workstation); - return attr->last_scheduled_task; + WorkstationAttribute attr = + (WorkstationAttribute) SD_workstation_get_data(workstation); + return attr->last_scheduled_task; } static void SD_workstation_set_last_scheduled_task(SD_workstation_t workstation, - SD_task_t task){ - WorkstationAttribute attr = - (WorkstationAttribute) SD_workstation_get_data(workstation); - attr->last_scheduled_task=task; - SD_workstation_set_data(workstation, attr); + SD_task_t task){ + WorkstationAttribute attr = + (WorkstationAttribute) SD_workstation_get_data(workstation); + attr->last_scheduled_task=task; + SD_workstation_set_data(workstation, attr); } static xbt_dynar_t get_ready_tasks(xbt_dynar_t dax) @@ -347,13 +347,13 @@ int main(int argc, char **argv) last_scheduled_task = SD_workstation_get_last_scheduled_task(selected_workstation); if (last_scheduled_task && - (SD_task_get_state(last_scheduled_task) != SD_DONE) && - (SD_task_get_state(last_scheduled_task) != SD_FAILED) && - !SD_task_dependency_exists( - SD_workstation_get_last_scheduled_task(selected_workstation), - selected_task)) + (SD_task_get_state(last_scheduled_task) != SD_DONE) && + (SD_task_get_state(last_scheduled_task) != SD_FAILED) && + !SD_task_dependency_exists( + SD_workstation_get_last_scheduled_task(selected_workstation), + selected_task)) SD_task_dependency_add("resource", NULL, - last_scheduled_task, selected_task); + last_scheduled_task, selected_task); SD_workstation_set_last_scheduled_task(selected_workstation, selected_task); diff --git a/examples/simdag/sd_comm_throttling.c b/examples/simdag/sd_comm_throttling.c index 4313e01d86..aa81fe6a8c 100644 --- a/examples/simdag/sd_comm_throttling.c +++ b/examples/simdag/sd_comm_throttling.c @@ -66,9 +66,9 @@ int main(int argc, char **argv) XBT_INFO("Simulation stopped after %.4f seconds", SD_get_clock()); xbt_dynar_foreach(changed_tasks, ctr, task) { XBT_INFO("Task '%s' start time: %f, finish time: %f", - SD_task_get_name(task), - SD_task_get_start_time(task), - SD_task_get_finish_time(task)); + SD_task_get_name(task), + SD_task_get_start_time(task), + SD_task_get_finish_time(task)); } /* let throttle the communication for taskD if its parent is SD_DONE */ diff --git a/examples/simdag/sd_seq_access.c b/examples/simdag/sd_seq_access.c index d3c41ba882..42039d7288 100644 --- a/examples/simdag/sd_seq_access.c +++ b/examples/simdag/sd_seq_access.c @@ -39,8 +39,8 @@ int main(int argc, char **argv) /* Change the access mode of the workstations */ workstations = SD_workstation_get_list(); for (i = 0; i < 2; i++) { - SD_workstation_dump(workstations[i]); - + SD_workstation_dump(workstations[i]); + SD_workstation_set_access_mode(workstations[i], SD_WORKSTATION_SEQUENTIAL_ACCESS); XBT_INFO(" Change access mode of %s to %s", @@ -70,9 +70,9 @@ int main(int argc, char **argv) /* let's launch the simulation! */ while (!xbt_dynar_is_empty(changed_tasks = SD_simulate(-1.0))) { - XBT_INFO(" Simulation was suspended, check workstation states"); + XBT_INFO(" Simulation was suspended, check workstation states"); for (i = 0; i < 2; i++) { - SD_workstation_dump(workstations[i]); + SD_workstation_dump(workstations[i]); } xbt_dynar_free(&changed_tasks); } diff --git a/examples/simdag/sd_typed_tasks_test.c b/examples/simdag/sd_typed_tasks_test.c index dda4a509ec..9326823e3f 100644 --- a/examples/simdag/sd_typed_tasks_test.c +++ b/examples/simdag/sd_typed_tasks_test.c @@ -45,7 +45,7 @@ int main(int argc, char **argv) for (i=0;iid,nd->name,nd->inDegree,nd->outDegree); + nd->id,nd->name,nd->inDegree,nd->outDegree); /* if(nd->verified==1) fprintf(stderr,"%ld.%s\t: usable.",nd->id,nd->name); else if(nd->verified==0) fprintf(stderr,"%ld.%s\t: unusable.",nd->id,nd->name); @@ -56,103 +56,103 @@ int AttachNode(DGraph* dg, DGNode* nd) { DGNode **nds =NULL, *tmpnd=NULL; DGArc **ar=NULL; - if (dg->numNodes == dg->maxNodes-1 ) { - dg->maxNodes += BLOCK_SIZE; + if (dg->numNodes == dg->maxNodes-1 ) { + dg->maxNodes += BLOCK_SIZE; nds =(DGNode **) calloc(dg->maxNodes,sizeof(DGNode*)); - memcpy(nds,dg->node,(dg->maxNodes-BLOCK_SIZE)*sizeof(DGNode*)); - free(dg->node); - dg->node=nds; - } + memcpy(nds,dg->node,(dg->maxNodes-BLOCK_SIZE)*sizeof(DGNode*)); + free(dg->node); + dg->node=nds; + } len = strlen( nd->name); - for (i = 0; i < dg->numNodes; i++) { - tmpnd =dg->node[ i]; - ar=NULL; - if ( strlen( tmpnd->name) != len ) continue; - if ( strncmp( nd->name, tmpnd->name, len) ) continue; - if ( nd->inDegree > 0 ) { - tmpnd->maxInDegree += nd->maxInDegree; + for (i = 0; i < dg->numNodes; i++) { + tmpnd =dg->node[ i]; + ar=NULL; + if ( strlen( tmpnd->name) != len ) continue; + if ( strncmp( nd->name, tmpnd->name, len) ) continue; + if ( nd->inDegree > 0 ) { + tmpnd->maxInDegree += nd->maxInDegree; ar =(DGArc **) calloc(tmpnd->maxInDegree,sizeof(DGArc*)); - memcpy(ar,tmpnd->inArc,(tmpnd->inDegree)*sizeof(DGArc*)); - free(tmpnd->inArc); - tmpnd->inArc=ar; - for (j = 0; j < nd->inDegree; j++ ) { - nd->inArc[ j]->head = tmpnd; - } - memcpy( &(tmpnd->inArc[ tmpnd->inDegree]), nd->inArc, nd->inDegree*sizeof( DGArc *)); - tmpnd->inDegree += nd->inDegree; - } - if ( nd->outDegree > 0 ) { - tmpnd->maxOutDegree += nd->maxOutDegree; + memcpy(ar,tmpnd->inArc,(tmpnd->inDegree)*sizeof(DGArc*)); + free(tmpnd->inArc); + tmpnd->inArc=ar; + for (j = 0; j < nd->inDegree; j++ ) { + nd->inArc[ j]->head = tmpnd; + } + memcpy( &(tmpnd->inArc[ tmpnd->inDegree]), nd->inArc, nd->inDegree*sizeof( DGArc *)); + tmpnd->inDegree += nd->inDegree; + } + if ( nd->outDegree > 0 ) { + tmpnd->maxOutDegree += nd->maxOutDegree; ar =(DGArc **) calloc(tmpnd->maxOutDegree,sizeof(DGArc*)); - memcpy(ar,tmpnd->outArc,(tmpnd->outDegree)*sizeof(DGArc*)); - free(tmpnd->outArc); - tmpnd->outArc=ar; - for (j = 0; j < nd->outDegree; j++ ) { - nd->outArc[ j]->tail = tmpnd; - } - memcpy( &(tmpnd->outArc[tmpnd->outDegree]),nd->outArc,nd->outDegree*sizeof( DGArc *)); - tmpnd->outDegree += nd->outDegree; - } - free(nd); - return i; - } - nd->id = dg->numNodes; - dg->node[dg->numNodes] = nd; - dg->numNodes++; + memcpy(ar,tmpnd->outArc,(tmpnd->outDegree)*sizeof(DGArc*)); + free(tmpnd->outArc); + tmpnd->outArc=ar; + for (j = 0; j < nd->outDegree; j++ ) { + nd->outArc[ j]->tail = tmpnd; + } + memcpy( &(tmpnd->outArc[tmpnd->outDegree]),nd->outArc,nd->outDegree*sizeof( DGArc *)); + tmpnd->outDegree += nd->outDegree; + } + free(nd); + return i; + } + nd->id = dg->numNodes; + dg->node[dg->numNodes] = nd; + dg->numNodes++; return nd->id; } int AttachArc(DGraph *dg,DGArc* nar){ -int arcId = -1; +int arcId = -1; int i=0,newNumber=0; -DGNode *head = nar->head, - *tail = nar->tail; +DGNode *head = nar->head, + *tail = nar->tail; DGArc **ars=NULL,*probe=NULL; /*fprintf(stderr,"AttachArc %ld\n",dg->numArcs); */ - if ( !tail || !head ) return arcId; - if ( dg->numArcs == dg->maxArcs-1 ) { - dg->maxArcs += BLOCK_SIZE; + if ( !tail || !head ) return arcId; + if ( dg->numArcs == dg->maxArcs-1 ) { + dg->maxArcs += BLOCK_SIZE; ars =(DGArc **) calloc(dg->maxArcs,sizeof(DGArc*)); - memcpy(ars,dg->arc,(dg->maxArcs-BLOCK_SIZE)*sizeof(DGArc*)); - free(dg->arc); - dg->arc=ars; - } - for(i = 0; i < tail->outDegree; i++ ) { /* parallel arc */ - probe = tail->outArc[ i]; - if(probe->head == head - && - probe->length == nar->length + memcpy(ars,dg->arc,(dg->maxArcs-BLOCK_SIZE)*sizeof(DGArc*)); + free(dg->arc); + dg->arc=ars; + } + for(i = 0; i < tail->outDegree; i++ ) { /* parallel arc */ + probe = tail->outArc[ i]; + if(probe->head == head + && + probe->length == nar->length ){ free(nar); - return probe->id; - } - } - - nar->id = dg->numArcs; - arcId=dg->numArcs; - dg->arc[dg->numArcs] = nar; - dg->numArcs++; - - head->inArc[ head->inDegree] = nar; - head->inDegree++; - if ( head->inDegree >= head->maxInDegree ) { - newNumber = head->maxInDegree + SMALL_BLOCK_SIZE; + return probe->id; + } + } + + nar->id = dg->numArcs; + arcId=dg->numArcs; + dg->arc[dg->numArcs] = nar; + dg->numArcs++; + + head->inArc[ head->inDegree] = nar; + head->inDegree++; + if ( head->inDegree >= head->maxInDegree ) { + newNumber = head->maxInDegree + SMALL_BLOCK_SIZE; ars =(DGArc **) calloc(newNumber,sizeof(DGArc*)); - memcpy(ars,head->inArc,(head->inDegree)*sizeof(DGArc*)); - free(head->inArc); - head->inArc=ars; - head->maxInDegree = newNumber; - } - tail->outArc[ tail->outDegree] = nar; - tail->outDegree++; - if(tail->outDegree >= tail->maxOutDegree ) { - newNumber = tail->maxOutDegree + SMALL_BLOCK_SIZE; + memcpy(ars,head->inArc,(head->inDegree)*sizeof(DGArc*)); + free(head->inArc); + head->inArc=ars; + head->maxInDegree = newNumber; + } + tail->outArc[ tail->outDegree] = nar; + tail->outDegree++; + if(tail->outDegree >= tail->maxOutDegree ) { + newNumber = tail->maxOutDegree + SMALL_BLOCK_SIZE; ars =(DGArc **) calloc(newNumber,sizeof(DGArc*)); - memcpy(ars,tail->outArc,(tail->outDegree)*sizeof(DGArc*)); - free(tail->outArc); - tail->outArc=ars; - tail->maxOutDegree = newNumber; - } + memcpy(ars,tail->outArc,(tail->outDegree)*sizeof(DGArc*)); + free(tail->outArc); + tail->outArc=ars; + tail->maxOutDegree = newNumber; + } /*fprintf(stderr,"AttachArc: head->in=%d tail->out=%ld\n",head->inDegree,tail->outDegree);*/ return arcId; } @@ -164,8 +164,8 @@ void graphShow(DGraph *dg,int DetailsLevel){ DGNode *focusNode = dg->node[ i]; if(DetailsLevel >= 2) { for (j = 0; j < focusNode->inDegree; j++ ) { - fprintf(stderr,"\t "); - nodeShow(focusNode->inArc[ j]->tail); + fprintf(stderr,"\t "); + nodeShow(focusNode->inArc[ j]->tail); } } nodeShow(focusNode); @@ -173,7 +173,7 @@ void graphShow(DGraph *dg,int DetailsLevel){ for (j = 0; j < focusNode->outDegree; j++ ) { fprintf(stderr, "\t "); nodeShow(focusNode->outArc[ j]->head); - } + } fprintf(stderr, "---\n"); } fprintf(stderr,"----------------------------------------\n"); diff --git a/examples/smpi/NAS/DT-folding/dt.c b/examples/smpi/NAS/DT-folding/dt.c index d080bde52b..b088fbd5c8 100644 --- a/examples/smpi/NAS/DT-folding/dt.c +++ b/examples/smpi/NAS/DT-folding/dt.c @@ -2,7 +2,7 @@ * * * N A S P A R A L L E L B E N C H M A R K S 3.3 * * * - * D T * + * D T * * * ************************************************************************* * * @@ -33,7 +33,7 @@ * * ************************************************************************* * * - * Author: M. Frumkin * * + * Author: M. Frumkin * * * * *************************************************************************/ @@ -62,7 +62,7 @@ void c_print_results( char *name, int nprocs_total, double t, double mops, - char *optype, + char *optype, int passed_verification, char *npbversion, char *compiletime, @@ -72,7 +72,7 @@ void c_print_results( char *name, char *cmpi_inc, char *cflags, char *clinkflags ); - + void timer_clear( int n ); void timer_start( int n ); void timer_stop( int n ); @@ -98,55 +98,55 @@ int verify(char *bmname,double rnm2){ verified = 0; }else if(cls=='W') { if(strstr(bmname,"BH")){ - verify_value = 4102461.0; + verify_value = 4102461.0; }else if(strstr(bmname,"WH")){ - verify_value = 204280762.0; + verify_value = 204280762.0; }else if(strstr(bmname,"SH")){ - verify_value = 186944764.0; + verify_value = 186944764.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); } verified = 0; }else if(cls=='A') { if(strstr(bmname,"BH")){ - verify_value = 17809491.0; + verify_value = 17809491.0; }else if(strstr(bmname,"WH")){ - verify_value = 1289925229.0; + verify_value = 1289925229.0; }else if(strstr(bmname,"SH")){ - verify_value = 610856482.0; + verify_value = 610856482.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); } - verified = 0; + verified = 0; }else if(cls=='B') { if(strstr(bmname,"BH")){ - verify_value = 4317114.0; + verify_value = 4317114.0; }else if(strstr(bmname,"WH")){ - verify_value = 7877279917.0; + verify_value = 7877279917.0; }else if(strstr(bmname,"SH")){ - verify_value = 1836863082.0; + verify_value = 1836863082.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); - verified = 0; + verified = 0; } }else if(cls=='C') { if(strstr(bmname,"BH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"WH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"SH")){ - verify_value = 0.0; + verify_value = 0.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); - verified = -1; + verified = -1; } }else if(cls=='D') { if(strstr(bmname,"BH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"WH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"SH")){ - verify_value = 0.0; + verify_value = 0.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); } @@ -156,15 +156,15 @@ int verify(char *bmname,double rnm2){ } fprintf(stderr," %s L2 Norm = %f\n",bmname,rnm2); if(verified==-1){ - fprintf(stderr," No verification was performed.\n"); + fprintf(stderr," No verification was performed.\n"); }else if( rnm2 - verify_value < epsilon && rnm2 - verify_value > -epsilon) { /* abs here does not work on ALTIX */ - verified = 1; - fprintf(stderr," Deviation = %f\n",(rnm2 - verify_value)); + verified = 1; + fprintf(stderr," Deviation = %f\n",(rnm2 - verify_value)); }else{ - verified = 0; - fprintf(stderr," The correct verification value = %f\n",verify_value); - fprintf(stderr," Got value = %f\n",rnm2); + verified = 0; + fprintf(stderr," The correct verification value = %f\n",verify_value); + fprintf(stderr," Got value = %f\n",rnm2); } }else{ verified = -1; @@ -297,7 +297,7 @@ DGraph *buildWH(char cls){ id=AttachNode(dg,nd); for(j=0;j=numPrevLayerNodes) break; + if(sid>=numPrevLayerNodes) break; snd=dg->node[firstLayerNode+sid]; ar=newArc(dg->node[id],snd); AttachArc(dg,ar); @@ -357,7 +357,7 @@ DGraph *buildBH(char cls){ id=AttachNode(dg,nd); for(j=0;j=numPrevLayerNodes) break; + if(sid>=numPrevLayerNodes) break; snd=dg->node[firstLayerNode+sid]; ar=newArc(snd,dg->node[id]); AttachArc(dg,ar); @@ -486,19 +486,19 @@ Arr* WindowFilter(Arr *a, Arr* b,int w){ if(a->len>b->len) Resample(b,a->len); for(i=fielddim;ilen-fielddim;i+=fielddim){ rms0=(a->val[i]-b->val[i])*(a->val[i]-b->val[i]) - +(a->val[i+1]-b->val[i+1])*(a->val[i+1]-b->val[i+1]) - +(a->val[i+2]-b->val[i+2])*(a->val[i+2]-b->val[i+2]) - +(a->val[i+3]-b->val[i+3])*(a->val[i+3]-b->val[i+3]); + +(a->val[i+1]-b->val[i+1])*(a->val[i+1]-b->val[i+1]) + +(a->val[i+2]-b->val[i+2])*(a->val[i+2]-b->val[i+2]) + +(a->val[i+3]-b->val[i+3])*(a->val[i+3]-b->val[i+3]); j=i+fielddim; rms1=(a->val[j]-b->val[j])*(a->val[j]-b->val[j]) - +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) - +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) - +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); + +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) + +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) + +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); j=i-fielddim; rmsm1=(a->val[j]-b->val[j])*(a->val[j]-b->val[j]) - +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) - +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) - +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); + +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) + +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) + +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); k=0; if(rms1val[i+1]=weight*b->val[j+1]; a->val[i+2]=weight*b->val[j+2]; a->val[i+3]=weight*b->val[j+3]; - } + } } if(timer_on){ timer_stop(w); @@ -734,25 +734,25 @@ int main(int argc,char **argv ){ timer_stop(0); tot_time=timer_read(0); c_print_results( dg->name, - CLASS, - featnum, - 0, - 0, - dg->numNodes, - 0, - comm_size, - tot_time, - bytes_sent/tot_time, - "bytes transmitted", - verified, - NPBVERSION, - COMPILETIME, - MPICC, - CLINK, - CMPI_LIB, - CMPI_INC, - CFLAGS, - CLINKFLAGS ); + CLASS, + featnum, + 0, + 0, + dg->numNodes, + 0, + comm_size, + tot_time, + bytes_sent/tot_time, + "bytes transmitted", + verified, + NPBVERSION, + COMPILETIME, + MPICC, + CLINK, + CMPI_LIB, + CMPI_INC, + CFLAGS, + CLINKFLAGS ); } MPI_Finalize(); return 1; diff --git a/examples/smpi/NAS/DT-trace/DGraph.c b/examples/smpi/NAS/DT-trace/DGraph.c index 5d5839df19..f573786db8 100644 --- a/examples/smpi/NAS/DT-trace/DGraph.c +++ b/examples/smpi/NAS/DT-trace/DGraph.c @@ -32,7 +32,7 @@ DGNode *newNode(char *nm){ } void nodeShow(DGNode* nd){ fprintf( stderr,"%3d.%s: (%d,%d)\n", - nd->id,nd->name,nd->inDegree,nd->outDegree); + nd->id,nd->name,nd->inDegree,nd->outDegree); /* if(nd->verified==1) fprintf(stderr,"%ld.%s\t: usable.",nd->id,nd->name); else if(nd->verified==0) fprintf(stderr,"%ld.%s\t: unusable.",nd->id,nd->name); @@ -56,103 +56,103 @@ int AttachNode(DGraph* dg, DGNode* nd) { DGNode **nds =NULL, *tmpnd=NULL; DGArc **ar=NULL; - if (dg->numNodes == dg->maxNodes-1 ) { - dg->maxNodes += BLOCK_SIZE; + if (dg->numNodes == dg->maxNodes-1 ) { + dg->maxNodes += BLOCK_SIZE; nds =(DGNode **) calloc(dg->maxNodes,sizeof(DGNode*)); - memcpy(nds,dg->node,(dg->maxNodes-BLOCK_SIZE)*sizeof(DGNode*)); - free(dg->node); - dg->node=nds; - } + memcpy(nds,dg->node,(dg->maxNodes-BLOCK_SIZE)*sizeof(DGNode*)); + free(dg->node); + dg->node=nds; + } len = strlen( nd->name); - for (i = 0; i < dg->numNodes; i++) { - tmpnd =dg->node[ i]; - ar=NULL; - if ( strlen( tmpnd->name) != len ) continue; - if ( strncmp( nd->name, tmpnd->name, len) ) continue; - if ( nd->inDegree > 0 ) { - tmpnd->maxInDegree += nd->maxInDegree; + for (i = 0; i < dg->numNodes; i++) { + tmpnd =dg->node[ i]; + ar=NULL; + if ( strlen( tmpnd->name) != len ) continue; + if ( strncmp( nd->name, tmpnd->name, len) ) continue; + if ( nd->inDegree > 0 ) { + tmpnd->maxInDegree += nd->maxInDegree; ar =(DGArc **) calloc(tmpnd->maxInDegree,sizeof(DGArc*)); - memcpy(ar,tmpnd->inArc,(tmpnd->inDegree)*sizeof(DGArc*)); - free(tmpnd->inArc); - tmpnd->inArc=ar; - for (j = 0; j < nd->inDegree; j++ ) { - nd->inArc[ j]->head = tmpnd; - } - memcpy( &(tmpnd->inArc[ tmpnd->inDegree]), nd->inArc, nd->inDegree*sizeof( DGArc *)); - tmpnd->inDegree += nd->inDegree; - } - if ( nd->outDegree > 0 ) { - tmpnd->maxOutDegree += nd->maxOutDegree; + memcpy(ar,tmpnd->inArc,(tmpnd->inDegree)*sizeof(DGArc*)); + free(tmpnd->inArc); + tmpnd->inArc=ar; + for (j = 0; j < nd->inDegree; j++ ) { + nd->inArc[ j]->head = tmpnd; + } + memcpy( &(tmpnd->inArc[ tmpnd->inDegree]), nd->inArc, nd->inDegree*sizeof( DGArc *)); + tmpnd->inDegree += nd->inDegree; + } + if ( nd->outDegree > 0 ) { + tmpnd->maxOutDegree += nd->maxOutDegree; ar =(DGArc **) calloc(tmpnd->maxOutDegree,sizeof(DGArc*)); - memcpy(ar,tmpnd->outArc,(tmpnd->outDegree)*sizeof(DGArc*)); - free(tmpnd->outArc); - tmpnd->outArc=ar; - for (j = 0; j < nd->outDegree; j++ ) { - nd->outArc[ j]->tail = tmpnd; - } - memcpy( &(tmpnd->outArc[tmpnd->outDegree]),nd->outArc,nd->outDegree*sizeof( DGArc *)); - tmpnd->outDegree += nd->outDegree; - } - free(nd); - return i; - } - nd->id = dg->numNodes; - dg->node[dg->numNodes] = nd; - dg->numNodes++; + memcpy(ar,tmpnd->outArc,(tmpnd->outDegree)*sizeof(DGArc*)); + free(tmpnd->outArc); + tmpnd->outArc=ar; + for (j = 0; j < nd->outDegree; j++ ) { + nd->outArc[ j]->tail = tmpnd; + } + memcpy( &(tmpnd->outArc[tmpnd->outDegree]),nd->outArc,nd->outDegree*sizeof( DGArc *)); + tmpnd->outDegree += nd->outDegree; + } + free(nd); + return i; + } + nd->id = dg->numNodes; + dg->node[dg->numNodes] = nd; + dg->numNodes++; return nd->id; } int AttachArc(DGraph *dg,DGArc* nar){ -int arcId = -1; +int arcId = -1; int i=0,newNumber=0; -DGNode *head = nar->head, - *tail = nar->tail; +DGNode *head = nar->head, + *tail = nar->tail; DGArc **ars=NULL,*probe=NULL; /*fprintf(stderr,"AttachArc %ld\n",dg->numArcs); */ - if ( !tail || !head ) return arcId; - if ( dg->numArcs == dg->maxArcs-1 ) { - dg->maxArcs += BLOCK_SIZE; + if ( !tail || !head ) return arcId; + if ( dg->numArcs == dg->maxArcs-1 ) { + dg->maxArcs += BLOCK_SIZE; ars =(DGArc **) calloc(dg->maxArcs,sizeof(DGArc*)); - memcpy(ars,dg->arc,(dg->maxArcs-BLOCK_SIZE)*sizeof(DGArc*)); - free(dg->arc); - dg->arc=ars; - } - for(i = 0; i < tail->outDegree; i++ ) { /* parallel arc */ - probe = tail->outArc[ i]; - if(probe->head == head - && - probe->length == nar->length + memcpy(ars,dg->arc,(dg->maxArcs-BLOCK_SIZE)*sizeof(DGArc*)); + free(dg->arc); + dg->arc=ars; + } + for(i = 0; i < tail->outDegree; i++ ) { /* parallel arc */ + probe = tail->outArc[ i]; + if(probe->head == head + && + probe->length == nar->length ){ free(nar); - return probe->id; - } - } - - nar->id = dg->numArcs; - arcId=dg->numArcs; - dg->arc[dg->numArcs] = nar; - dg->numArcs++; - - head->inArc[ head->inDegree] = nar; - head->inDegree++; - if ( head->inDegree >= head->maxInDegree ) { - newNumber = head->maxInDegree + SMALL_BLOCK_SIZE; + return probe->id; + } + } + + nar->id = dg->numArcs; + arcId=dg->numArcs; + dg->arc[dg->numArcs] = nar; + dg->numArcs++; + + head->inArc[ head->inDegree] = nar; + head->inDegree++; + if ( head->inDegree >= head->maxInDegree ) { + newNumber = head->maxInDegree + SMALL_BLOCK_SIZE; ars =(DGArc **) calloc(newNumber,sizeof(DGArc*)); - memcpy(ars,head->inArc,(head->inDegree)*sizeof(DGArc*)); - free(head->inArc); - head->inArc=ars; - head->maxInDegree = newNumber; - } - tail->outArc[ tail->outDegree] = nar; - tail->outDegree++; - if(tail->outDegree >= tail->maxOutDegree ) { - newNumber = tail->maxOutDegree + SMALL_BLOCK_SIZE; + memcpy(ars,head->inArc,(head->inDegree)*sizeof(DGArc*)); + free(head->inArc); + head->inArc=ars; + head->maxInDegree = newNumber; + } + tail->outArc[ tail->outDegree] = nar; + tail->outDegree++; + if(tail->outDegree >= tail->maxOutDegree ) { + newNumber = tail->maxOutDegree + SMALL_BLOCK_SIZE; ars =(DGArc **) calloc(newNumber,sizeof(DGArc*)); - memcpy(ars,tail->outArc,(tail->outDegree)*sizeof(DGArc*)); - free(tail->outArc); - tail->outArc=ars; - tail->maxOutDegree = newNumber; - } + memcpy(ars,tail->outArc,(tail->outDegree)*sizeof(DGArc*)); + free(tail->outArc); + tail->outArc=ars; + tail->maxOutDegree = newNumber; + } /*fprintf(stderr,"AttachArc: head->in=%d tail->out=%ld\n",head->inDegree,tail->outDegree);*/ return arcId; } @@ -164,8 +164,8 @@ void graphShow(DGraph *dg,int DetailsLevel){ DGNode *focusNode = dg->node[ i]; if(DetailsLevel >= 2) { for (j = 0; j < focusNode->inDegree; j++ ) { - fprintf(stderr,"\t "); - nodeShow(focusNode->inArc[ j]->tail); + fprintf(stderr,"\t "); + nodeShow(focusNode->inArc[ j]->tail); } } nodeShow(focusNode); @@ -173,7 +173,7 @@ void graphShow(DGraph *dg,int DetailsLevel){ for (j = 0; j < focusNode->outDegree; j++ ) { fprintf(stderr, "\t "); nodeShow(focusNode->outArc[ j]->head); - } + } fprintf(stderr, "---\n"); } fprintf(stderr,"----------------------------------------\n"); diff --git a/examples/smpi/NAS/DT-trace/dt.c b/examples/smpi/NAS/DT-trace/dt.c index f649670947..862cf26a17 100644 --- a/examples/smpi/NAS/DT-trace/dt.c +++ b/examples/smpi/NAS/DT-trace/dt.c @@ -2,7 +2,7 @@ * * * N A S P A R A L L E L B E N C H M A R K S 3.3 * * * - * D T * + * D T * * * ************************************************************************* * * @@ -33,7 +33,7 @@ * * ************************************************************************* * * - * Author: M. Frumkin * * + * Author: M. Frumkin * * * * *************************************************************************/ @@ -64,7 +64,7 @@ void c_print_results( char *name, int nprocs_total, double t, double mops, - char *optype, + char *optype, int passed_verification, char *npbversion, char *compiletime, @@ -74,7 +74,7 @@ void c_print_results( char *name, char *cmpi_inc, char *cflags, char *clinkflags ); - + void timer_clear( int n ); void timer_start( int n ); void timer_stop( int n ); @@ -100,55 +100,55 @@ int verify(char *bmname,double rnm2){ verified = 0; }else if(cls=='W') { if(strstr(bmname,"BH")){ - verify_value = 4102461.0; + verify_value = 4102461.0; }else if(strstr(bmname,"WH")){ - verify_value = 204280762.0; + verify_value = 204280762.0; }else if(strstr(bmname,"SH")){ - verify_value = 186944764.0; + verify_value = 186944764.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); } verified = 0; }else if(cls=='A') { if(strstr(bmname,"BH")){ - verify_value = 17809491.0; + verify_value = 17809491.0; }else if(strstr(bmname,"WH")){ - verify_value = 1289925229.0; + verify_value = 1289925229.0; }else if(strstr(bmname,"SH")){ - verify_value = 610856482.0; + verify_value = 610856482.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); } - verified = 0; + verified = 0; }else if(cls=='B') { if(strstr(bmname,"BH")){ - verify_value = 4317114.0; + verify_value = 4317114.0; }else if(strstr(bmname,"WH")){ - verify_value = 7877279917.0; + verify_value = 7877279917.0; }else if(strstr(bmname,"SH")){ - verify_value = 1836863082.0; + verify_value = 1836863082.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); - verified = 0; + verified = 0; } }else if(cls=='C') { if(strstr(bmname,"BH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"WH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"SH")){ - verify_value = 0.0; + verify_value = 0.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); - verified = -1; + verified = -1; } }else if(cls=='D') { if(strstr(bmname,"BH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"WH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"SH")){ - verify_value = 0.0; + verify_value = 0.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); } @@ -158,15 +158,15 @@ int verify(char *bmname,double rnm2){ } fprintf(stderr," %s L2 Norm = %f\n",bmname,rnm2); if(verified==-1){ - fprintf(stderr," No verification was performed.\n"); + fprintf(stderr," No verification was performed.\n"); }else if( rnm2 - verify_value < epsilon && rnm2 - verify_value > -epsilon) { /* abs here does not work on ALTIX */ - verified = 1; - fprintf(stderr," Deviation = %f\n",(rnm2 - verify_value)); + verified = 1; + fprintf(stderr," Deviation = %f\n",(rnm2 - verify_value)); }else{ - verified = 0; - fprintf(stderr," The correct verification value = %f\n",verify_value); - fprintf(stderr," Got value = %f\n",rnm2); + verified = 0; + fprintf(stderr," The correct verification value = %f\n",verify_value); + fprintf(stderr," Got value = %f\n",rnm2); } }else{ verified = -1; @@ -299,7 +299,7 @@ DGraph *buildWH(char cls){ id=AttachNode(dg,nd); for(j=0;j=numPrevLayerNodes) break; + if(sid>=numPrevLayerNodes) break; snd=dg->node[firstLayerNode+sid]; ar=newArc(dg->node[id],snd); AttachArc(dg,ar); @@ -359,7 +359,7 @@ DGraph *buildBH(char cls){ id=AttachNode(dg,nd); for(j=0;j=numPrevLayerNodes) break; + if(sid>=numPrevLayerNodes) break; snd=dg->node[firstLayerNode+sid]; ar=newArc(snd,dg->node[id]); AttachArc(dg,ar); @@ -488,19 +488,19 @@ Arr* WindowFilter(Arr *a, Arr* b,int w){ if(a->len>b->len) Resample(b,a->len); for(i=fielddim;ilen-fielddim;i+=fielddim){ rms0=(a->val[i]-b->val[i])*(a->val[i]-b->val[i]) - +(a->val[i+1]-b->val[i+1])*(a->val[i+1]-b->val[i+1]) - +(a->val[i+2]-b->val[i+2])*(a->val[i+2]-b->val[i+2]) - +(a->val[i+3]-b->val[i+3])*(a->val[i+3]-b->val[i+3]); + +(a->val[i+1]-b->val[i+1])*(a->val[i+1]-b->val[i+1]) + +(a->val[i+2]-b->val[i+2])*(a->val[i+2]-b->val[i+2]) + +(a->val[i+3]-b->val[i+3])*(a->val[i+3]-b->val[i+3]); j=i+fielddim; rms1=(a->val[j]-b->val[j])*(a->val[j]-b->val[j]) - +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) - +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) - +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); + +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) + +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) + +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); j=i-fielddim; rmsm1=(a->val[j]-b->val[j])*(a->val[j]-b->val[j]) - +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) - +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) - +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); + +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) + +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) + +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); k=0; if(rms1val[i+1]=weight*b->val[j+1]; a->val[i+2]=weight*b->val[j+2]; a->val[i+3]=weight*b->val[j+3]; - } + } } if(timer_on){ timer_stop(w); @@ -752,25 +752,25 @@ int main(int argc,char **argv ){ timer_stop(0); tot_time=timer_read(0); c_print_results( dg->name, - CLASS, - featnum, - 0, - 0, - dg->numNodes, - 0, - comm_size, - tot_time, - bytes_sent/tot_time, - "bytes transmitted", - verified, - NPBVERSION, - COMPILETIME, - MPICC, - CLINK, - CMPI_LIB, - CMPI_INC, - CFLAGS, - CLINKFLAGS ); + CLASS, + featnum, + 0, + 0, + dg->numNodes, + 0, + comm_size, + tot_time, + bytes_sent/tot_time, + "bytes transmitted", + verified, + NPBVERSION, + COMPILETIME, + MPICC, + CLINK, + CMPI_LIB, + CMPI_INC, + CFLAGS, + CLINKFLAGS ); } MPI_Finalize(); return 1; diff --git a/examples/smpi/NAS/DT/DGraph.c b/examples/smpi/NAS/DT/DGraph.c index 5d5839df19..f573786db8 100644 --- a/examples/smpi/NAS/DT/DGraph.c +++ b/examples/smpi/NAS/DT/DGraph.c @@ -32,7 +32,7 @@ DGNode *newNode(char *nm){ } void nodeShow(DGNode* nd){ fprintf( stderr,"%3d.%s: (%d,%d)\n", - nd->id,nd->name,nd->inDegree,nd->outDegree); + nd->id,nd->name,nd->inDegree,nd->outDegree); /* if(nd->verified==1) fprintf(stderr,"%ld.%s\t: usable.",nd->id,nd->name); else if(nd->verified==0) fprintf(stderr,"%ld.%s\t: unusable.",nd->id,nd->name); @@ -56,103 +56,103 @@ int AttachNode(DGraph* dg, DGNode* nd) { DGNode **nds =NULL, *tmpnd=NULL; DGArc **ar=NULL; - if (dg->numNodes == dg->maxNodes-1 ) { - dg->maxNodes += BLOCK_SIZE; + if (dg->numNodes == dg->maxNodes-1 ) { + dg->maxNodes += BLOCK_SIZE; nds =(DGNode **) calloc(dg->maxNodes,sizeof(DGNode*)); - memcpy(nds,dg->node,(dg->maxNodes-BLOCK_SIZE)*sizeof(DGNode*)); - free(dg->node); - dg->node=nds; - } + memcpy(nds,dg->node,(dg->maxNodes-BLOCK_SIZE)*sizeof(DGNode*)); + free(dg->node); + dg->node=nds; + } len = strlen( nd->name); - for (i = 0; i < dg->numNodes; i++) { - tmpnd =dg->node[ i]; - ar=NULL; - if ( strlen( tmpnd->name) != len ) continue; - if ( strncmp( nd->name, tmpnd->name, len) ) continue; - if ( nd->inDegree > 0 ) { - tmpnd->maxInDegree += nd->maxInDegree; + for (i = 0; i < dg->numNodes; i++) { + tmpnd =dg->node[ i]; + ar=NULL; + if ( strlen( tmpnd->name) != len ) continue; + if ( strncmp( nd->name, tmpnd->name, len) ) continue; + if ( nd->inDegree > 0 ) { + tmpnd->maxInDegree += nd->maxInDegree; ar =(DGArc **) calloc(tmpnd->maxInDegree,sizeof(DGArc*)); - memcpy(ar,tmpnd->inArc,(tmpnd->inDegree)*sizeof(DGArc*)); - free(tmpnd->inArc); - tmpnd->inArc=ar; - for (j = 0; j < nd->inDegree; j++ ) { - nd->inArc[ j]->head = tmpnd; - } - memcpy( &(tmpnd->inArc[ tmpnd->inDegree]), nd->inArc, nd->inDegree*sizeof( DGArc *)); - tmpnd->inDegree += nd->inDegree; - } - if ( nd->outDegree > 0 ) { - tmpnd->maxOutDegree += nd->maxOutDegree; + memcpy(ar,tmpnd->inArc,(tmpnd->inDegree)*sizeof(DGArc*)); + free(tmpnd->inArc); + tmpnd->inArc=ar; + for (j = 0; j < nd->inDegree; j++ ) { + nd->inArc[ j]->head = tmpnd; + } + memcpy( &(tmpnd->inArc[ tmpnd->inDegree]), nd->inArc, nd->inDegree*sizeof( DGArc *)); + tmpnd->inDegree += nd->inDegree; + } + if ( nd->outDegree > 0 ) { + tmpnd->maxOutDegree += nd->maxOutDegree; ar =(DGArc **) calloc(tmpnd->maxOutDegree,sizeof(DGArc*)); - memcpy(ar,tmpnd->outArc,(tmpnd->outDegree)*sizeof(DGArc*)); - free(tmpnd->outArc); - tmpnd->outArc=ar; - for (j = 0; j < nd->outDegree; j++ ) { - nd->outArc[ j]->tail = tmpnd; - } - memcpy( &(tmpnd->outArc[tmpnd->outDegree]),nd->outArc,nd->outDegree*sizeof( DGArc *)); - tmpnd->outDegree += nd->outDegree; - } - free(nd); - return i; - } - nd->id = dg->numNodes; - dg->node[dg->numNodes] = nd; - dg->numNodes++; + memcpy(ar,tmpnd->outArc,(tmpnd->outDegree)*sizeof(DGArc*)); + free(tmpnd->outArc); + tmpnd->outArc=ar; + for (j = 0; j < nd->outDegree; j++ ) { + nd->outArc[ j]->tail = tmpnd; + } + memcpy( &(tmpnd->outArc[tmpnd->outDegree]),nd->outArc,nd->outDegree*sizeof( DGArc *)); + tmpnd->outDegree += nd->outDegree; + } + free(nd); + return i; + } + nd->id = dg->numNodes; + dg->node[dg->numNodes] = nd; + dg->numNodes++; return nd->id; } int AttachArc(DGraph *dg,DGArc* nar){ -int arcId = -1; +int arcId = -1; int i=0,newNumber=0; -DGNode *head = nar->head, - *tail = nar->tail; +DGNode *head = nar->head, + *tail = nar->tail; DGArc **ars=NULL,*probe=NULL; /*fprintf(stderr,"AttachArc %ld\n",dg->numArcs); */ - if ( !tail || !head ) return arcId; - if ( dg->numArcs == dg->maxArcs-1 ) { - dg->maxArcs += BLOCK_SIZE; + if ( !tail || !head ) return arcId; + if ( dg->numArcs == dg->maxArcs-1 ) { + dg->maxArcs += BLOCK_SIZE; ars =(DGArc **) calloc(dg->maxArcs,sizeof(DGArc*)); - memcpy(ars,dg->arc,(dg->maxArcs-BLOCK_SIZE)*sizeof(DGArc*)); - free(dg->arc); - dg->arc=ars; - } - for(i = 0; i < tail->outDegree; i++ ) { /* parallel arc */ - probe = tail->outArc[ i]; - if(probe->head == head - && - probe->length == nar->length + memcpy(ars,dg->arc,(dg->maxArcs-BLOCK_SIZE)*sizeof(DGArc*)); + free(dg->arc); + dg->arc=ars; + } + for(i = 0; i < tail->outDegree; i++ ) { /* parallel arc */ + probe = tail->outArc[ i]; + if(probe->head == head + && + probe->length == nar->length ){ free(nar); - return probe->id; - } - } - - nar->id = dg->numArcs; - arcId=dg->numArcs; - dg->arc[dg->numArcs] = nar; - dg->numArcs++; - - head->inArc[ head->inDegree] = nar; - head->inDegree++; - if ( head->inDegree >= head->maxInDegree ) { - newNumber = head->maxInDegree + SMALL_BLOCK_SIZE; + return probe->id; + } + } + + nar->id = dg->numArcs; + arcId=dg->numArcs; + dg->arc[dg->numArcs] = nar; + dg->numArcs++; + + head->inArc[ head->inDegree] = nar; + head->inDegree++; + if ( head->inDegree >= head->maxInDegree ) { + newNumber = head->maxInDegree + SMALL_BLOCK_SIZE; ars =(DGArc **) calloc(newNumber,sizeof(DGArc*)); - memcpy(ars,head->inArc,(head->inDegree)*sizeof(DGArc*)); - free(head->inArc); - head->inArc=ars; - head->maxInDegree = newNumber; - } - tail->outArc[ tail->outDegree] = nar; - tail->outDegree++; - if(tail->outDegree >= tail->maxOutDegree ) { - newNumber = tail->maxOutDegree + SMALL_BLOCK_SIZE; + memcpy(ars,head->inArc,(head->inDegree)*sizeof(DGArc*)); + free(head->inArc); + head->inArc=ars; + head->maxInDegree = newNumber; + } + tail->outArc[ tail->outDegree] = nar; + tail->outDegree++; + if(tail->outDegree >= tail->maxOutDegree ) { + newNumber = tail->maxOutDegree + SMALL_BLOCK_SIZE; ars =(DGArc **) calloc(newNumber,sizeof(DGArc*)); - memcpy(ars,tail->outArc,(tail->outDegree)*sizeof(DGArc*)); - free(tail->outArc); - tail->outArc=ars; - tail->maxOutDegree = newNumber; - } + memcpy(ars,tail->outArc,(tail->outDegree)*sizeof(DGArc*)); + free(tail->outArc); + tail->outArc=ars; + tail->maxOutDegree = newNumber; + } /*fprintf(stderr,"AttachArc: head->in=%d tail->out=%ld\n",head->inDegree,tail->outDegree);*/ return arcId; } @@ -164,8 +164,8 @@ void graphShow(DGraph *dg,int DetailsLevel){ DGNode *focusNode = dg->node[ i]; if(DetailsLevel >= 2) { for (j = 0; j < focusNode->inDegree; j++ ) { - fprintf(stderr,"\t "); - nodeShow(focusNode->inArc[ j]->tail); + fprintf(stderr,"\t "); + nodeShow(focusNode->inArc[ j]->tail); } } nodeShow(focusNode); @@ -173,7 +173,7 @@ void graphShow(DGraph *dg,int DetailsLevel){ for (j = 0; j < focusNode->outDegree; j++ ) { fprintf(stderr, "\t "); nodeShow(focusNode->outArc[ j]->head); - } + } fprintf(stderr, "---\n"); } fprintf(stderr,"----------------------------------------\n"); diff --git a/examples/smpi/NAS/DT/dt.c b/examples/smpi/NAS/DT/dt.c index ed8cfeb55d..d210b16424 100644 --- a/examples/smpi/NAS/DT/dt.c +++ b/examples/smpi/NAS/DT/dt.c @@ -2,7 +2,7 @@ * * * N A S P A R A L L E L B E N C H M A R K S 3.3 * * * - * D T * + * D T * * * ************************************************************************* * * @@ -33,7 +33,7 @@ * * ************************************************************************* * * - * Author: M. Frumkin * * + * Author: M. Frumkin * * * * *************************************************************************/ @@ -62,7 +62,7 @@ void c_print_results( char *name, int nprocs_total, double t, double mops, - char *optype, + char *optype, int passed_verification, char *npbversion, char *compiletime, @@ -72,7 +72,7 @@ void c_print_results( char *name, char *cmpi_inc, char *cflags, char *clinkflags ); - + void timer_clear( int n ); void timer_start( int n ); void timer_stop( int n ); @@ -98,55 +98,55 @@ int verify(char *bmname,double rnm2){ verified = 0; }else if(cls=='W') { if(strstr(bmname,"BH")){ - verify_value = 4102461.0; + verify_value = 4102461.0; }else if(strstr(bmname,"WH")){ - verify_value = 204280762.0; + verify_value = 204280762.0; }else if(strstr(bmname,"SH")){ - verify_value = 186944764.0; + verify_value = 186944764.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); } verified = 0; }else if(cls=='A') { if(strstr(bmname,"BH")){ - verify_value = 17809491.0; + verify_value = 17809491.0; }else if(strstr(bmname,"WH")){ - verify_value = 1289925229.0; + verify_value = 1289925229.0; }else if(strstr(bmname,"SH")){ - verify_value = 610856482.0; + verify_value = 610856482.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); } - verified = 0; + verified = 0; }else if(cls=='B') { if(strstr(bmname,"BH")){ - verify_value = 4317114.0; + verify_value = 4317114.0; }else if(strstr(bmname,"WH")){ - verify_value = 7877279917.0; + verify_value = 7877279917.0; }else if(strstr(bmname,"SH")){ - verify_value = 1836863082.0; + verify_value = 1836863082.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); - verified = 0; + verified = 0; } }else if(cls=='C') { if(strstr(bmname,"BH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"WH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"SH")){ - verify_value = 0.0; + verify_value = 0.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); - verified = -1; + verified = -1; } }else if(cls=='D') { if(strstr(bmname,"BH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"WH")){ - verify_value = 0.0; + verify_value = 0.0; }else if(strstr(bmname,"SH")){ - verify_value = 0.0; + verify_value = 0.0; }else{ fprintf(stderr,"No such benchmark as %s.\n",bmname); } @@ -156,15 +156,15 @@ int verify(char *bmname,double rnm2){ } fprintf(stderr," %s L2 Norm = %f\n",bmname,rnm2); if(verified==-1){ - fprintf(stderr," No verification was performed.\n"); + fprintf(stderr," No verification was performed.\n"); }else if( rnm2 - verify_value < epsilon && rnm2 - verify_value > -epsilon) { /* abs here does not work on ALTIX */ - verified = 1; - fprintf(stderr," Deviation = %f\n",(rnm2 - verify_value)); + verified = 1; + fprintf(stderr," Deviation = %f\n",(rnm2 - verify_value)); }else{ - verified = 0; - fprintf(stderr," The correct verification value = %f\n",verify_value); - fprintf(stderr," Got value = %f\n",rnm2); + verified = 0; + fprintf(stderr," The correct verification value = %f\n",verify_value); + fprintf(stderr," Got value = %f\n",rnm2); } }else{ verified = -1; @@ -297,7 +297,7 @@ DGraph *buildWH(char cls){ id=AttachNode(dg,nd); for(j=0;j=numPrevLayerNodes) break; + if(sid>=numPrevLayerNodes) break; snd=dg->node[firstLayerNode+sid]; ar=newArc(dg->node[id],snd); AttachArc(dg,ar); @@ -357,7 +357,7 @@ DGraph *buildBH(char cls){ id=AttachNode(dg,nd); for(j=0;j=numPrevLayerNodes) break; + if(sid>=numPrevLayerNodes) break; snd=dg->node[firstLayerNode+sid]; ar=newArc(snd,dg->node[id]); AttachArc(dg,ar); @@ -486,19 +486,19 @@ Arr* WindowFilter(Arr *a, Arr* b,int w){ if(a->len>b->len) Resample(b,a->len); for(i=fielddim;ilen-fielddim;i+=fielddim){ rms0=(a->val[i]-b->val[i])*(a->val[i]-b->val[i]) - +(a->val[i+1]-b->val[i+1])*(a->val[i+1]-b->val[i+1]) - +(a->val[i+2]-b->val[i+2])*(a->val[i+2]-b->val[i+2]) - +(a->val[i+3]-b->val[i+3])*(a->val[i+3]-b->val[i+3]); + +(a->val[i+1]-b->val[i+1])*(a->val[i+1]-b->val[i+1]) + +(a->val[i+2]-b->val[i+2])*(a->val[i+2]-b->val[i+2]) + +(a->val[i+3]-b->val[i+3])*(a->val[i+3]-b->val[i+3]); j=i+fielddim; rms1=(a->val[j]-b->val[j])*(a->val[j]-b->val[j]) - +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) - +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) - +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); + +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) + +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) + +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); j=i-fielddim; rmsm1=(a->val[j]-b->val[j])*(a->val[j]-b->val[j]) - +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) - +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) - +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); + +(a->val[j+1]-b->val[j+1])*(a->val[j+1]-b->val[j+1]) + +(a->val[j+2]-b->val[j+2])*(a->val[j+2]-b->val[j+2]) + +(a->val[j+3]-b->val[j+3])*(a->val[j+3]-b->val[j+3]); k=0; if(rms1val[i+1]=weight*b->val[j+1]; a->val[i+2]=weight*b->val[j+2]; a->val[i+3]=weight*b->val[j+3]; - } + } } if(timer_on){ timer_stop(w); @@ -734,25 +734,25 @@ int main(int argc,char **argv ){ timer_stop(0); tot_time=timer_read(0); c_print_results( dg->name, - CLASS, - featnum, - 0, - 0, - dg->numNodes, - 0, - comm_size, - tot_time, - bytes_sent/tot_time, - "bytes transmitted", - verified, - NPBVERSION, - COMPILETIME, - MPICC, - CLINK, - CMPI_LIB, - CMPI_INC, - CFLAGS, - CLINKFLAGS ); + CLASS, + featnum, + 0, + 0, + dg->numNodes, + 0, + comm_size, + tot_time, + bytes_sent/tot_time, + "bytes transmitted", + verified, + NPBVERSION, + COMPILETIME, + MPICC, + CLINK, + CMPI_LIB, + CMPI_INC, + CFLAGS, + CLINKFLAGS ); } MPI_Finalize(); return 1; diff --git a/examples/smpi/NAS/EP-sampling/ep.c b/examples/smpi/NAS/EP-sampling/ep.c index 71e0f89146..04b0c1b396 100644 --- a/examples/smpi/NAS/EP-sampling/ep.c +++ b/examples/smpi/NAS/EP-sampling/ep.c @@ -46,7 +46,7 @@ { int i; long i246m1=0x00003FFFFFFFFFFF; - long LLx, Lx, La; + long LLx, Lx, La; double d2m46; // This doesn't work, because the compiler does the calculation in 32 @@ -70,21 +70,21 @@ La = (long)a; //fprintf(stdout,("================== Vranlc ================"); //fprintf(stdout,("Before Loop: Lx = " + Lx + ", La = " + La); - LLx = Lx; - for (i=0; i< n; i++) { - Lx = Lx*La & i246m1 ; - LLx = Lx; - y[i] = d2m46 * (double)LLx; - /* - if(i == 0) { - fprintf(stdout,("After loop 0:"); - fprintf(stdout,("Lx = " + Lx + ", La = " + La); - fprintf(stdout,("d2m46 = " + d2m46); - fprintf(stdout,("LLX(Lx) = " + LLX.doubleValue()); - fprintf(stdout,("Y[0]" + y[0]); - } - */ - } + LLx = Lx; + for (i=0; i< n; i++) { + Lx = Lx*La & i246m1 ; + LLx = Lx; + y[i] = d2m46 * (double)LLx; + /* + if(i == 0) { + fprintf(stdout,("After loop 0:"); + fprintf(stdout,("Lx = " + Lx + ", La = " + La); + fprintf(stdout,("d2m46 = " + d2m46); + fprintf(stdout,("LLX(Lx) = " + LLX.doubleValue()); + fprintf(stdout,("Y[0]" + y[0]); + } + */ + } x = (double)LLx; /* @@ -98,75 +98,75 @@ //-------------- the core (unique function) ----------- void doTest(int argc, char **argv) { - double dum[3] = {1.,1.,1.}; - double x1, x2, sx, sy, tm, an, tt, gc; - double Mops; - double epsilon=1.0E-8, a = 1220703125., s=271828183.; - double t1, t2, t3, t4; - double sx_verify_value, sy_verify_value, sx_err, sy_err; + double dum[3] = {1.,1.,1.}; + double x1, x2, sx, sy, tm, an, tt, gc; + double Mops; + double epsilon=1.0E-8, a = 1220703125., s=271828183.; + double t1, t2, t3, t4; + double sx_verify_value, sy_verify_value, sx_err, sy_err; #include "npbparams.h" - int mk=16, - // --> set by make : in npbparams.h - //m=28, // for CLASS=A - //m=30, // for CLASS=B - //npm=2, // NPROCS - mm = m-mk, - nn = (int)(pow(2,mm)), - nk = (int)(pow(2,mk)), - nq=10, - np, - node, - no_nodes, - i, - ik, - kk, - l, - k, nit, no_large_nodes, - np_add, k_offset, j; - int me, nprocs, root=0, dp_type; - int verified, - timers_enabled=true; - char size[500]; // mind the size of the string to represent a big number - - //Use in randlc.. - int KS = 0; - double R23, R46, T23, T46; - - double *qq = (double *) malloc (10000*sizeof(double)); - double *start = (double *) malloc (64*sizeof(double)); - double *elapsed = (double *) malloc (64*sizeof(double)); - - double *x = (double *) malloc (2*nk*sizeof(double)); - double *q = (double *) malloc (nq*sizeof(double)); - - MPI_Init( &argc, &argv ); - MPI_Comm_size( MPI_COMM_WORLD, &no_nodes); - MPI_Comm_rank( MPI_COMM_WORLD, &node); + int mk=16, + // --> set by make : in npbparams.h + //m=28, // for CLASS=A + //m=30, // for CLASS=B + //npm=2, // NPROCS + mm = m-mk, + nn = (int)(pow(2,mm)), + nk = (int)(pow(2,mk)), + nq=10, + np, + node, + no_nodes, + i, + ik, + kk, + l, + k, nit, no_large_nodes, + np_add, k_offset, j; + int me, nprocs, root=0, dp_type; + int verified, + timers_enabled=true; + char size[500]; // mind the size of the string to represent a big number + + //Use in randlc.. + int KS = 0; + double R23, R46, T23, T46; + + double *qq = (double *) malloc (10000*sizeof(double)); + double *start = (double *) malloc (64*sizeof(double)); + double *elapsed = (double *) malloc (64*sizeof(double)); + + double *x = (double *) malloc (2*nk*sizeof(double)); + double *q = (double *) malloc (nq*sizeof(double)); + + MPI_Init( &argc, &argv ); + MPI_Comm_size( MPI_COMM_WORLD, &no_nodes); + MPI_Comm_rank( MPI_COMM_WORLD, &node); #ifdef USE_MPE MPE_Init_log(); #endif - root = 0; - if (node == root ) { - - /* Because the size of the problem is too large to store in a 32-bit - * integer for some classes, we put it into a string (for printing). - * Have to strip off the decimal point put in there by the floating - * point print statement (internal file) - */ - fprintf(stdout," NAS Parallel Benchmarks 3.2 -- EP Benchmark"); - sprintf(size,"%d",pow(2,m+1)); - //size = size.replace('.', ' '); - fprintf(stdout," Number of random numbers generated: %s\n",size); - fprintf(stdout," Number of active processes: %d\n",no_nodes); - - } - verified = false; - - /* c Compute the number of "batches" of random number pairs generated - c per processor. Adjust if the number of processors does not evenly - c divide the total number + root = 0; + if (node == root ) { + + /* Because the size of the problem is too large to store in a 32-bit + * integer for some classes, we put it into a string (for printing). + * Have to strip off the decimal point put in there by the floating + * point print statement (internal file) + */ + fprintf(stdout," NAS Parallel Benchmarks 3.2 -- EP Benchmark"); + sprintf(size,"%d",pow(2,m+1)); + //size = size.replace('.', ' '); + fprintf(stdout," Number of random numbers generated: %s\n",size); + fprintf(stdout," Number of active processes: %d\n",no_nodes); + + } + verified = false; + + /* c Compute the number of "batches" of random number pairs generated + c per processor. Adjust if the number of processors does not evenly + c divide the total number */ np = nn / no_nodes; @@ -187,22 +187,22 @@ c sure these initializations cannot be eliminated as dead code. */ - //call vranlc(0, dum[1], dum[2], dum[3]); - // Array indexes start at 1 in Fortran, 0 in Java - vranlc(0, dum[0], dum[1], &(dum[2])); - - dum[0] = randlc(&(dum[1]),&(dum[2])); - ///////////////////////////////// - for (i=0;i<2*nk;i++) { - x[i] = -1e99; - } - Mops = log(sqrt(abs(1))); - - /* - c--------------------------------------------------------------------- - c Synchronize before placing time stamp - c--------------------------------------------------------------------- - */ + //call vranlc(0, dum[1], dum[2], dum[3]); + // Array indexes start at 1 in Fortran, 0 in Java + vranlc(0, dum[0], dum[1], &(dum[2])); + + dum[0] = randlc(&(dum[1]),&(dum[2])); + ///////////////////////////////// + for (i=0;i<2*nk;i++) { + x[i] = -1e99; + } + Mops = log(sqrt(abs(1))); + + /* + c--------------------------------------------------------------------- + c Synchronize before placing time stamp + c--------------------------------------------------------------------- + */ MPI_Barrier( MPI_COMM_WORLD ); timer_clear(&(elapsed[1])); @@ -211,21 +211,21 @@ timer_start(&(start[1])); t1 = a; - //fprintf(stdout,("(ep.f:160) t1 = " + t1); + //fprintf(stdout,("(ep.f:160) t1 = " + t1); t1 = vranlc(0, t1, a, x); - //fprintf(stdout,("(ep.f:161) t1 = " + t1); - + //fprintf(stdout,("(ep.f:161) t1 = " + t1); + /* c Compute AN = A ^ (2 * NK) (mod 2^46). */ t1 = a; - //fprintf(stdout,("(ep.f:165) t1 = " + t1); + //fprintf(stdout,("(ep.f:165) t1 = " + t1); for (i=1; i <= mk+1; i++) { t2 = randlc(&t1, &t1); - //fprintf(stdout,("(ep.f:168)[loop i=" + i +"] t1 = " + t1); + //fprintf(stdout,("(ep.f:168)[loop i=" + i +"] t1 = " + t1); } an = t1; - //fprintf(stdout,("(ep.f:172) s = " + s); + //fprintf(stdout,("(ep.f:172) s = " + s); tt = s; gc = 0.; sx = 0.; @@ -257,7 +257,7 @@ for (i=1;i<=100 && !stop;i++) { ik = kk / 2; - //fprintf(stdout,("(ep.f:199) ik = " +ik+", kk = " + kk); + //fprintf(stdout,("(ep.f:199) ik = " +ik+", kk = " + kk); if (2 * ik != kk) { t3 = randlc(&t1, &t2); //fprintf(stdout,("(ep.f:200) t1= " +t1 ); @@ -272,34 +272,34 @@ // Compute uniform pseudorandom numbers. //if (timers_enabled) timer_start(3); - timer_start(&(start[3])); + timer_start(&(start[3])); //call vranlc(2 * nk, t1, a, x) --> t1 and y are modified - //fprintf(stdout,">>>>>>>>>>>Before vranlc(l.210)<<<<<<<<<<<<<"); - //fprintf(stdout,"2*nk = " + (2*nk)); - //fprintf(stdout,"t1 = " + t1); - //fprintf(stdout,"a = " + a); - //fprintf(stdout,"x[0] = " + x[0]); - //fprintf(stdout,">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); + //fprintf(stdout,">>>>>>>>>>>Before vranlc(l.210)<<<<<<<<<<<<<"); + //fprintf(stdout,"2*nk = " + (2*nk)); + //fprintf(stdout,"t1 = " + t1); + //fprintf(stdout,"a = " + a); + //fprintf(stdout,"x[0] = " + x[0]); + //fprintf(stdout,">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); - t1 = vranlc(2 * nk, t1, a, x); - - //fprintf(stdout,(">>>>>>>>>>>After Enter vranlc (l.210)<<<<<<"); - //fprintf(stdout,("2*nk = " + (2*nk)); - //fprintf(stdout,("t1 = " + t1); - //fprintf(stdout,("a = " + a); - //fprintf(stdout,("x[0] = " + x[0]); - //fprintf(stdout,(">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); + t1 = vranlc(2 * nk, t1, a, x); + + //fprintf(stdout,(">>>>>>>>>>>After Enter vranlc (l.210)<<<<<<"); + //fprintf(stdout,("2*nk = " + (2*nk)); + //fprintf(stdout,("t1 = " + t1); + //fprintf(stdout,("a = " + a); + //fprintf(stdout,("x[0] = " + x[0]); + //fprintf(stdout,(">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); //if (timers_enabled) timer_stop(3); - timer_stop(3,elapsed,start); + timer_stop(3,elapsed,start); /* Compute Gaussian deviates by acceptance-rejection method and * tally counts in concentric square annuli. This loop is not * vectorizable. */ //if (timers_enabled) timer_start(2); - timer_start(&(start[2])); + timer_start(&(start[2])); for(i=1; i<=nk;i++) { x1 = 2. * x[2*i-2] -1.0; x2 = 2. * x[2*i-1] - 1.0; @@ -313,8 +313,8 @@ sx = sx + t3; sy = sy + t4; } - /* - if(i == 1) { + /* + if(i == 1) { fprintf(stdout,"x1 = " + x1); fprintf(stdout,"x2 = " + x2); fprintf(stdout,"t1 = " + t1); @@ -325,109 +325,109 @@ fprintf(stdout,"q[l] = " + q[l]); fprintf(stdout,"sx = " + sx); fprintf(stdout,"sy = " + sy); - } - */ + } + */ } //if (timers_enabled) timer_stop(2); - timer_stop(2,elapsed,start); + timer_stop(2,elapsed,start); } //int MPI_Allreduce(void *sbuf, void *rbuf, int count, MPI_Datatype dtype, MPI_Op op, MPI_Comm comm) - MPI_Allreduce(&sx, x, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); - sx = x[0]; //FIXME : x[0] or x[1] => x[0] because fortran starts with 1 + MPI_Allreduce(&sx, x, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); + sx = x[0]; //FIXME : x[0] or x[1] => x[0] because fortran starts with 1 MPI_Allreduce(&sy, x, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); sy = x[0]; MPI_Allreduce(q, x, nq, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); for(i = 0; i < nq; i++) { - q[i] = x[i]; - } - for(i = 0; i < nq; i++) { - gc += q[i]; - } + q[i] = x[i]; + } + for(i = 0; i < nq; i++) { + gc += q[i]; + } - timer_stop(1,elapsed,start); + timer_stop(1,elapsed,start); tm = timer_read(1,elapsed); - MPI_Allreduce(&tm, x, 1, MPI_DOUBLE, MPI_MAX, MPI_COMM_WORLD); - tm = x[0]; - - if(node == root) { - nit = 0; - verified = true; - - if(m == 24) { - sx_verify_value = -3.247834652034740E3; - sy_verify_value = -6.958407078382297E3; - } else if(m == 25) { - sx_verify_value = -2.863319731645753E3; - sy_verify_value = -6.320053679109499E3; - } else if(m == 28) { - sx_verify_value = -4.295875165629892E3; - sy_verify_value = -1.580732573678431E4; - } else if(m == 30) { - sx_verify_value = 4.033815542441498E4; - sy_verify_value = -2.660669192809235E4; - } else if(m == 32) { - sx_verify_value = 4.764367927995374E4; - sy_verify_value = -8.084072988043731E4; - } else if(m == 36) { - sx_verify_value = 1.982481200946593E5; - sy_verify_value = -1.020596636361769E5; - } else { - verified = false; - } - - /* - fprintf(stdout,("sx = " + sx); - fprintf(stdout,("sx_verify = " + sx_verify_value); - fprintf(stdout,("sy = " + sy); - fprintf(stdout,("sy_verify = " + sy_verify_value); - */ - if(verified) { - sx_err = abs((sx - sx_verify_value)/sx_verify_value); - sy_err = abs((sy - sy_verify_value)/sy_verify_value); - /* - fprintf(stdout,("sx_err = " + sx_err); - fprintf(stdout,("sy_err = " + sx_err); - fprintf(stdout,("epsilon= " + epsilon); - */ - verified = ((sx_err < epsilon) && (sy_err < epsilon)); - } - - Mops = (pow(2.0, m+1))/tm/1000; - - fprintf(stdout,"EP Benchmark Results:\n"); - fprintf(stdout,"CPU Time=%d\n",tm); - fprintf(stdout,"N = 2^%d\n",m); - fprintf(stdout,"No. Gaussain Pairs =%d\n",gc); - fprintf(stdout,"Sum = %lf %ld\n",sx,sy); - fprintf(stdout,"Count:"); - for(i = 0; i < nq; i++) { - fprintf(stdout,"%d\t %ld\n",i,q[i]); - } - - /* - print_results("EP", _class, m+1, 0, 0, nit, npm, no_nodes, tm, Mops, - "Random numbers generated", verified, npbversion, - compiletime, cs1, cs2, cs3, cs4, cs5, cs6, cs7) */ - fprintf(stdout,"\nEP Benchmark Completed\n"); + MPI_Allreduce(&tm, x, 1, MPI_DOUBLE, MPI_MAX, MPI_COMM_WORLD); + tm = x[0]; + + if(node == root) { + nit = 0; + verified = true; + + if(m == 24) { + sx_verify_value = -3.247834652034740E3; + sy_verify_value = -6.958407078382297E3; + } else if(m == 25) { + sx_verify_value = -2.863319731645753E3; + sy_verify_value = -6.320053679109499E3; + } else if(m == 28) { + sx_verify_value = -4.295875165629892E3; + sy_verify_value = -1.580732573678431E4; + } else if(m == 30) { + sx_verify_value = 4.033815542441498E4; + sy_verify_value = -2.660669192809235E4; + } else if(m == 32) { + sx_verify_value = 4.764367927995374E4; + sy_verify_value = -8.084072988043731E4; + } else if(m == 36) { + sx_verify_value = 1.982481200946593E5; + sy_verify_value = -1.020596636361769E5; + } else { + verified = false; + } + + /* + fprintf(stdout,("sx = " + sx); + fprintf(stdout,("sx_verify = " + sx_verify_value); + fprintf(stdout,("sy = " + sy); + fprintf(stdout,("sy_verify = " + sy_verify_value); + */ + if(verified) { + sx_err = abs((sx - sx_verify_value)/sx_verify_value); + sy_err = abs((sy - sy_verify_value)/sy_verify_value); + /* + fprintf(stdout,("sx_err = " + sx_err); + fprintf(stdout,("sy_err = " + sx_err); + fprintf(stdout,("epsilon= " + epsilon); + */ + verified = ((sx_err < epsilon) && (sy_err < epsilon)); + } + + Mops = (pow(2.0, m+1))/tm/1000; + + fprintf(stdout,"EP Benchmark Results:\n"); + fprintf(stdout,"CPU Time=%d\n",tm); + fprintf(stdout,"N = 2^%d\n",m); + fprintf(stdout,"No. Gaussain Pairs =%d\n",gc); + fprintf(stdout,"Sum = %lf %ld\n",sx,sy); + fprintf(stdout,"Count:"); + for(i = 0; i < nq; i++) { + fprintf(stdout,"%d\t %ld\n",i,q[i]); + } + + /* + print_results("EP", _class, m+1, 0, 0, nit, npm, no_nodes, tm, Mops, + "Random numbers generated", verified, npbversion, + compiletime, cs1, cs2, cs3, cs4, cs5, cs6, cs7) */ + fprintf(stdout,"\nEP Benchmark Completed\n"); fprintf(stdout,"Class = %s\n", _class); - fprintf(stdout,"Size = %s\n", size); - fprintf(stdout,"Iteration = %d\n", nit); - fprintf(stdout,"Time in seconds = %lf\n",(tm/1000)); - fprintf(stdout,"Total processes = %d\n",no_nodes); - fprintf(stdout,"Mops/s total = %lf\n",Mops); - fprintf(stdout,"Mops/s/process = %lf\n", Mops/no_nodes); - fprintf(stdout,"Operation type = Random number generated\n"); - if(verified) { - fprintf(stdout,"Verification = SUCCESSFUL\n"); - } else { - fprintf(stdout,"Verification = UNSUCCESSFUL\n"); - } - fprintf(stdout,"Total time: %lf\n",(timer_read(1,elapsed)/1000)); - fprintf(stdout,"Gaussian pairs: %lf\n",(timer_read(2,elapsed)/1000)); - fprintf(stdout,"Random numbers: %lf\n",(timer_read(3,elapsed)/1000)); - } + fprintf(stdout,"Size = %s\n", size); + fprintf(stdout,"Iteration = %d\n", nit); + fprintf(stdout,"Time in seconds = %lf\n",(tm/1000)); + fprintf(stdout,"Total processes = %d\n",no_nodes); + fprintf(stdout,"Mops/s total = %lf\n",Mops); + fprintf(stdout,"Mops/s/process = %lf\n", Mops/no_nodes); + fprintf(stdout,"Operation type = Random number generated\n"); + if(verified) { + fprintf(stdout,"Verification = SUCCESSFUL\n"); + } else { + fprintf(stdout,"Verification = UNSUCCESSFUL\n"); + } + fprintf(stdout,"Total time: %lf\n",(timer_read(1,elapsed)/1000)); + fprintf(stdout,"Gaussian pairs: %lf\n",(timer_read(2,elapsed)/1000)); + fprintf(stdout,"Random numbers: %lf\n",(timer_read(3,elapsed)/1000)); + } #ifdef USE_MPE MPE_Finish_log(argv[0]); #endif diff --git a/examples/smpi/NAS/EP-sampling/randlc.c b/examples/smpi/NAS/EP-sampling/randlc.c index 624b800df8..4de6c93b88 100644 --- a/examples/smpi/NAS/EP-sampling/randlc.c +++ b/examples/smpi/NAS/EP-sampling/randlc.c @@ -38,17 +38,17 @@ /************* portable random number generator ************/ /*****************************************************************/ -double randlc( double *X, double *A ) +double randlc( double *X, double *A ) { static int KS=0; - static double R23, R46, T23, T46; - double T1, T2, T3, T4; - double A1; - double A2; - double X1; - double X2; - double Z; - int i, j; + static double R23, R46, T23, T46; + double T1, T2, T3, T4; + double A1; + double A2; + double X1; + double X2; + double Z; + int i, j; if (KS == 0) { diff --git a/examples/smpi/NAS/EP-trace/ep-trace.c b/examples/smpi/NAS/EP-trace/ep-trace.c index a0cec1b10a..4c5f5a7027 100644 --- a/examples/smpi/NAS/EP-trace/ep-trace.c +++ b/examples/smpi/NAS/EP-trace/ep-trace.c @@ -48,7 +48,7 @@ { int i; long i246m1=0x00003FFFFFFFFFFF; - long LLx, Lx, La; + long LLx, Lx, La; double d2m46; // This doesn't work, because the compiler does the calculation in 32 @@ -72,21 +72,21 @@ La = (long)a; //fprintf(stdout,("================== Vranlc ================"); //fprintf(stdout,("Before Loop: Lx = " + Lx + ", La = " + La); - LLx = Lx; - for (i=0; i< n; i++) { - Lx = Lx*La & i246m1 ; - LLx = Lx; - y[i] = d2m46 * (double)LLx; - /* - if(i == 0) { - fprintf(stdout,("After loop 0:"); - fprintf(stdout,("Lx = " + Lx + ", La = " + La); - fprintf(stdout,("d2m46 = " + d2m46); - fprintf(stdout,("LLX(Lx) = " + LLX.doubleValue()); - fprintf(stdout,("Y[0]" + y[0]); - } - */ - } + LLx = Lx; + for (i=0; i< n; i++) { + Lx = Lx*La & i246m1 ; + LLx = Lx; + y[i] = d2m46 * (double)LLx; + /* + if(i == 0) { + fprintf(stdout,("After loop 0:"); + fprintf(stdout,("Lx = " + Lx + ", La = " + La); + fprintf(stdout,("d2m46 = " + d2m46); + fprintf(stdout,("LLX(Lx) = " + LLX.doubleValue()); + fprintf(stdout,("Y[0]" + y[0]); + } + */ + } x = (double)LLx; /* @@ -100,77 +100,77 @@ //-------------- the core (unique function) ----------- void doTest(int argc, char **argv) { - double dum[3] = {1.,1.,1.}; - double x1, x2, sx, sy, tm, an, tt, gc; - double Mops; - double epsilon=1.0E-8, a = 1220703125., s=271828183.; - double t1, t2, t3, t4; - double sx_verify_value, sy_verify_value, sx_err, sy_err; + double dum[3] = {1.,1.,1.}; + double x1, x2, sx, sy, tm, an, tt, gc; + double Mops; + double epsilon=1.0E-8, a = 1220703125., s=271828183.; + double t1, t2, t3, t4; + double sx_verify_value, sy_verify_value, sx_err, sy_err; #include "npbparams.h" - int mk=16, - // --> set by make : in npbparams.h - //m=28, // for CLASS=A - //m=30, // for CLASS=B - //npm=2, // NPROCS - mm = m-mk, - nn = (int)(pow(2,mm)), - nk = (int)(pow(2,mk)), - nq=10, - np, - node, - no_nodes, - i, - ik, - kk, - l, - k, nit, no_large_nodes, - np_add, k_offset, j; - int me, nprocs, root=0, dp_type; - int verified, - timers_enabled=true; - char size[500]; // mind the size of the string to represent a big number - - //Use in randlc.. - int KS = 0; - double R23, R46, T23, T46; - - double *qq = (double *) malloc (10000*sizeof(double)); - double *start = (double *) malloc (64*sizeof(double)); - double *elapsed = (double *) malloc (64*sizeof(double)); - - double *x = (double *) malloc (2*nk*sizeof(double)); - double *q = (double *) malloc (nq*sizeof(double)); + int mk=16, + // --> set by make : in npbparams.h + //m=28, // for CLASS=A + //m=30, // for CLASS=B + //npm=2, // NPROCS + mm = m-mk, + nn = (int)(pow(2,mm)), + nk = (int)(pow(2,mk)), + nq=10, + np, + node, + no_nodes, + i, + ik, + kk, + l, + k, nit, no_large_nodes, + np_add, k_offset, j; + int me, nprocs, root=0, dp_type; + int verified, + timers_enabled=true; + char size[500]; // mind the size of the string to represent a big number + + //Use in randlc.. + int KS = 0; + double R23, R46, T23, T46; + + double *qq = (double *) malloc (10000*sizeof(double)); + double *start = (double *) malloc (64*sizeof(double)); + double *elapsed = (double *) malloc (64*sizeof(double)); + + double *x = (double *) malloc (2*nk*sizeof(double)); + double *q = (double *) malloc (nq*sizeof(double)); TRACE_smpi_set_category ("start"); - MPI_Init( &argc, &argv ); - MPI_Comm_size( MPI_COMM_WORLD, &no_nodes); - MPI_Comm_rank( MPI_COMM_WORLD, &node); + MPI_Init( &argc, &argv ); + MPI_Comm_size( MPI_COMM_WORLD, &no_nodes); + MPI_Comm_rank( MPI_COMM_WORLD, &node); #ifdef USE_MPE MPE_Init_log(); #endif - root = 0; - if (node == root ) { - - /* Because the size of the problem is too large to store in a 32-bit - * integer for some classes, we put it into a string (for printing). - * Have to strip off the decimal point put in there by the floating - * point print statement (internal file) - */ - fprintf(stdout," NAS Parallel Benchmarks 3.2 -- EP Benchmark"); - sprintf(size,"%d",pow(2,m+1)); - //size = size.replace('.', ' '); - fprintf(stdout," Number of random numbers generated: %s\n",size); - fprintf(stdout," Number of active processes: %d\n",no_nodes); - - } - verified = false; - - /* c Compute the number of "batches" of random number pairs generated - c per processor. Adjust if the number of processors does not evenly - c divide the total number + root = 0; + if (node == root ) { + + /* Because the size of the problem is too large to store in a 32-bit + * integer for some classes, we put it into a string (for printing). + * Have to strip off the decimal point put in there by the floating + * point print statement (internal file) + */ + fprintf(stdout," NAS Parallel Benchmarks 3.2 -- EP Benchmark"); + sprintf(size,"%d",pow(2,m+1)); + //size = size.replace('.', ' '); + fprintf(stdout," Number of random numbers generated: %s\n",size); + fprintf(stdout," Number of active processes: %d\n",no_nodes); + + } + verified = false; + + /* c Compute the number of "batches" of random number pairs generated + c per processor. Adjust if the number of processors does not evenly + c divide the total number */ np = nn / no_nodes; @@ -191,22 +191,22 @@ c sure these initializations cannot be eliminated as dead code. */ - //call vranlc(0, dum[1], dum[2], dum[3]); - // Array indexes start at 1 in Fortran, 0 in Java - vranlc(0, dum[0], dum[1], &(dum[2])); - - dum[0] = randlc(&(dum[1]),&(dum[2])); - ///////////////////////////////// - for (i=0;i<2*nk;i++) { - x[i] = -1e99; - } - Mops = log(sqrt(abs(1))); - - /* - c--------------------------------------------------------------------- - c Synchronize before placing time stamp - c--------------------------------------------------------------------- - */ + //call vranlc(0, dum[1], dum[2], dum[3]); + // Array indexes start at 1 in Fortran, 0 in Java + vranlc(0, dum[0], dum[1], &(dum[2])); + + dum[0] = randlc(&(dum[1]),&(dum[2])); + ///////////////////////////////// + for (i=0;i<2*nk;i++) { + x[i] = -1e99; + } + Mops = log(sqrt(abs(1))); + + /* + c--------------------------------------------------------------------- + c Synchronize before placing time stamp + c--------------------------------------------------------------------- + */ MPI_Barrier( MPI_COMM_WORLD ); @@ -218,21 +218,21 @@ timer_start(&(start[1])); t1 = a; - //fprintf(stdout,("(ep.f:160) t1 = " + t1); + //fprintf(stdout,("(ep.f:160) t1 = " + t1); t1 = vranlc(0, t1, a, x); - //fprintf(stdout,("(ep.f:161) t1 = " + t1); - + //fprintf(stdout,("(ep.f:161) t1 = " + t1); + /* c Compute AN = A ^ (2 * NK) (mod 2^46). */ t1 = a; - //fprintf(stdout,("(ep.f:165) t1 = " + t1); + //fprintf(stdout,("(ep.f:165) t1 = " + t1); for (i=1; i <= mk+1; i++) { t2 = randlc(&t1, &t1); - //fprintf(stdout,("(ep.f:168)[loop i=" + i +"] t1 = " + t1); + //fprintf(stdout,("(ep.f:168)[loop i=" + i +"] t1 = " + t1); } an = t1; - //fprintf(stdout,("(ep.f:172) s = " + s); + //fprintf(stdout,("(ep.f:172) s = " + s); tt = s; gc = 0.; sx = 0.; @@ -264,7 +264,7 @@ for (i=1;i<=100 && !stop;i++) { ik = kk / 2; - //fprintf(stdout,("(ep.f:199) ik = " +ik+", kk = " + kk); + //fprintf(stdout,("(ep.f:199) ik = " +ik+", kk = " + kk); if (2 * ik != kk) { t3 = randlc(&t1, &t2); //fprintf(stdout,("(ep.f:200) t1= " +t1 ); @@ -279,34 +279,34 @@ // Compute uniform pseudorandom numbers. //if (timers_enabled) timer_start(3); - timer_start(&(start[3])); + timer_start(&(start[3])); //call vranlc(2 * nk, t1, a, x) --> t1 and y are modified - //fprintf(stdout,">>>>>>>>>>>Before vranlc(l.210)<<<<<<<<<<<<<"); - //fprintf(stdout,"2*nk = " + (2*nk)); - //fprintf(stdout,"t1 = " + t1); - //fprintf(stdout,"a = " + a); - //fprintf(stdout,"x[0] = " + x[0]); - //fprintf(stdout,">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); + //fprintf(stdout,">>>>>>>>>>>Before vranlc(l.210)<<<<<<<<<<<<<"); + //fprintf(stdout,"2*nk = " + (2*nk)); + //fprintf(stdout,"t1 = " + t1); + //fprintf(stdout,"a = " + a); + //fprintf(stdout,"x[0] = " + x[0]); + //fprintf(stdout,">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); - t1 = vranlc(2 * nk, t1, a, x); - - //fprintf(stdout,(">>>>>>>>>>>After Enter vranlc (l.210)<<<<<<"); - //fprintf(stdout,("2*nk = " + (2*nk)); - //fprintf(stdout,("t1 = " + t1); - //fprintf(stdout,("a = " + a); - //fprintf(stdout,("x[0] = " + x[0]); - //fprintf(stdout,(">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); + t1 = vranlc(2 * nk, t1, a, x); + + //fprintf(stdout,(">>>>>>>>>>>After Enter vranlc (l.210)<<<<<<"); + //fprintf(stdout,("2*nk = " + (2*nk)); + //fprintf(stdout,("t1 = " + t1); + //fprintf(stdout,("a = " + a); + //fprintf(stdout,("x[0] = " + x[0]); + //fprintf(stdout,(">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); //if (timers_enabled) timer_stop(3); - timer_stop(3,elapsed,start); + timer_stop(3,elapsed,start); /* Compute Gaussian deviates by acceptance-rejection method and * tally counts in concentric square annuli. This loop is not * vectorizable. */ //if (timers_enabled) timer_start(2); - timer_start(&(start[2])); + timer_start(&(start[2])); for(i=1; i<=nk;i++) { x1 = 2. * x[2*i-2] -1.0; x2 = 2. * x[2*i-1] - 1.0; @@ -320,8 +320,8 @@ sx = sx + t3; sy = sy + t4; } - /* - if(i == 1) { + /* + if(i == 1) { fprintf(stdout,"x1 = " + x1); fprintf(stdout,"x2 = " + x2); fprintf(stdout,"t1 = " + t1); @@ -332,111 +332,111 @@ fprintf(stdout,"q[l] = " + q[l]); fprintf(stdout,"sx = " + sx); fprintf(stdout,"sy = " + sy); - } - */ + } + */ } //if (timers_enabled) timer_stop(2); - timer_stop(2,elapsed,start); + timer_stop(2,elapsed,start); } TRACE_smpi_set_category ("finalize"); //int MPI_Allreduce(void *sbuf, void *rbuf, int count, MPI_Datatype dtype, MPI_Op op, MPI_Comm comm) - MPI_Allreduce(&sx, x, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); - sx = x[0]; //FIXME : x[0] or x[1] => x[0] because fortran starts with 1 + MPI_Allreduce(&sx, x, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); + sx = x[0]; //FIXME : x[0] or x[1] => x[0] because fortran starts with 1 MPI_Allreduce(&sy, x, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); sy = x[0]; MPI_Allreduce(q, x, nq, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); for(i = 0; i < nq; i++) { - q[i] = x[i]; - } - for(i = 0; i < nq; i++) { - gc += q[i]; - } + q[i] = x[i]; + } + for(i = 0; i < nq; i++) { + gc += q[i]; + } - timer_stop(1,elapsed,start); + timer_stop(1,elapsed,start); tm = timer_read(1,elapsed); - MPI_Allreduce(&tm, x, 1, MPI_DOUBLE, MPI_MAX, MPI_COMM_WORLD); - tm = x[0]; - - if(node == root) { - nit = 0; - verified = true; - - if(m == 24) { - sx_verify_value = -3.247834652034740E3; - sy_verify_value = -6.958407078382297E3; - } else if(m == 25) { - sx_verify_value = -2.863319731645753E3; - sy_verify_value = -6.320053679109499E3; - } else if(m == 28) { - sx_verify_value = -4.295875165629892E3; - sy_verify_value = -1.580732573678431E4; - } else if(m == 30) { - sx_verify_value = 4.033815542441498E4; - sy_verify_value = -2.660669192809235E4; - } else if(m == 32) { - sx_verify_value = 4.764367927995374E4; - sy_verify_value = -8.084072988043731E4; - } else if(m == 36) { - sx_verify_value = 1.982481200946593E5; - sy_verify_value = -1.020596636361769E5; - } else { - verified = false; - } - - /* - fprintf(stdout,("sx = " + sx); - fprintf(stdout,("sx_verify = " + sx_verify_value); - fprintf(stdout,("sy = " + sy); - fprintf(stdout,("sy_verify = " + sy_verify_value); - */ - if(verified) { - sx_err = abs((sx - sx_verify_value)/sx_verify_value); - sy_err = abs((sy - sy_verify_value)/sy_verify_value); - /* - fprintf(stdout,("sx_err = " + sx_err); - fprintf(stdout,("sy_err = " + sx_err); - fprintf(stdout,("epsilon= " + epsilon); - */ - verified = ((sx_err < epsilon) && (sy_err < epsilon)); - } - - Mops = (pow(2.0, m+1))/tm/1000; - - fprintf(stdout,"EP Benchmark Results:\n"); - fprintf(stdout,"CPU Time=%d\n",tm); - fprintf(stdout,"N = 2^%d\n",m); - fprintf(stdout,"No. Gaussain Pairs =%d\n",gc); - fprintf(stdout,"Sum = %lf %ld\n",sx,sy); - fprintf(stdout,"Count:"); - for(i = 0; i < nq; i++) { - fprintf(stdout,"%d\t %ld\n",i,q[i]); - } - - /* - print_results("EP", _class, m+1, 0, 0, nit, npm, no_nodes, tm, Mops, - "Random numbers generated", verified, npbversion, - compiletime, cs1, cs2, cs3, cs4, cs5, cs6, cs7) */ - fprintf(stdout,"\nEP Benchmark Completed\n"); + MPI_Allreduce(&tm, x, 1, MPI_DOUBLE, MPI_MAX, MPI_COMM_WORLD); + tm = x[0]; + + if(node == root) { + nit = 0; + verified = true; + + if(m == 24) { + sx_verify_value = -3.247834652034740E3; + sy_verify_value = -6.958407078382297E3; + } else if(m == 25) { + sx_verify_value = -2.863319731645753E3; + sy_verify_value = -6.320053679109499E3; + } else if(m == 28) { + sx_verify_value = -4.295875165629892E3; + sy_verify_value = -1.580732573678431E4; + } else if(m == 30) { + sx_verify_value = 4.033815542441498E4; + sy_verify_value = -2.660669192809235E4; + } else if(m == 32) { + sx_verify_value = 4.764367927995374E4; + sy_verify_value = -8.084072988043731E4; + } else if(m == 36) { + sx_verify_value = 1.982481200946593E5; + sy_verify_value = -1.020596636361769E5; + } else { + verified = false; + } + + /* + fprintf(stdout,("sx = " + sx); + fprintf(stdout,("sx_verify = " + sx_verify_value); + fprintf(stdout,("sy = " + sy); + fprintf(stdout,("sy_verify = " + sy_verify_value); + */ + if(verified) { + sx_err = abs((sx - sx_verify_value)/sx_verify_value); + sy_err = abs((sy - sy_verify_value)/sy_verify_value); + /* + fprintf(stdout,("sx_err = " + sx_err); + fprintf(stdout,("sy_err = " + sx_err); + fprintf(stdout,("epsilon= " + epsilon); + */ + verified = ((sx_err < epsilon) && (sy_err < epsilon)); + } + + Mops = (pow(2.0, m+1))/tm/1000; + + fprintf(stdout,"EP Benchmark Results:\n"); + fprintf(stdout,"CPU Time=%d\n",tm); + fprintf(stdout,"N = 2^%d\n",m); + fprintf(stdout,"No. Gaussain Pairs =%d\n",gc); + fprintf(stdout,"Sum = %lf %ld\n",sx,sy); + fprintf(stdout,"Count:"); + for(i = 0; i < nq; i++) { + fprintf(stdout,"%d\t %ld\n",i,q[i]); + } + + /* + print_results("EP", _class, m+1, 0, 0, nit, npm, no_nodes, tm, Mops, + "Random numbers generated", verified, npbversion, + compiletime, cs1, cs2, cs3, cs4, cs5, cs6, cs7) */ + fprintf(stdout,"\nEP Benchmark Completed\n"); fprintf(stdout,"Class = %s\n", _class); - fprintf(stdout,"Size = %s\n", size); - fprintf(stdout,"Iteration = %d\n", nit); - fprintf(stdout,"Time in seconds = %lf\n",(tm/1000)); - fprintf(stdout,"Total processes = %d\n",no_nodes); - fprintf(stdout,"Mops/s total = %lf\n",Mops); - fprintf(stdout,"Mops/s/process = %lf\n", Mops/no_nodes); - fprintf(stdout,"Operation type = Random number generated\n"); - if(verified) { - fprintf(stdout,"Verification = SUCCESSFUL\n"); - } else { - fprintf(stdout,"Verification = UNSUCCESSFUL\n"); - } - fprintf(stdout,"Total time: %lf\n",(timer_read(1,elapsed)/1000)); - fprintf(stdout,"Gaussian pairs: %lf\n",(timer_read(2,elapsed)/1000)); - fprintf(stdout,"Random numbers: %lf\n",(timer_read(3,elapsed)/1000)); - } + fprintf(stdout,"Size = %s\n", size); + fprintf(stdout,"Iteration = %d\n", nit); + fprintf(stdout,"Time in seconds = %lf\n",(tm/1000)); + fprintf(stdout,"Total processes = %d\n",no_nodes); + fprintf(stdout,"Mops/s total = %lf\n",Mops); + fprintf(stdout,"Mops/s/process = %lf\n", Mops/no_nodes); + fprintf(stdout,"Operation type = Random number generated\n"); + if(verified) { + fprintf(stdout,"Verification = SUCCESSFUL\n"); + } else { + fprintf(stdout,"Verification = UNSUCCESSFUL\n"); + } + fprintf(stdout,"Total time: %lf\n",(timer_read(1,elapsed)/1000)); + fprintf(stdout,"Gaussian pairs: %lf\n",(timer_read(2,elapsed)/1000)); + fprintf(stdout,"Random numbers: %lf\n",(timer_read(3,elapsed)/1000)); + } #ifdef USE_MPE MPE_Finish_log(argv[0]); #endif diff --git a/examples/smpi/NAS/EP-trace/randlc.c b/examples/smpi/NAS/EP-trace/randlc.c index 624b800df8..4de6c93b88 100644 --- a/examples/smpi/NAS/EP-trace/randlc.c +++ b/examples/smpi/NAS/EP-trace/randlc.c @@ -38,17 +38,17 @@ /************* portable random number generator ************/ /*****************************************************************/ -double randlc( double *X, double *A ) +double randlc( double *X, double *A ) { static int KS=0; - static double R23, R46, T23, T46; - double T1, T2, T3, T4; - double A1; - double A2; - double X1; - double X2; - double Z; - int i, j; + static double R23, R46, T23, T46; + double T1, T2, T3, T4; + double A1; + double A2; + double X1; + double X2; + double Z; + int i, j; if (KS == 0) { diff --git a/examples/smpi/NAS/EP/ep.c b/examples/smpi/NAS/EP/ep.c index 753fd431a3..9c18da4e8d 100644 --- a/examples/smpi/NAS/EP/ep.c +++ b/examples/smpi/NAS/EP/ep.c @@ -46,7 +46,7 @@ { int i; long i246m1=0x00003FFFFFFFFFFF; - long LLx, Lx, La; + long LLx, Lx, La; double d2m46; // This doesn't work, because the compiler does the calculation in 32 @@ -70,21 +70,21 @@ La = (long)a; //fprintf(stdout,("================== Vranlc ================"); //fprintf(stdout,("Before Loop: Lx = " + Lx + ", La = " + La); - LLx = Lx; - for (i=0; i< n; i++) { - Lx = Lx*La & i246m1 ; - LLx = Lx; - y[i] = d2m46 * (double)LLx; - /* - if(i == 0) { - fprintf(stdout,("After loop 0:"); - fprintf(stdout,("Lx = " + Lx + ", La = " + La); - fprintf(stdout,("d2m46 = " + d2m46); - fprintf(stdout,("LLX(Lx) = " + LLX.doubleValue()); - fprintf(stdout,("Y[0]" + y[0]); - } - */ - } + LLx = Lx; + for (i=0; i< n; i++) { + Lx = Lx*La & i246m1 ; + LLx = Lx; + y[i] = d2m46 * (double)LLx; + /* + if(i == 0) { + fprintf(stdout,("After loop 0:"); + fprintf(stdout,("Lx = " + Lx + ", La = " + La); + fprintf(stdout,("d2m46 = " + d2m46); + fprintf(stdout,("LLX(Lx) = " + LLX.doubleValue()); + fprintf(stdout,("Y[0]" + y[0]); + } + */ + } x = (double)LLx; /* @@ -98,75 +98,75 @@ //-------------- the core (unique function) ----------- void doTest(int argc, char **argv) { - double dum[3] = {1.,1.,1.}; - double x1, x2, sx, sy, tm, an, tt, gc; - double Mops; - double epsilon=1.0E-8, a = 1220703125., s=271828183.; - double t1, t2, t3, t4; - double sx_verify_value, sy_verify_value, sx_err, sy_err; + double dum[3] = {1.,1.,1.}; + double x1, x2, sx, sy, tm, an, tt, gc; + double Mops; + double epsilon=1.0E-8, a = 1220703125., s=271828183.; + double t1, t2, t3, t4; + double sx_verify_value, sy_verify_value, sx_err, sy_err; #include "npbparams.h" - int mk=16, - // --> set by make : in npbparams.h - //m=28, // for CLASS=A - //m=30, // for CLASS=B - //npm=2, // NPROCS - mm = m-mk, - nn = (int)(pow(2,mm)), - nk = (int)(pow(2,mk)), - nq=10, - np, - node, - no_nodes, - i, - ik, - kk, - l, - k, nit, no_large_nodes, - np_add, k_offset, j; - int me, nprocs, root=0, dp_type; - int verified, - timers_enabled=true; - char size[500]; // mind the size of the string to represent a big number - - //Use in randlc.. - int KS = 0; - double R23, R46, T23, T46; - - double *qq = (double *) malloc (10000*sizeof(double)); - double *start = (double *) malloc (64*sizeof(double)); - double *elapsed = (double *) malloc (64*sizeof(double)); - - double *x = (double *) malloc (2*nk*sizeof(double)); - double *q = (double *) malloc (nq*sizeof(double)); - - MPI_Init( &argc, &argv ); - MPI_Comm_size( MPI_COMM_WORLD, &no_nodes); - MPI_Comm_rank( MPI_COMM_WORLD, &node); + int mk=16, + // --> set by make : in npbparams.h + //m=28, // for CLASS=A + //m=30, // for CLASS=B + //npm=2, // NPROCS + mm = m-mk, + nn = (int)(pow(2,mm)), + nk = (int)(pow(2,mk)), + nq=10, + np, + node, + no_nodes, + i, + ik, + kk, + l, + k, nit, no_large_nodes, + np_add, k_offset, j; + int me, nprocs, root=0, dp_type; + int verified, + timers_enabled=true; + char size[500]; // mind the size of the string to represent a big number + + //Use in randlc.. + int KS = 0; + double R23, R46, T23, T46; + + double *qq = (double *) malloc (10000*sizeof(double)); + double *start = (double *) malloc (64*sizeof(double)); + double *elapsed = (double *) malloc (64*sizeof(double)); + + double *x = (double *) malloc (2*nk*sizeof(double)); + double *q = (double *) malloc (nq*sizeof(double)); + + MPI_Init( &argc, &argv ); + MPI_Comm_size( MPI_COMM_WORLD, &no_nodes); + MPI_Comm_rank( MPI_COMM_WORLD, &node); #ifdef USE_MPE MPE_Init_log(); #endif - root = 0; - if (node == root ) { - - /* Because the size of the problem is too large to store in a 32-bit - * integer for some classes, we put it into a string (for printing). - * Have to strip off the decimal point put in there by the floating - * point print statement (internal file) - */ - fprintf(stdout," NAS Parallel Benchmarks 3.2 -- EP Benchmark"); - sprintf(size,"%d",pow(2,m+1)); - //size = size.replace('.', ' '); - fprintf(stdout," Number of random numbers generated: %s\n",size); - fprintf(stdout," Number of active processes: %d\n",no_nodes); - - } - verified = false; - - /* c Compute the number of "batches" of random number pairs generated - c per processor. Adjust if the number of processors does not evenly - c divide the total number + root = 0; + if (node == root ) { + + /* Because the size of the problem is too large to store in a 32-bit + * integer for some classes, we put it into a string (for printing). + * Have to strip off the decimal point put in there by the floating + * point print statement (internal file) + */ + fprintf(stdout," NAS Parallel Benchmarks 3.2 -- EP Benchmark"); + sprintf(size,"%d",pow(2,m+1)); + //size = size.replace('.', ' '); + fprintf(stdout," Number of random numbers generated: %s\n",size); + fprintf(stdout," Number of active processes: %d\n",no_nodes); + + } + verified = false; + + /* c Compute the number of "batches" of random number pairs generated + c per processor. Adjust if the number of processors does not evenly + c divide the total number */ np = nn / no_nodes; @@ -187,22 +187,22 @@ c sure these initializations cannot be eliminated as dead code. */ - //call vranlc(0, dum[1], dum[2], dum[3]); - // Array indexes start at 1 in Fortran, 0 in Java - vranlc(0, dum[0], dum[1], &(dum[2])); - - dum[0] = randlc(&(dum[1]),&(dum[2])); - ///////////////////////////////// - for (i=0;i<2*nk;i++) { - x[i] = -1e99; - } - Mops = log(sqrt(abs(1))); - - /* - c--------------------------------------------------------------------- - c Synchronize before placing time stamp - c--------------------------------------------------------------------- - */ + //call vranlc(0, dum[1], dum[2], dum[3]); + // Array indexes start at 1 in Fortran, 0 in Java + vranlc(0, dum[0], dum[1], &(dum[2])); + + dum[0] = randlc(&(dum[1]),&(dum[2])); + ///////////////////////////////// + for (i=0;i<2*nk;i++) { + x[i] = -1e99; + } + Mops = log(sqrt(abs(1))); + + /* + c--------------------------------------------------------------------- + c Synchronize before placing time stamp + c--------------------------------------------------------------------- + */ MPI_Barrier( MPI_COMM_WORLD ); timer_clear(&(elapsed[1])); @@ -211,21 +211,21 @@ timer_start(&(start[1])); t1 = a; - //fprintf(stdout,("(ep.f:160) t1 = " + t1); + //fprintf(stdout,("(ep.f:160) t1 = " + t1); t1 = vranlc(0, t1, a, x); - //fprintf(stdout,("(ep.f:161) t1 = " + t1); - + //fprintf(stdout,("(ep.f:161) t1 = " + t1); + /* c Compute AN = A ^ (2 * NK) (mod 2^46). */ t1 = a; - //fprintf(stdout,("(ep.f:165) t1 = " + t1); + //fprintf(stdout,("(ep.f:165) t1 = " + t1); for (i=1; i <= mk+1; i++) { t2 = randlc(&t1, &t1); - //fprintf(stdout,("(ep.f:168)[loop i=" + i +"] t1 = " + t1); + //fprintf(stdout,("(ep.f:168)[loop i=" + i +"] t1 = " + t1); } an = t1; - //fprintf(stdout,("(ep.f:172) s = " + s); + //fprintf(stdout,("(ep.f:172) s = " + s); tt = s; gc = 0.; sx = 0.; @@ -257,7 +257,7 @@ for (i=1;i<=100 && !stop;i++) { ik = kk / 2; - //fprintf(stdout,("(ep.f:199) ik = " +ik+", kk = " + kk); + //fprintf(stdout,("(ep.f:199) ik = " +ik+", kk = " + kk); if (2 * ik != kk) { t3 = randlc(&t1, &t2); //fprintf(stdout,("(ep.f:200) t1= " +t1 ); @@ -272,34 +272,34 @@ // Compute uniform pseudorandom numbers. //if (timers_enabled) timer_start(3); - timer_start(&(start[3])); + timer_start(&(start[3])); //call vranlc(2 * nk, t1, a, x) --> t1 and y are modified - //fprintf(stdout,">>>>>>>>>>>Before vranlc(l.210)<<<<<<<<<<<<<"); - //fprintf(stdout,"2*nk = " + (2*nk)); - //fprintf(stdout,"t1 = " + t1); - //fprintf(stdout,"a = " + a); - //fprintf(stdout,"x[0] = " + x[0]); - //fprintf(stdout,">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); + //fprintf(stdout,">>>>>>>>>>>Before vranlc(l.210)<<<<<<<<<<<<<"); + //fprintf(stdout,"2*nk = " + (2*nk)); + //fprintf(stdout,"t1 = " + t1); + //fprintf(stdout,"a = " + a); + //fprintf(stdout,"x[0] = " + x[0]); + //fprintf(stdout,">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); - t1 = vranlc(2 * nk, t1, a, x); - - //fprintf(stdout,(">>>>>>>>>>>After Enter vranlc (l.210)<<<<<<"); - //fprintf(stdout,("2*nk = " + (2*nk)); - //fprintf(stdout,("t1 = " + t1); - //fprintf(stdout,("a = " + a); - //fprintf(stdout,("x[0] = " + x[0]); - //fprintf(stdout,(">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); + t1 = vranlc(2 * nk, t1, a, x); + + //fprintf(stdout,(">>>>>>>>>>>After Enter vranlc (l.210)<<<<<<"); + //fprintf(stdout,("2*nk = " + (2*nk)); + //fprintf(stdout,("t1 = " + t1); + //fprintf(stdout,("a = " + a); + //fprintf(stdout,("x[0] = " + x[0]); + //fprintf(stdout,(">>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<"); //if (timers_enabled) timer_stop(3); - timer_stop(3,elapsed,start); + timer_stop(3,elapsed,start); /* Compute Gaussian deviates by acceptance-rejection method and * tally counts in concentric square annuli. This loop is not * vectorizable. */ //if (timers_enabled) timer_start(2); - timer_start(&(start[2])); + timer_start(&(start[2])); for(i=1; i<=nk;i++) { x1 = 2. * x[2*i-2] -1.0; x2 = 2. * x[2*i-1] - 1.0; @@ -313,8 +313,8 @@ sx = sx + t3; sy = sy + t4; } - /* - if(i == 1) { + /* + if(i == 1) { fprintf(stdout,"x1 = " + x1); fprintf(stdout,"x2 = " + x2); fprintf(stdout,"t1 = " + t1); @@ -325,109 +325,109 @@ fprintf(stdout,"q[l] = " + q[l]); fprintf(stdout,"sx = " + sx); fprintf(stdout,"sy = " + sy); - } - */ + } + */ } //if (timers_enabled) timer_stop(2); - timer_stop(2,elapsed,start); + timer_stop(2,elapsed,start); } //int MPI_Allreduce(void *sbuf, void *rbuf, int count, MPI_Datatype dtype, MPI_Op op, MPI_Comm comm) - MPI_Allreduce(&sx, x, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); - sx = x[0]; //FIXME : x[0] or x[1] => x[0] because fortran starts with 1 + MPI_Allreduce(&sx, x, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); + sx = x[0]; //FIXME : x[0] or x[1] => x[0] because fortran starts with 1 MPI_Allreduce(&sy, x, 1, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); sy = x[0]; MPI_Allreduce(q, x, nq, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD); for(i = 0; i < nq; i++) { - q[i] = x[i]; - } - for(i = 0; i < nq; i++) { - gc += q[i]; - } + q[i] = x[i]; + } + for(i = 0; i < nq; i++) { + gc += q[i]; + } - timer_stop(1,elapsed,start); + timer_stop(1,elapsed,start); tm = timer_read(1,elapsed); - MPI_Allreduce(&tm, x, 1, MPI_DOUBLE, MPI_MAX, MPI_COMM_WORLD); - tm = x[0]; - - if(node == root) { - nit = 0; - verified = true; - - if(m == 24) { - sx_verify_value = -3.247834652034740E3; - sy_verify_value = -6.958407078382297E3; - } else if(m == 25) { - sx_verify_value = -2.863319731645753E3; - sy_verify_value = -6.320053679109499E3; - } else if(m == 28) { - sx_verify_value = -4.295875165629892E3; - sy_verify_value = -1.580732573678431E4; - } else if(m == 30) { - sx_verify_value = 4.033815542441498E4; - sy_verify_value = -2.660669192809235E4; - } else if(m == 32) { - sx_verify_value = 4.764367927995374E4; - sy_verify_value = -8.084072988043731E4; - } else if(m == 36) { - sx_verify_value = 1.982481200946593E5; - sy_verify_value = -1.020596636361769E5; - } else { - verified = false; - } - - /* - fprintf(stdout,("sx = " + sx); - fprintf(stdout,("sx_verify = " + sx_verify_value); - fprintf(stdout,("sy = " + sy); - fprintf(stdout,("sy_verify = " + sy_verify_value); - */ - if(verified) { - sx_err = abs((sx - sx_verify_value)/sx_verify_value); - sy_err = abs((sy - sy_verify_value)/sy_verify_value); - /* - fprintf(stdout,("sx_err = " + sx_err); - fprintf(stdout,("sy_err = " + sx_err); - fprintf(stdout,("epsilon= " + epsilon); - */ - verified = ((sx_err < epsilon) && (sy_err < epsilon)); - } - - Mops = (pow(2.0, m+1))/tm/1000; - - fprintf(stdout,"EP Benchmark Results:\n"); - fprintf(stdout,"CPU Time=%d\n",tm); - fprintf(stdout,"N = 2^%d\n",m); - fprintf(stdout,"No. Gaussain Pairs =%d\n",gc); - fprintf(stdout,"Sum = %lf %ld\n",sx,sy); - fprintf(stdout,"Count:"); - for(i = 0; i < nq; i++) { - fprintf(stdout,"%d\t %ld\n",i,q[i]); - } - - /* - print_results("EP", _class, m+1, 0, 0, nit, npm, no_nodes, tm, Mops, - "Random numbers generated", verified, npbversion, - compiletime, cs1, cs2, cs3, cs4, cs5, cs6, cs7) */ - fprintf(stdout,"\nEP Benchmark Completed\n"); + MPI_Allreduce(&tm, x, 1, MPI_DOUBLE, MPI_MAX, MPI_COMM_WORLD); + tm = x[0]; + + if(node == root) { + nit = 0; + verified = true; + + if(m == 24) { + sx_verify_value = -3.247834652034740E3; + sy_verify_value = -6.958407078382297E3; + } else if(m == 25) { + sx_verify_value = -2.863319731645753E3; + sy_verify_value = -6.320053679109499E3; + } else if(m == 28) { + sx_verify_value = -4.295875165629892E3; + sy_verify_value = -1.580732573678431E4; + } else if(m == 30) { + sx_verify_value = 4.033815542441498E4; + sy_verify_value = -2.660669192809235E4; + } else if(m == 32) { + sx_verify_value = 4.764367927995374E4; + sy_verify_value = -8.084072988043731E4; + } else if(m == 36) { + sx_verify_value = 1.982481200946593E5; + sy_verify_value = -1.020596636361769E5; + } else { + verified = false; + } + + /* + fprintf(stdout,("sx = " + sx); + fprintf(stdout,("sx_verify = " + sx_verify_value); + fprintf(stdout,("sy = " + sy); + fprintf(stdout,("sy_verify = " + sy_verify_value); + */ + if(verified) { + sx_err = abs((sx - sx_verify_value)/sx_verify_value); + sy_err = abs((sy - sy_verify_value)/sy_verify_value); + /* + fprintf(stdout,("sx_err = " + sx_err); + fprintf(stdout,("sy_err = " + sx_err); + fprintf(stdout,("epsilon= " + epsilon); + */ + verified = ((sx_err < epsilon) && (sy_err < epsilon)); + } + + Mops = (pow(2.0, m+1))/tm/1000; + + fprintf(stdout,"EP Benchmark Results:\n"); + fprintf(stdout,"CPU Time=%d\n",tm); + fprintf(stdout,"N = 2^%d\n",m); + fprintf(stdout,"No. Gaussain Pairs =%d\n",gc); + fprintf(stdout,"Sum = %lf %ld\n",sx,sy); + fprintf(stdout,"Count:"); + for(i = 0; i < nq; i++) { + fprintf(stdout,"%d\t %ld\n",i,q[i]); + } + + /* + print_results("EP", _class, m+1, 0, 0, nit, npm, no_nodes, tm, Mops, + "Random numbers generated", verified, npbversion, + compiletime, cs1, cs2, cs3, cs4, cs5, cs6, cs7) */ + fprintf(stdout,"\nEP Benchmark Completed\n"); fprintf(stdout,"Class = %s\n", _class); - fprintf(stdout,"Size = %s\n", size); - fprintf(stdout,"Iteration = %d\n", nit); - fprintf(stdout,"Time in seconds = %lf\n",(tm/1000)); - fprintf(stdout,"Total processes = %d\n",no_nodes); - fprintf(stdout,"Mops/s total = %lf\n",Mops); - fprintf(stdout,"Mops/s/process = %lf\n", Mops/no_nodes); - fprintf(stdout,"Operation type = Random number generated\n"); - if(verified) { - fprintf(stdout,"Verification = SUCCESSFUL\n"); - } else { - fprintf(stdout,"Verification = UNSUCCESSFUL\n"); - } - fprintf(stdout,"Total time: %lf\n",(timer_read(1,elapsed)/1000)); - fprintf(stdout,"Gaussian pairs: %lf\n",(timer_read(2,elapsed)/1000)); - fprintf(stdout,"Random numbers: %lf\n",(timer_read(3,elapsed)/1000)); - } + fprintf(stdout,"Size = %s\n", size); + fprintf(stdout,"Iteration = %d\n", nit); + fprintf(stdout,"Time in seconds = %lf\n",(tm/1000)); + fprintf(stdout,"Total processes = %d\n",no_nodes); + fprintf(stdout,"Mops/s total = %lf\n",Mops); + fprintf(stdout,"Mops/s/process = %lf\n", Mops/no_nodes); + fprintf(stdout,"Operation type = Random number generated\n"); + if(verified) { + fprintf(stdout,"Verification = SUCCESSFUL\n"); + } else { + fprintf(stdout,"Verification = UNSUCCESSFUL\n"); + } + fprintf(stdout,"Total time: %lf\n",(timer_read(1,elapsed)/1000)); + fprintf(stdout,"Gaussian pairs: %lf\n",(timer_read(2,elapsed)/1000)); + fprintf(stdout,"Random numbers: %lf\n",(timer_read(3,elapsed)/1000)); + } #ifdef USE_MPE MPE_Finish_log(argv[0]); #endif diff --git a/examples/smpi/NAS/EP/randlc.c b/examples/smpi/NAS/EP/randlc.c index 624b800df8..4de6c93b88 100644 --- a/examples/smpi/NAS/EP/randlc.c +++ b/examples/smpi/NAS/EP/randlc.c @@ -38,17 +38,17 @@ /************* portable random number generator ************/ /*****************************************************************/ -double randlc( double *X, double *A ) +double randlc( double *X, double *A ) { static int KS=0; - static double R23, R46, T23, T46; - double T1, T2, T3, T4; - double A1; - double A2; - double X1; - double X2; - double Z; - int i, j; + static double R23, R46, T23, T46; + double T1, T2, T3, T4; + double A1; + double A2; + double X1; + double X2; + double Z; + int i, j; if (KS == 0) { diff --git a/examples/smpi/NAS/IS-trace/is-trace.c b/examples/smpi/NAS/IS-trace/is-trace.c index 30aa5f7617..645038c2b7 100644 --- a/examples/smpi/NAS/IS-trace/is-trace.c +++ b/examples/smpi/NAS/IS-trace/is-trace.c @@ -259,7 +259,7 @@ const INT_TYPE2 /***********************/ /* function prototypes */ /***********************/ -double randlc( double *X, double *A ); +double randlc( double *X, double *A ); void full_verify( global_data* gd ); @@ -273,7 +273,7 @@ void c_print_results( char *name, int nprocs_total, double t, double mops, - char *optype, + char *optype, int passed_verification, char *npbversion, char *compiletime, @@ -345,17 +345,17 @@ double timer_read(global_data* gd, int n ) { /************* portable random number generator ************/ /*****************************************************************/ -double randlc( double *X, double *A ) +double randlc( double *X, double *A ) { static int KS=0; - static double R23, R46, T23, T46; - double T1, T2, T3, T4; - double A1; - double A2; - double X1; - double X2; - double Z; - int i, j; + static double R23, R46, T23, T46; + double T1, T2, T3, T4; + double A1; + double A2; + double X1; + double X2; + double Z; + int i, j; if (KS == 0) { @@ -472,22 +472,22 @@ double find_my_seed( int kn, /* my processor rank, 0<=kn<=num procs */ /************* C R E A T E _ S E Q ************/ /*****************************************************************/ -void create_seq( global_data* gd, double seed, double a ) +void create_seq( global_data* gd, double seed, double a ) { - double x; - int i, k; + double x; + int i, k; k = MAX_KEY/4; - for (i=0; ikey_array[i] = k*x; - } + } } @@ -825,12 +825,12 @@ void rank( global_data* gd, int iteration ) break; case 'A': if( i <= 2 ) - { + { if( key_rank != gd->test_rank_array[i]+(iteration-1) ) failed = 1; else gd->passed_verification++; - } + } else { if( key_rank != gd->test_rank_array[i]-(iteration-1) ) @@ -841,12 +841,12 @@ void rank( global_data* gd, int iteration ) break; case 'B': if( i == 1 || i == 2 || i == 4 ) - { + { if( key_rank != gd->test_rank_array[i]+iteration ) failed = 1; else gd->passed_verification++; - } + } else { if( key_rank != gd->test_rank_array[i]-iteration ) @@ -857,12 +857,12 @@ void rank( global_data* gd, int iteration ) break; case 'C': if( i <= 2 ) - { + { if( key_rank != gd->test_rank_array[i]+iteration ) failed = 1; else gd->passed_verification++; - } + } else { if( key_rank != gd->test_rank_array[i]-iteration ) @@ -873,12 +873,12 @@ void rank( global_data* gd, int iteration ) break; case 'D': if( i < 2 ) - { + { if( key_rank != gd->test_rank_array[i]+iteration ) failed = 1; else gd->passed_verification++; - } + } else { if( key_rank != gd->test_rank_array[i]-iteration ) diff --git a/examples/smpi/NAS/IS/is.c b/examples/smpi/NAS/IS/is.c index a83d998704..d617726937 100644 --- a/examples/smpi/NAS/IS/is.c +++ b/examples/smpi/NAS/IS/is.c @@ -257,7 +257,7 @@ const INT_TYPE2 /***********************/ /* function prototypes */ /***********************/ -double randlc( double *X, double *A ); +double randlc( double *X, double *A ); void full_verify( global_data* gd ); @@ -271,7 +271,7 @@ void c_print_results( char *name, int nprocs_total, double t, double mops, - char *optype, + char *optype, int passed_verification, char *npbversion, char *compiletime, @@ -343,17 +343,17 @@ double timer_read(global_data* gd, int n ) { /************* portable random number generator ************/ /*****************************************************************/ -double randlc( double *X, double *A ) +double randlc( double *X, double *A ) { static int KS=0; - static double R23, R46, T23, T46; - double T1, T2, T3, T4; - double A1; - double A2; - double X1; - double X2; - double Z; - int i, j; + static double R23, R46, T23, T46; + double T1, T2, T3, T4; + double A1; + double A2; + double X1; + double X2; + double Z; + int i, j; if (KS == 0) { @@ -470,22 +470,22 @@ double find_my_seed( int kn, /* my processor rank, 0<=kn<=num procs */ /************* C R E A T E _ S E Q ************/ /*****************************************************************/ -void create_seq( global_data* gd, double seed, double a ) +void create_seq( global_data* gd, double seed, double a ) { - double x; - int i, k; + double x; + int i, k; k = MAX_KEY/4; - for (i=0; ikey_array[i] = k*x; - } + } } @@ -823,12 +823,12 @@ void rank( global_data* gd, int iteration ) break; case 'A': if( i <= 2 ) - { + { if( key_rank != gd->test_rank_array[i]+(iteration-1) ) failed = 1; else gd->passed_verification++; - } + } else { if( key_rank != gd->test_rank_array[i]-(iteration-1) ) @@ -839,12 +839,12 @@ void rank( global_data* gd, int iteration ) break; case 'B': if( i == 1 || i == 2 || i == 4 ) - { + { if( key_rank != gd->test_rank_array[i]+iteration ) failed = 1; else gd->passed_verification++; - } + } else { if( key_rank != gd->test_rank_array[i]-iteration ) @@ -855,12 +855,12 @@ void rank( global_data* gd, int iteration ) break; case 'C': if( i <= 2 ) - { + { if( key_rank != gd->test_rank_array[i]+iteration ) failed = 1; else gd->passed_verification++; - } + } else { if( key_rank != gd->test_rank_array[i]-iteration ) @@ -871,12 +871,12 @@ void rank( global_data* gd, int iteration ) break; case 'D': if( i < 2 ) - { + { if( key_rank != gd->test_rank_array[i]+iteration ) failed = 1; else gd->passed_verification++; - } + } else { if( key_rank != gd->test_rank_array[i]-iteration ) diff --git a/examples/smpi/NAS/common/c_print_results.c b/examples/smpi/NAS/common/c_print_results.c index d7417fba15..14a9d880d8 100644 --- a/examples/smpi/NAS/common/c_print_results.c +++ b/examples/smpi/NAS/common/c_print_results.c @@ -14,7 +14,7 @@ void c_print_results( char *name, int nprocs_total, double t, double mops, - char *optype, + char *optype, int passed_verification, char *npbversion, char *compiletime, diff --git a/examples/smpi/NAS/common/randdp.c b/examples/smpi/NAS/common/randdp.c index 676624795d..03901354c3 100644 --- a/examples/smpi/NAS/common/randdp.c +++ b/examples/smpi/NAS/common/randdp.c @@ -2,19 +2,19 @@ // This function is C verson of random number generator randdp.f //--------------------------------------------------------------------- -double randlc(X, A) +double randlc(X, A) double *X; double *A; { static int KS=0; - static double R23, R46, T23, T46; - double T1, T2, T3, T4; - double A1; - double A2; - double X1; - double X2; - double Z; - int i, j; + static double R23, R46, T23, T46; + double T1, T2, T3, T4; + double A1; + double A2; + double X1; + double X2; + double Z; + int i, j; if (KS == 0) { diff --git a/examples/smpi/NAS/sys/setparams.c b/examples/smpi/NAS/sys/setparams.c index 9a4fba590c..70fca1cffc 100644 --- a/examples/smpi/NAS/sys/setparams.c +++ b/examples/smpi/NAS/sys/setparams.c @@ -66,7 +66,7 @@ int fortran_rec_size = 4; #endif void get_info(int argc, char *argv[], int *typep, int *nprocsp, char *classp, - int* subtypep); + int* subtypep); void check_info(int type, int nprocs, char class); void read_info(int type, int *nprocsp, char *classp, int *subtypep); void write_info(int type, int nprocs, char class, int subtype); @@ -105,7 +105,7 @@ int main(int argc, char *argv[]) if (class != 'U') { #ifdef VERBOSE printf("setparams: For benchmark %s: number of processors = %d class = %c\n", - argv[1], nprocs, class); + argv[1], nprocs, class); #endif check_info(type, nprocs, class); } @@ -116,7 +116,7 @@ int main(int argc, char *argv[]) if (class_old != 'X') { #ifdef VERBOSE printf("setparams: old settings: number of processors = %d class = %c\n", - nprocs_old, class_old); + nprocs_old, class_old); #endif } } else { @@ -130,7 +130,7 @@ int main(int argc, char *argv[]) if (class_old != 'X') { #ifdef VERBOSE printf("setparams: Previous settings were CLASS=%c NPROCS=%d\n", - class_old, nprocs_old); + class_old, nprocs_old); #endif } exit(1); /* exit on class==U */ @@ -157,7 +157,7 @@ int main(int argc, char *argv[]) */ void get_info(int argc, char *argv[], int *typep, int *nprocsp, char *classp, - int *subtypep) + int *subtypep) { if (argc < 4) { @@ -307,29 +307,29 @@ void read_info(int type, int *nprocsp, char *classp, int *subtypep) switch(type) { case BT: { - char subtype_str[100]; + char subtype_str[100]; nread = fscanf(fp, BT_DESC_LINE, nprocsp, classp, subtype_str); if (nread != 3) { if (nread != 2) { printf("setparams: Error parsing config file %s. Ignoring previous settings\n", FILENAME); goto abort; - } - *subtypep = 0; - break; + } + *subtypep = 0; + break; } if (!strcmp(subtype_str, "full") || !strcmp(subtype_str, "FULL")) { - *subtypep = FULL; + *subtypep = FULL; } else if (!strcmp(subtype_str, "simple") || - !strcmp(subtype_str, "SIMPLE")) { - *subtypep = SIMPLE; + !strcmp(subtype_str, "SIMPLE")) { + *subtypep = SIMPLE; } else if (!strcmp(subtype_str, "epio") || !strcmp(subtype_str, "EPIO")) { - *subtypep = EPIO; + *subtypep = EPIO; } else if (!strcmp(subtype_str, "fortran") || - !strcmp(subtype_str, "FORTRAN")) { - *subtypep = FORTRAN; + !strcmp(subtype_str, "FORTRAN")) { + *subtypep = FORTRAN; } else { - *subtypep = -1; - } + *subtypep = -1; + } break; } @@ -395,11 +395,11 @@ void write_info(int type, int nprocs, char class, int subtype) switch(type) { case BT: /* Write out the header */ - if (subtype == -1 || subtype == 0) { + if (subtype == -1 || subtype == 0) { fprintf(fp, DESC_LINE, nprocs, class); - } else { + } else { fprintf(fp, BT_DESC_LINE, nprocs, class, BT_TYPES[subtype]); - } + } /* Print out a warning so bozos don't mess with the file */ fprintf(fp, "\ c \n\ @@ -410,7 +410,7 @@ c in this directory. Do not modify it by hand.\n\ c \n"); break; - + case SP: case FT: case MG: @@ -429,7 +429,7 @@ c in this directory. Do not modify it by hand.\n\ c \n"); break; - case EP: + case EP: case IS: case DT: fprintf(fp, DEF_CLASS_LINE, class); @@ -510,7 +510,7 @@ void write_sp_info(FILE *fp, int nprocs, char class) } fprintf(fp, "%sinteger maxcells, problem_size, niter_default\n", FINDENT); fprintf(fp, "%sparameter (maxcells=%d, problem_size=%d, niter_default=%d)\n", - FINDENT, maxcells, problem_size, niter); + FINDENT, maxcells, problem_size, niter); fprintf(fp, "%sdouble precision dt_default\n", FINDENT); fprintf(fp, "%sparameter (dt_default = %s)\n", FINDENT, dt); } @@ -538,7 +538,7 @@ void write_bt_info(FILE *fp, int nprocs, char class, int io) wr_interval = 5; fprintf(fp, "%sinteger maxcells, problem_size, niter_default\n", FINDENT); fprintf(fp, "%sparameter (maxcells=%d, problem_size=%d, niter_default=%d)\n", - FINDENT, maxcells, problem_size, niter); + FINDENT, maxcells, problem_size, niter); fprintf(fp, "%sdouble precision dt_default\n", FINDENT); fprintf(fp, "%sparameter (dt_default = %s)\n", FINDENT, dt); fprintf(fp, "%sinteger wr_default\n", FINDENT); @@ -548,23 +548,23 @@ void write_bt_info(FILE *fp, int nprocs, char class, int io) if (io) { fprintf(fp, "%scharacter*(*) filenm\n", FINDENT); switch (io) { - case FULL: - fprintf(fp, "%sparameter (filenm = 'btio.full.out')\n", FINDENT); - break; - case SIMPLE: - fprintf(fp, "%sparameter (filenm = 'btio.simple.out')\n", FINDENT); - break; - case EPIO: - fprintf(fp, "%sparameter (filenm = 'btio.epio.out')\n", FINDENT); - break; - case FORTRAN: - fprintf(fp, "%sparameter (filenm = 'btio.fortran.out')\n", FINDENT); - fprintf(fp, "%sinteger fortran_rec_sz\n", FINDENT); - fprintf(fp, "%sparameter (fortran_rec_sz = %d)\n", - FINDENT, fortran_rec_size); - break; - default: - break; + case FULL: + fprintf(fp, "%sparameter (filenm = 'btio.full.out')\n", FINDENT); + break; + case SIMPLE: + fprintf(fp, "%sparameter (filenm = 'btio.simple.out')\n", FINDENT); + break; + case EPIO: + fprintf(fp, "%sparameter (filenm = 'btio.epio.out')\n", FINDENT); + break; + case FORTRAN: + fprintf(fp, "%sparameter (filenm = 'btio.fortran.out')\n", FINDENT); + fprintf(fp, "%sinteger fortran_rec_sz\n", FINDENT); + fprintf(fp, "%sparameter (fortran_rec_sz = %d)\n", + FINDENT, fortran_rec_size); + break; + default: + break; } } } @@ -607,17 +607,17 @@ void write_lu_info(FILE *fp, int nprocs, char class) fprintf(fp, "\nc full problem size\n"); fprintf(fp, "%sinteger isiz01, isiz02, isiz03\n", FINDENT); fprintf(fp, "%sparameter (isiz01=%d, isiz02=%d, isiz03=%d)\n", - FINDENT, problem_size, problem_size, problem_size); + FINDENT, problem_size, problem_size, problem_size); fprintf(fp, "\nc sub-domain array size\n"); fprintf(fp, "%sinteger isiz1, isiz2, isiz3\n", FINDENT); fprintf(fp, "%sparameter (isiz1=%d, isiz2=%d, isiz3=isiz03)\n", - FINDENT, isiz1, isiz2); + FINDENT, isiz1, isiz2); fprintf(fp, "\nc number of iterations and how often to print the norm\n"); fprintf(fp, "%sinteger itmax_default, inorm_default\n", FINDENT); fprintf(fp, "%sparameter (itmax_default=%d, inorm_default=%d)\n", - FINDENT, itmax, inorm); + FINDENT, itmax, inorm); fprintf(fp, "%sdouble precision dt_default\n", FINDENT); fprintf(fp, "%sparameter (dt_default = %s)\n", FINDENT, dt_default); @@ -657,15 +657,15 @@ void write_mg_info(FILE *fp, int nprocs, char class) fprintf(fp, "%sparameter (nprocs_compiled = %d)\n", FINDENT, nprocs); fprintf(fp, "%sinteger nx_default, ny_default, nz_default\n", FINDENT); fprintf(fp, "%sparameter (nx_default=%d, ny_default=%d, nz_default=%d)\n", - FINDENT, problem_size, problem_size, problem_size); + FINDENT, problem_size, problem_size, problem_size); fprintf(fp, "%sinteger nit_default, lm, lt_default\n", FINDENT); fprintf(fp, "%sparameter (nit_default=%d, lm = %d, lt_default=%d)\n", - FINDENT, nit, lm, lt_default); + FINDENT, nit, lm, lt_default); fprintf(fp, "%sinteger debug_default\n", FINDENT); fprintf(fp, "%sparameter (debug_default=%d)\n", FINDENT, 0); fprintf(fp, "%sinteger ndim1, ndim2, ndim3\n", FINDENT); fprintf(fp, "%sparameter (ndim1 = %d, ndim2 = %d, ndim3 = %d)\n", - FINDENT, ndim1, ndim2, ndim3); + FINDENT, ndim1, ndim2, ndim3); } @@ -966,7 +966,7 @@ setparams: File %s doesn't exist. To build the NAS benchmarks\n\ put_string(fp, "cs4", fmpi_inc); put_string(fp, "cs5", fflags); put_string(fp, "cs6", flinkflags); - put_string(fp, "cs7", randfile); + put_string(fp, "cs7", randfile); break; case IS: case EP: diff --git a/examples/smpi/dsend.c b/examples/smpi/dsend.c index 674aa819fe..c304c5da31 100644 --- a/examples/smpi/dsend.c +++ b/examples/smpi/dsend.c @@ -19,14 +19,14 @@ int main(int argc, char *argv[]) { MPI_Comm_rank(MPI_COMM_WORLD, &rank); if (rank==1) { - data=22; - MPI_Send(&data,1,MPI_INT,(rank+1)%2,666,MPI_COMM_WORLD); -// smpi_sleep(1000); + data=22; + MPI_Send(&data,1,MPI_INT,(rank+1)%2,666,MPI_COMM_WORLD); +// smpi_sleep(1000); } else { - MPI_Recv(&data,1,MPI_INT,-1,666,MPI_COMM_WORLD,NULL); - if (data !=22) { - printf("rank %d: Damn, data does not match (got %d)\n",rank, data); - } + MPI_Recv(&data,1,MPI_INT,-1,666,MPI_COMM_WORLD,NULL); + if (data !=22) { + printf("rank %d: Damn, data does not match (got %d)\n",rank, data); + } } XBT_INFO("rank %d: data exchanged", rank); diff --git a/examples/xbt/sem_basic.c b/examples/xbt/sem_basic.c index c840eb66f1..7b36a83986 100644 --- a/examples/xbt/sem_basic.c +++ b/examples/xbt/sem_basic.c @@ -16,7 +16,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(sem_basic, -#define THREAD_THREADS_MAX ((unsigned int)10) +#define THREAD_THREADS_MAX ((unsigned int)10) /* * the thread funtion. diff --git a/examples/xbt/sem_sched.c b/examples/xbt/sem_sched.c index 64a6bf1bb9..337d8c5371 100644 --- a/examples/xbt/sem_sched.c +++ b/examples/xbt/sem_sched.c @@ -17,14 +17,14 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(sem_sched, "Messages specific for this sem example"); #ifndef ENOBUFS -#define ENOBUFS 1024 +#define ENOBUFS 1024 #endif -#define CTX_MAX ((unsigned int)1000) +#define CTX_MAX ((unsigned int)1000) -#define MAX_ARG 30 -#define MAX_ARGS 10 +#define MAX_ARG 30 +#define MAX_ARGS 10 typedef int (*pfn_func_t) (int, char **); diff --git a/include/instr/jedule/jedule_events.h b/include/instr/jedule/jedule_events.h index 9ea2893209..1a665a8a28 100644 --- a/include/instr/jedule/jedule_events.h +++ b/include/instr/jedule/jedule_events.h @@ -19,14 +19,14 @@ #ifdef HAVE_JEDULE struct jed_event { - int event_id; - char *name; - double start_time; - double end_time; - char *type; - xbt_dynar_t resource_subsets; - xbt_dynar_t characteristics_list; /* just a list of names (strings) */ - xbt_dict_t info_hash; /* key/value pairs */ + int event_id; + char *name; + double start_time; + double end_time; + char *type; + xbt_dynar_t resource_subsets; + xbt_dynar_t characteristics_list; /* just a list of names (strings) */ + xbt_dict_t info_hash; /* key/value pairs */ }; typedef struct jed_event s_jed_event_t, *jed_event_t; diff --git a/include/instr/jedule/jedule_output.h b/include/instr/jedule/jedule_output.h index a735ff7e2f..1e3287a65e 100644 --- a/include/instr/jedule/jedule_output.h +++ b/include/instr/jedule/jedule_output.h @@ -26,7 +26,7 @@ void jedule_cleanup_output(void); void jedule_store_event(jed_event_t event); void write_jedule_output(FILE *file, jedule_t jedule, - xbt_dynar_t event_list, xbt_dict_t meta_info_dict); + xbt_dynar_t event_list, xbt_dict_t meta_info_dict); #endif diff --git a/include/instr/jedule/jedule_platform.h b/include/instr/jedule/jedule_platform.h index 8999e03d7b..282821eb02 100644 --- a/include/instr/jedule/jedule_platform.h +++ b/include/instr/jedule/jedule_platform.h @@ -16,17 +16,17 @@ #ifdef HAVE_JEDULE typedef struct jed_simgrid_container s_jed_simgrid_container_t, - *jed_simgrid_container_t; + *jed_simgrid_container_t; struct jed_simgrid_container { - char *name; - xbt_dynar_t container_children; - jed_simgrid_container_t parent; - xbt_dynar_t resource_list; - xbt_dict_t name2id; - int last_id; - int is_lowest; + char *name; + xbt_dynar_t container_children; + jed_simgrid_container_t parent; + xbt_dynar_t resource_list; + xbt_dict_t name2id; + int last_id; + int is_lowest; }; @@ -35,16 +35,16 @@ struct jed_simgrid_container { * */ struct jed_res_subset { - jed_simgrid_container_t parent; - int start_idx; // start idx in resource_list of container - int nres; // number of resources spanning starting at start_idx + jed_simgrid_container_t parent; + int start_idx; // start idx in resource_list of container + int nres; // number of resources spanning starting at start_idx }; typedef struct jed_res_subset s_jed_res_subset_t, *jed_res_subset_t; struct jedule_struct { - jed_simgrid_container_t root_container; - xbt_dict_t jedule_meta_info; + jed_simgrid_container_t root_container; + xbt_dict_t jedule_meta_info; }; typedef struct jedule_struct s_jedule_t, *jedule_t; @@ -61,10 +61,10 @@ void jedule_add_meta_info(jedule_t jedule, char *key, char *value); void jed_simgrid_create_container(jed_simgrid_container_t *container, char *name); void jed_simgrid_add_container(jed_simgrid_container_t parent, - jed_simgrid_container_t child); + jed_simgrid_container_t child); void jed_simgrid_add_resources(jed_simgrid_container_t parent, - xbt_dynar_t host_names); + xbt_dynar_t host_names); /** * @@ -75,18 +75,18 @@ void jed_simgrid_add_resources(jed_simgrid_container_t parent, * host_names is the list of host_names associated with an event */ void jed_simgrid_get_resource_selection_by_hosts(xbt_dynar_t subset_list, - xbt_dynar_t host_names); + xbt_dynar_t host_names); /* global: - hash host_id -> container + hash host_id -> container container: - hash host_id -> jed_host_id + hash host_id -> jed_host_id - list <- [ jed_host_ids ] - list <- sort( list ) - list_chunks <- chunk( list ) -> [ 1, 3-5, 7-9 ] + list <- [ jed_host_ids ] + list <- sort( list ) + list_chunks <- chunk( list ) -> [ 1, 3-5, 7-9 ] */ diff --git a/include/simdag/datatypes.h b/include/simdag/datatypes.h index e33ae0251a..0ce3b00e15 100644 --- a/include/simdag/datatypes.h +++ b/include/simdag/datatypes.h @@ -67,7 +67,7 @@ typedef enum { SD_NOT_SCHEDULED = 0, /**< @brief Initial state (not valid for SD_watch and SD_unwatch). */ SD_SCHEDULABLE = 0x0001, /**< @brief A task becomes SD_READY as soon as its dependencies are satisfied */ SD_SCHEDULED = 0x0002, /**< @brief A task becomes SD_SCHEDULED when you call function - SD_task_schedule. SD_simulate will execute it when it becomes SD_RUNNABLE. */ + SD_task_schedule. SD_simulate will execute it when it becomes SD_RUNNABLE. */ SD_RUNNABLE = 0x0004, /**< @brief A scheduled task becomes runnable is SD_simulate as soon as its dependencies are satisfied. */ SD_IN_FIFO = 0x0008, /**< @brief A runnable task can have to wait in a workstation fifo if the workstation is sequential */ SD_RUNNING = 0x0010, /**< @brief An SD_RUNNABLE or SD_IN_FIFO becomes SD_RUNNING when it is launched. */ diff --git a/include/simgrid/platf.h b/include/simgrid/platf.h index 3c40e0f4f0..ec41a07272 100644 --- a/include/simgrid/platf.h +++ b/include/simgrid/platf.h @@ -1,7 +1,6 @@ /* platf.h - Public interface to the SimGrid platforms */ -/* Copyright (c) 2004, 2005, 2006, 2007, 2009, 2010, 2011. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2004-2012. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -20,7 +19,7 @@ XBT_PUBLIC(sg_routing_edge_t) sg_routing_edge_by_name_or_null(const char *name); typedef struct tmgr_trace *tmgr_trace_t; /**< Opaque structure defining an availability trace */ -/** opaque structure defining a event generator for avaibility based on a probability distribution */ +/** opaque structure defining a event generator for availability based on a probability distribution */ typedef struct probabilist_event_generator *probabilist_event_generator_t; XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new_from_file(const char *filename); @@ -31,11 +30,11 @@ XBT_PUBLIC(tmgr_trace_t) tmgr_trace_new_from_generator(const char *id, probabilist_event_generator_t generator1, probabilist_event_generator_t generator2); -XBT_PUBLIC(probabilist_event_generator_t) tmgr_event_generator_new_uniform(double alpha, - double beta); -XBT_PUBLIC(probabilist_event_generator_t) tmgr_event_generator_new_exponential(double lambda); -XBT_PUBLIC(probabilist_event_generator_t) tmgr_event_generator_new_weibull(double lambda, - double k); +XBT_PUBLIC(probabilist_event_generator_t) tmgr_event_generator_new_uniform(double min, + double max); +XBT_PUBLIC(probabilist_event_generator_t) tmgr_event_generator_new_exponential(double rate); +XBT_PUBLIC(probabilist_event_generator_t) tmgr_event_generator_new_weibull(double scale, + double shape); /** Defines whether a given resource is working or not */ typedef enum { diff --git a/include/simgrid/simix.h b/include/simgrid/simix.h index dfd7ac010a..8ec4bf4f50 100644 --- a/include/simgrid/simix.h +++ b/include/simgrid/simix.h @@ -320,7 +320,7 @@ XBT_PUBLIC(void) simcall_process_killall(void); /* Process handling */ XBT_PUBLIC(void) simcall_process_cleanup(smx_process_t process); XBT_PUBLIC(void) simcall_process_change_host(smx_process_t process, - smx_host_t dest); + smx_host_t dest); XBT_PUBLIC(void) simcall_process_suspend(smx_process_t process); XBT_PUBLIC(void) simcall_process_resume(smx_process_t process); diff --git a/include/surf/surf_routing.h b/include/surf/surf_routing.h index 1e355c6f97..d7459ac3e9 100644 --- a/include/surf/surf_routing.h +++ b/include/surf/surf_routing.h @@ -11,23 +11,23 @@ extern xbt_lib_t host_lib; extern int ROUTING_HOST_LEVEL; //Routing level -extern int SURF_CPU_LEVEL; //Surf cpu level -extern int SURF_WKS_LEVEL; //Surf workstation level -extern int SIMIX_HOST_LEVEL; //Simix level -extern int MSG_HOST_LEVEL; //Msg level -extern int SD_HOST_LEVEL; //Simdag level -extern int COORD_HOST_LEVEL; //Coordinates level -extern int NS3_HOST_LEVEL; //host node for ns3 +extern int SURF_CPU_LEVEL; //Surf cpu level +extern int SURF_WKS_LEVEL; //Surf workstation level +extern int SIMIX_HOST_LEVEL; //Simix level +extern int MSG_HOST_LEVEL; //Msg level +extern int SD_HOST_LEVEL; //Simdag level +extern int COORD_HOST_LEVEL; //Coordinates level +extern int NS3_HOST_LEVEL; //host node for ns3 extern xbt_lib_t link_lib; -extern int SD_LINK_LEVEL; //Simdag level -extern int SURF_LINK_LEVEL; //Surf level -extern int NS3_LINK_LEVEL; //link for ns3 +extern int SD_LINK_LEVEL; //Simdag level +extern int SURF_LINK_LEVEL; //Surf level +extern int NS3_LINK_LEVEL; //link for ns3 extern xbt_lib_t as_router_lib; -extern int ROUTING_ASR_LEVEL; //Routing level -extern int COORD_ASR_LEVEL; //Coordinates level -extern int NS3_ASR_LEVEL; //host node for ns3 +extern int ROUTING_ASR_LEVEL; //Routing level +extern int COORD_ASR_LEVEL; //Coordinates level +extern int NS3_ASR_LEVEL; //host node for ns3 extern xbt_lib_t storage_lib; extern int ROUTING_STORAGE_LEVEL; //Routing storage level diff --git a/include/xbt/asserts.h b/include/xbt/asserts.h index e02965353c..dcb0e0522b 100644 --- a/include/xbt/asserts.h +++ b/include/xbt/asserts.h @@ -32,7 +32,7 @@ SG_BEGIN_DECL() #define xbt_assert(...) ((void)0) #else /** @brief The condition which failed will be displayed. - @hideinitializer */ + @hideinitializer */ #define xbt_assert(...) \ _XBT_IF_ONE_ARG(_xbt_assert_ARG1, _xbt_assert_ARGN, __VA_ARGS__)(__VA_ARGS__) #define _xbt_assert_ARG1(cond) \ diff --git a/include/xbt/automatonparse_promela.h b/include/xbt/automatonparse_promela.h index c80c34db2b..d461474458 100644 --- a/include/xbt/automatonparse_promela.h +++ b/include/xbt/automatonparse_promela.h @@ -18,7 +18,7 @@ XBT_PUBLIC(void) new_transition(char* id, xbt_exp_label_t label); XBT_PUBLIC(xbt_exp_label_t) new_label(int type, ...); XBT_PUBLIC(xbt_automaton_t) get_automaton(void); - + XBT_PUBLIC(void) display_automaton(void); SG_END_DECL() diff --git a/include/xbt/datadesc.h b/include/xbt/datadesc.h index fdc1c79ec2..32d20cb56f 100644 --- a/include/xbt/datadesc.h +++ b/include/xbt/datadesc.h @@ -258,7 +258,7 @@ int server(int argc, char *argv[]) { (xbt_datadesc_by_name_or_null(#name) ? \ xbt_datadesc_by_name_or_null(#name) : \ xbt_datadesc_parse(#name, \ - _xbt_this_type_symbol_does_not_exist__##name) \ + _xbt_this_type_symbol_does_not_exist__##name) \ ) /** @def XBT_ANNOTE diff --git a/include/xbt/dynar.h b/include/xbt/dynar.h index 87b501c655..d2117851ab 100644 --- a/include/xbt/dynar.h +++ b/include/xbt/dynar.h @@ -279,7 +279,7 @@ xbt_dynar_foreach (dyn,cpt,str) { */ #define xbt_dynar_foreach(_dynar,_cursor,_data) \ for (_xbt_dynar_cursor_first(_dynar,&(_cursor)) ; \ - _xbt_dynar_cursor_get(_dynar,_cursor,&_data) ; \ + _xbt_dynar_cursor_get(_dynar,_cursor,&_data) ; \ (_cursor)++ ) /** @} */ diff --git a/include/xbt/ex.h b/include/xbt/ex.h index b7903c152a..a6db6fc792 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -65,7 +65,7 @@ SG_BEGIN_DECL() # define MAYDAY_CATCH(e) printf("%d %s:%d Catched '%s'\n", \ xbt_getpid(), __FILE__, __LINE__, \ (e).msg \ - ), + ), #else # define MAYDAY_SAVE(m) # define MAYDAY_RESTORE(m) diff --git a/include/xbt/log.h b/include/xbt/log.h index 1dcdfde590..fe199ac475 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -185,7 +185,7 @@ typedef enum { # define XBT_LOG_DEFAULT_CATEGORY(cname) #else # define XBT_LOG_DEFAULT_CATEGORY(cname) \ - static xbt_log_category_t _XBT_LOGV(default) _XBT_GNUC_UNUSED = &_XBT_LOGV(cname) + static xbt_log_category_t _XBT_LOGV(default) _XBT_GNUC_UNUSED = &_XBT_LOGV(cname) #endif /** diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 485598becf..5260bce95e 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -12,9 +12,9 @@ /* Attributes are only in recent versions of GCC */ #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)) # define _XBT_GNUC_PRINTF( format_idx, arg_idx ) \ - __attribute__((__format__ (__printf__, format_idx, arg_idx))) + __attribute__((__format__ (__printf__, format_idx, arg_idx))) # define _XBT_GNUC_SCANF( format_idx, arg_idx ) \ - __attribute__((__format__ (__scanf__, format_idx, arg_idx))) + __attribute__((__format__ (__scanf__, format_idx, arg_idx))) # define _XBT_GNUC_NORETURN __attribute__((__noreturn__)) # define _XBT_GNUC_UNUSED __attribute__((__unused__)) /* Constructor priorities exist since gcc 4.3. Apparently, they are however not @@ -63,11 +63,11 @@ # define XBT_INLINE # endif # else -# if defined (__VISUALC__) -# define XBT_INLINE __inline -# else -# define XBT_INLINE inline -# endif +# if defined (__VISUALC__) +# define XBT_INLINE __inline +# else +# define XBT_INLINE inline +# endif # endif /* __cplusplus */ #endif @@ -166,7 +166,7 @@ # define XBT_PUBLIC(type) __declspec(dllexport) type # define XBT_EXPORT_NO_IMPORT(type) __declspec(dllexport) type # define XBT_IMPORT_NO_EXPORT(type) type -# define XBT_PUBLIC_DATA(type) __declspec(dllexport) type +# define XBT_PUBLIC_DATA(type) __declspec(dllexport) type /* Pack everything up statically */ #elif defined(DLL_STATIC) @@ -177,10 +177,10 @@ /* Link against the DLL */ #elif (defined(_XBT_WIN32) && !defined(DLL_EXPORT) && !defined(DLL_STATIC)) -# define XBT_PUBLIC(type) __declspec(dllimport) type -# define XBT_EXPORT_NO_IMPORT(type) type -# define XBT_IMPORT_NO_EXPORT(type) __declspec(dllimport) type -# define XBT_PUBLIC_DATA(type) __declspec(dllimport) type +# define XBT_PUBLIC(type) __declspec(dllimport) type +# define XBT_EXPORT_NO_IMPORT(type) type +# define XBT_IMPORT_NO_EXPORT(type) __declspec(dllimport) type +# define XBT_PUBLIC_DATA(type) __declspec(dllimport) type /* UNIX build */ #else @@ -191,10 +191,10 @@ #endif #if !defined (max) && !defined(__cplusplus) -# define max(a,b) (((a) > (b)) ? (a) : (b)) +# define max(a,b) (((a) > (b)) ? (a) : (b)) #endif #if !defined (min) && !defined(__cplusplus) -# define min(a,b) (((a) < (b)) ? (a) : (b)) +# define min(a,b) (((a) < (b)) ? (a) : (b)) #endif #define TRUE 1 diff --git a/include/xbt/parmap.h b/include/xbt/parmap.h index b53a6b0325..3b9f9ed8fa 100644 --- a/include/xbt/parmap.h +++ b/include/xbt/parmap.h @@ -16,6 +16,7 @@ SG_BEGIN_DECL() /** \addtogroup XBT_parmap + * \ingroup XBT_misc * \brief Parallel map. * * A function is applied to all elements of a dynar in parallel with n worker diff --git a/include/xbt/swag.h b/include/xbt/swag.h index fa29a5a016..69004c3ebc 100644 --- a/include/xbt/swag.h +++ b/include/xbt/swag.h @@ -168,7 +168,7 @@ static XBT_INLINE void *xbt_swag_getFirst(xbt_swag_t swag) #define xbt_swag_foreach_safe(obj,obj_next,swag) \ for((obj)=xbt_swag_getFirst((swag)), \ ((obj)?(obj_next=xbt_swag_getNext((obj),(swag)->offset)): \ - (obj_next=NULL)); \ + (obj_next=NULL)); \ (obj)!=NULL; \ (obj)=obj_next, \ ((obj)?(obj_next=xbt_swag_getNext((obj),(swag)->offset)): \ diff --git a/include/xbt/time.h b/include/xbt/time.h index 2a7ebad897..6795b051dd 100644 --- a/include/xbt/time.h +++ b/include/xbt/time.h @@ -1,4 +1,4 @@ -/* xbt/time.h -- Time tools */ +/* xbt/time.h -- Time tools */ /* Usable in simulator, (or in real life when mixing with GRAS) */ /* Copyright (c) 2007, 2009, 2010. The SimGrid Team. diff --git a/src/bindings/lua/lua_state_cloner.c b/src/bindings/lua/lua_state_cloner.c index 11e97f2857..ce6d83c1b5 100644 --- a/src/bindings/lua/lua_state_cloner.c +++ b/src/bindings/lua/lua_state_cloner.c @@ -421,7 +421,6 @@ static void sglua_copy_table(lua_State* src, lua_State* dst) { * @brief Copies the function on the top of src to the top of dst. * * It can be a Lua function or a C function. - * Copying upvalues is not implemented yet. * * @param src source state * @param dst destination state diff --git a/src/gras/Msg/gras_msg_listener.c b/src/gras/Msg/gras_msg_listener.c index ca62d02f4a..0dcc36fb46 100644 --- a/src/gras/Msg/gras_msg_listener.c +++ b/src/gras/Msg/gras_msg_listener.c @@ -62,8 +62,8 @@ static void listener_function(void *p) while (1) { msg = gras_msg_recv_any(); if (msg->type != msg_wakeup_listener_t) { - /* Cannot display who sent this since in SG, xbt_socket_peer_* wont work: - I'm not the user process but I'm just the listener. Too bad */ + /* Cannot display who sent this since in SG, xbt_socket_peer_* wont work: + I'm not the user process but I'm just the listener. Too bad */ XBT_VERB("Got a '%s' message (%s) from sock %p. Queue it for handling by main thread", gras_msgtype_get_name(msg->type),e_gras_msg_kind_names[msg->kind],msg->expe); xbt_queue_push(me->incoming_messages, msg); diff --git a/src/gras/Msg/sg_msg.c b/src/gras/Msg/sg_msg.c index 3816885af6..78d510d990 100644 --- a/src/gras/Msg/sg_msg.c +++ b/src/gras/Msg/sg_msg.c @@ -72,7 +72,7 @@ int gras_socket_im_the_server(xbt_socket_t sock) listener_thread = ((fake_gras_msg_listener_t)l)->listener; client_listener_process = ((fake_xbt_thread_t)listener_thread)->s_process; if (client_listener_process == SIMIX_process_self()) { - XBT_VERB("I am the listener of the client"); + XBT_VERB("I am the listener of the client"); return 0; } } diff --git a/src/gras/Transport/sg_transport.c b/src/gras/Transport/sg_transport.c index 8e52a7569a..d8bf5b02f7 100644 --- a/src/gras/Transport/sg_transport.c +++ b/src/gras/Transport/sg_transport.c @@ -17,7 +17,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(gras_trp); xbt_socket_t _gras_lastly_selected_socket = NULL; #ifdef KILLME -/** +/** * gras_trp_select: * * Returns the next socket to service having a message awaiting. diff --git a/src/include/simgrid/platf_interface.h b/src/include/simgrid/platf_interface.h index 8a61ba9914..3956166784 100644 --- a/src/include/simgrid/platf_interface.h +++ b/src/include/simgrid/platf_interface.h @@ -49,7 +49,9 @@ void sg_platf_mount_add_cb(sg_platf_mount_cb_t fct); */ void surf_config_models_setup(void); - - +/* RngStream management functions */ +typedef struct RngStream_InfoState *RngStream; //Not to have to include RngStream.h +void sg_platf_rng_stream_init(unsigned long seed[6]); +RngStream sg_platf_rng_stream_get(const char* id); #endif /* SG_PLATF_INTERFACE_H */ diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 310ecd0159..df8f9c949c 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -79,16 +79,16 @@ typedef struct surf_action { double cost; /**< cost */ double priority; /**< priority (1.0 by default) */ double max_duration; /**< max_duration (may fluctuate until - the task is completed) */ + the task is completed) */ double remains; /**< How much of that cost remains to - * be done in the currently running task */ + * be done in the currently running task */ #ifdef HAVE_LATENCY_BOUND_TRACKING int latency_limited; /**< Set to 1 if is limited by latency, 0 otherwise */ #endif double start; /**< start time */ double finish; /**< finish time : this is modified during the run - * and fluctuates until the task is completed */ + * and fluctuates until the task is completed */ void *data; /**< for your convenience */ int refcount; surf_model_t model_type; @@ -233,7 +233,7 @@ typedef struct surf_storage_model_extension_public { */ typedef struct surf_workstation_model_extension_public { surf_action_t(*execute) (void *workstation, double size); /**< Execute a computation amount on a workstation - and create the corresponding action */ + and create the corresponding action */ surf_action_t(*sleep) (void *workstation, double duration); /**< Make a workstation sleep during a given duration */ e_surf_resource_state_t(*get_state) (void *workstation); /**< Return the CPU state of a workstation */ double (*get_speed) (void *workstation, double load); /**< Return the speed of a workstation */ @@ -332,10 +332,10 @@ surf_model_t surf_model_init(void); void surf_model_exit(surf_model_t model); static inline void *surf_cpu_resource_by_name(const char *name) { - return xbt_lib_get_or_null(host_lib, name, SURF_CPU_LEVEL); + return xbt_lib_get_or_null(host_lib, name, SURF_CPU_LEVEL); } static inline void *surf_workstation_resource_by_name(const char *name){ - return xbt_lib_get_or_null(host_lib, name, SURF_WKS_LEVEL); + return xbt_lib_get_or_null(host_lib, name, SURF_WKS_LEVEL); } static inline void *surf_storage_resource_by_name(const char *name){ return xbt_lib_get_or_null(storage_lib, name, SURF_STORAGE_LEVEL); diff --git a/src/include/surf/surfxml_parse_values.h b/src/include/surf/surfxml_parse_values.h index d030d07a19..0092095617 100644 --- a/src/include/surf/surfxml_parse_values.h +++ b/src/include/surf/surfxml_parse_values.h @@ -10,8 +10,8 @@ typedef struct s_surf_parsing_link_up_down *surf_parsing_link_up_down_t; typedef struct s_surf_parsing_link_up_down { - void* link_up; - void* link_down; + void* link_up; + void* link_down; } s_surf_parsing_link_up_down_t; #endif /* SURFXML_PARSE_VALUES_H_ */ diff --git a/src/include/surf/trace_mgr.h b/src/include/surf/trace_mgr.h index bfa4b22528..c9961a601b 100644 --- a/src/include/surf/trace_mgr.h +++ b/src/include/surf/trace_mgr.h @@ -23,7 +23,7 @@ XBT_PUBLIC(void) tmgr_trace_free(tmgr_trace_t trace); * \brief Free a trace event structure * * This function frees a trace_event if it can be freed, ie, if it has the free_me flag set to 1. This flag indicates whether the structure is still used somewhere or not. - * \param trace_event Trace event structure + * \param trace_event Trace event structure * \return 1 if the structure was freed, 0 otherwise */ XBT_PUBLIC(int) tmgr_trace_event_free(tmgr_trace_event_t trace_event); diff --git a/src/instr/instr_paje_trace.c b/src/instr/instr_paje_trace.c index df1b98f411..a9540ca361 100644 --- a/src/instr/instr_paje_trace.c +++ b/src/instr/instr_paje_trace.c @@ -354,7 +354,7 @@ static void insert_into_buffer (paje_event_t tbi) return; } XBT_DEBUG("%s: insert event_type=%d, timestamp=%f, buffersize=%lu)", - __FUNCTION__, (int)tbi->event_type, tbi->timestamp, xbt_dynar_length(buffer)); + __FUNCTION__, (int)tbi->event_type, tbi->timestamp, xbt_dynar_length(buffer)); unsigned int i; for (i = xbt_dynar_length(buffer); i > 0; i--) { diff --git a/src/instr/jedule/jedule_events.c b/src/instr/jedule/jedule_events.c index 8d235a0209..e5175e9c0d 100644 --- a/src/instr/jedule/jedule_events.c +++ b/src/instr/jedule/jedule_events.c @@ -19,66 +19,66 @@ #ifdef HAVE_JEDULE void jed_event_add_resources(jed_event_t event, xbt_dynar_t host_selection) { - xbt_dynar_t resource_subset_list; - jed_res_subset_t res_set; - unsigned int i; + xbt_dynar_t resource_subset_list; + jed_res_subset_t res_set; + unsigned int i; - resource_subset_list = xbt_dynar_new(sizeof(jed_res_subset_t), NULL); + resource_subset_list = xbt_dynar_new(sizeof(jed_res_subset_t), NULL); - jed_simgrid_get_resource_selection_by_hosts(resource_subset_list, host_selection); - xbt_dynar_foreach(resource_subset_list, i, res_set) { - xbt_dynar_push(event->resource_subsets, &res_set); - } + jed_simgrid_get_resource_selection_by_hosts(resource_subset_list, host_selection); + xbt_dynar_foreach(resource_subset_list, i, res_set) { + xbt_dynar_push(event->resource_subsets, &res_set); + } - xbt_dynar_free(&resource_subset_list); + xbt_dynar_free(&resource_subset_list); } void jed_event_add_characteristic(jed_event_t event, char *characteristic) { - xbt_assert( characteristic != NULL ); - xbt_dynar_push(event->characteristics_list, &characteristic); + xbt_assert( characteristic != NULL ); + xbt_dynar_push(event->characteristics_list, &characteristic); } void jed_event_add_info(jed_event_t event, char *key, char *value) { - char *val_cp; + char *val_cp; - xbt_assert(key != NULL); - xbt_assert(value != NULL); + xbt_assert(key != NULL); + xbt_assert(value != NULL); - val_cp = strdup(value); - xbt_dict_set(event->info_hash, key, val_cp, NULL); + val_cp = strdup(value); + xbt_dict_set(event->info_hash, key, val_cp, NULL); } void create_jed_event(jed_event_t *event, char *name, double start_time, - double end_time, const char *type) { + double end_time, const char *type) { - *event = (jed_event_t) calloc(1, sizeof(s_jed_event_t)); - (*event)->name = xbt_strdup(name); + *event = (jed_event_t) calloc(1, sizeof(s_jed_event_t)); + (*event)->name = xbt_strdup(name); - (*event)->start_time = start_time; - (*event)->end_time = end_time; + (*event)->start_time = start_time; + (*event)->end_time = end_time; - (*event)->type = xbt_strdup(type); + (*event)->type = xbt_strdup(type); - (*event)->resource_subsets = xbt_dynar_new(sizeof(jed_res_subset_t), NULL); - (*event)->characteristics_list = xbt_dynar_new(sizeof(char*), NULL); - (*event)->info_hash = xbt_dict_new_homogeneous(NULL); + (*event)->resource_subsets = xbt_dynar_new(sizeof(jed_res_subset_t), NULL); + (*event)->characteristics_list = xbt_dynar_new(sizeof(char*), NULL); + (*event)->info_hash = xbt_dict_new_homogeneous(NULL); } void jed_event_free(jed_event_t event) { - free(event->name); - free(event->type); + free(event->name); + free(event->type); - xbt_dynar_free(&event->resource_subsets); + xbt_dynar_free(&event->resource_subsets); - xbt_dynar_free(&event->characteristics_list); - xbt_dict_free(&event->info_hash); + xbt_dynar_free(&event->characteristics_list); + xbt_dict_free(&event->info_hash); - free(event); + free(event); } #endif diff --git a/src/instr/jedule/jedule_output.c b/src/instr/jedule/jedule_output.c index 7cb7af073b..25682b25ec 100644 --- a/src/instr/jedule/jedule_output.c +++ b/src/instr/jedule/jedule_output.c @@ -38,36 +38,36 @@ static void get_hierarchy_list(xbt_dynar_t hier_list, jed_simgrid_container_t co static void get_hierarchy_list(xbt_dynar_t hier_list, jed_simgrid_container_t container) { - xbt_assert( container != NULL ); + xbt_assert( container != NULL ); - if( container->parent != NULL ) { + if( container->parent != NULL ) { - if( container->parent->container_children == NULL ) { - // we are in the last level - get_hierarchy_list(hier_list, container->parent); + if( container->parent->container_children == NULL ) { + // we are in the last level + get_hierarchy_list(hier_list, container->parent); - } else { - unsigned int i; - int child_nb = -1; - jed_simgrid_container_t child_container; + } else { + unsigned int i; + int child_nb = -1; + jed_simgrid_container_t child_container; - xbt_dynar_foreach(container->parent->container_children, i, child_container) { - if( child_container == container ) { - child_nb = i; - break; - } - } + xbt_dynar_foreach(container->parent->container_children, i, child_container) { + if( child_container == container ) { + child_nb = i; + break; + } + } - xbt_assert( child_nb > - 1); + xbt_assert( child_nb > - 1); - xbt_dynar_insert_at(hier_list, 0, &child_nb); + xbt_dynar_insert_at(hier_list, 0, &child_nb); - get_hierarchy_list(hier_list, container->parent); - } - } else { - int top_level = 0; - xbt_dynar_insert_at(hier_list, 0, &top_level); - } + get_hierarchy_list(hier_list, container->parent); + } + } else { + int top_level = 0; + xbt_dynar_insert_at(hier_list, 0, &top_level); + } } @@ -97,158 +97,158 @@ static void get_hierarchy_string(jed_simgrid_container_t container, char *outbuf } static void print_key_value_dict(xbt_dict_t key_value_dict) { - xbt_dict_cursor_t cursor=NULL; - char *key,*data; - - if( key_value_dict != NULL ) { - xbt_dict_foreach(key_value_dict,cursor,key,data) { - fprintf(jed_file, "\n",key,data); - } - } + xbt_dict_cursor_t cursor=NULL; + char *key,*data; + + if( key_value_dict != NULL ) { + xbt_dict_foreach(key_value_dict,cursor,key,data) { + fprintf(jed_file, "\n",key,data); + } + } } static void print_container(jed_simgrid_container_t container) { - unsigned int i; - jed_simgrid_container_t child_container; - - xbt_assert( container != NULL ); - - fprintf(jed_file, "\n", container->name); - if( container->container_children != NULL ) { - xbt_dynar_foreach(container->container_children, i, child_container) { - print_container(child_container); - } - } else { - print_resources(container); - } - fprintf(jed_file, "\n"); + unsigned int i; + jed_simgrid_container_t child_container; + + xbt_assert( container != NULL ); + + fprintf(jed_file, "\n", container->name); + if( container->container_children != NULL ) { + xbt_dynar_foreach(container->container_children, i, child_container) { + print_container(child_container); + } + } else { + print_resources(container); + } + fprintf(jed_file, "\n"); } static void print_resources(jed_simgrid_container_t resource_parent) { - int res_nb; - unsigned int i; - char *res_name; + int res_nb; + unsigned int i; + char *res_name; char resid[1024]; - xbt_assert( resource_parent->resource_list != NULL ); + xbt_assert( resource_parent->resource_list != NULL ); - res_nb = xbt_dynar_length(resource_parent->resource_list); + res_nb = xbt_dynar_length(resource_parent->resource_list); get_hierarchy_string(resource_parent, resid); - fprintf(jed_file, "resource_list, i, res_name) { - fprintf(jed_file, "%s", res_name); - if( i != res_nb-1 ) { - fprintf(jed_file, "|"); - } - } - fprintf(jed_file, "\" />\n"); + fprintf(jed_file, "resource_list, i, res_name) { + fprintf(jed_file, "%s", res_name); + if( i != res_nb-1 ) { + fprintf(jed_file, "|"); + } + } + fprintf(jed_file, "\" />\n"); } static void print_platform(jed_simgrid_container_t root_container) { - fprintf(jed_file, "\n"); - print_container(root_container); - fprintf(jed_file, "\n"); + fprintf(jed_file, "\n"); + print_container(root_container); + fprintf(jed_file, "\n"); } static void print_event(jed_event_t event) { - unsigned int i; - jed_res_subset_t subset; + unsigned int i; + jed_res_subset_t subset; - xbt_assert( event != NULL ); - xbt_assert( event->resource_subsets != NULL ); + xbt_assert( event != NULL ); + xbt_assert( event->resource_subsets != NULL ); - fprintf(jed_file, "\n"); + fprintf(jed_file, "\n"); - fprintf(jed_file, "\n", event->name); - fprintf(jed_file, "\n", event->start_time); - fprintf(jed_file, "\n", event->end_time); - fprintf(jed_file, "\n", event->type); + fprintf(jed_file, "\n", event->name); + fprintf(jed_file, "\n", event->start_time); + fprintf(jed_file, "\n", event->end_time); + fprintf(jed_file, "\n", event->type); - fprintf(jed_file, "\n"); + fprintf(jed_file, "\n"); - xbt_dynar_foreach(event->resource_subsets, i, subset) { + xbt_dynar_foreach(event->resource_subsets, i, subset) { - int start = subset->start_idx; - int end = subset->start_idx + subset->nres - 1; + int start = subset->start_idx; + int end = subset->start_idx + subset->nres - 1; char resid[1024]; get_hierarchy_string(subset->parent, resid); - fprintf(jed_file, "