{"id":31,"date":"2008-09-26T21:30:36","date_gmt":"2008-09-26T21:30:36","guid":{"rendered":"http:\/\/press3.mcs.anl.gov\/romio\/?p=31"},"modified":"2024-08-22T16:20:22","modified_gmt":"2024-08-22T16:20:22","slug":"system-hints-hints-via-config-file","status":"publish","type":"post","link":"https:\/\/wordpress.cels.anl.gov\/romio\/2008\/09\/26\/system-hints-hints-via-config-file\/","title":{"rendered":"system hints: hints via config file"},"content":{"rendered":"<p>In ROMIO, setting hints looks like this:<\/p>\n<blockquote><p>MPI_Info info;<br \/>\nMPI_Info_create(&amp;info);<br \/>\nMPI_Info_set(&#8220;cb_buffer_size&#8221;, &#8220;8388608&#8221;);<\/p><\/blockquote>\n<p>Setting these hints in the program\u00a0 can make sense in many cases &#8212; for example, you know something specific about the workload and wish to guide ROMIO&#8217;s optimizations a bit.\u00a0 But what if you want to explore the impact of hints on your program?\u00a0 There are a few options to do so:<\/p>\n<ul>\n<li>\u00a0Modify your program to look at an environment variable and use that as the value for your hint.<\/li>\n<li>\u00a0Take a command line parameter.<\/li>\n<li>Repeatedly edit and re-compile your program.<\/li>\n<\/ul>\n<p>While good practice, the approaches require additional work.\u00a0 It also assumes access to the source code &#8212; common, but not a guarantee.<br \/>\nAdditionally, we notice very few users set hints on their own.\u00a0 They will gladly do so if we suggest it, but what would be great is if every application on a system ran with the best hints for that system.\u00a0\u00a0 Sometimes you can count on the system&#8217;s vendor to set the defaults, but it is our experience that vendor defaults are exceedingly conservative.<br \/>\nWe added a new feature in ROMIO called &#8220;<a title=\"System Hints\" href=\"https:\/\/ftp.mcs.anl.gov\/pub\/romio\/users-guide\/node11.html\">system hints<\/a>&#8220;.\u00a0\u00a0 You can now populate a config file with the same key-value pairs you would pass to MPI_Info_set and ROMIO will add those hints to your program.<br \/>\nHere&#8217;s an example of what that file might look like:<\/p>\n<blockquote><p>$ cat romio_hints<br \/>\nromio_cb_read enable<br \/>\nromio_cb_write enable<br \/>\ncb_config_list *:2<\/p><\/blockquote>\n<p>By default, ROMIO will look for <tt>\/etc\/romio-hints<\/tt> , but you can set the environment variable ROMIO_HINTS to select a different location (for example, your application&#8217;s working directory)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In ROMIO, setting hints looks like this: MPI_Info info; MPI_Info_create(&amp;info); MPI_Info_set(&#8220;cb_buffer_size&#8221;, &#8220;8388608&#8221;); Setting these hints in the program\u00a0 can make sense in many cases &#8212; for example, you know something specific about the workload and wish to guide ROMIO&#8217;s optimizations a bit.\u00a0 But what if you want to explore the impact of hints on your &hellip;<\/p>\n","protected":false},"author":362,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":570,"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/posts\/31\/revisions\/570"}],"wp:attachment":[{"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.cels.anl.gov\/romio\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}