{"id":31,"date":"2017-04-18T17:00:14","date_gmt":"2017-04-18T17:00:14","guid":{"rendered":"http:\/\/amberdot.com\/walterbays\/?p=31"},"modified":"2017-04-19T00:03:06","modified_gmt":"2017-04-19T00:03:06","slug":"roll-your-own-energy-test","status":"publish","type":"post","link":"http:\/\/amberdot.com\/walterbays\/index.php\/2017\/04\/18\/roll-your-own-energy-test\/","title":{"rendered":"Roll Your Own Energy Test"},"content":{"rendered":"<p>SPEC just released a new version of the <a href=\"https:\/\/www.spec.org\/chauffeur-wdk\/\">Chauffeur WDK<\/a>, a development kit that makes it easy to write your own benchmarks to measure power and performance. Why would anyone want to write their own benchmark? SPEC and other organizations already offer benchmarks for energy efficiency, and these are certainly a good starting point. But your workload matters. How much?<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-32 alignright\" src=\"https:\/\/i0.wp.com\/amberdot.com\/walterbays\/wp-content\/uploads\/2017\/04\/acc.png?resize=300%2C220\" alt=\"\" width=\"300\" height=\"220\" srcset=\"https:\/\/i0.wp.com\/amberdot.com\/walterbays\/wp-content\/uploads\/2017\/04\/acc.png?resize=300%2C220 300w, https:\/\/i0.wp.com\/amberdot.com\/walterbays\/wp-content\/uploads\/2017\/04\/acc.png?w=680 680w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>The <a href=\"https:\/\/www.spec.org\/accel\/\">SPEC ACCEL\u2122benchmark<\/a> is a suite of computationally intensive parallel applications executed to measure performance of the accelerator, host CPU, memory transfer between host and accelerator, support libraries and drivers, and compilers. 15 applications are executed 3 times each, with moderate tuning and with aggressive tuning to yield a <a href=\"https:\/\/www.spec.org\/accel\/docs\/runrules.html#section1.4\">base and peak<\/a> score. This benchmark should be increasingly important as the industry embraces hybrid computing for applications like machine learning. For my purposes today the key point is that different workloads are executed, and that the benchmark allows energy consumption to be measured using the <a href=\"https:\/\/www.spec.org\/power\/docs\/SPEC-Power_and_Performance_Methodology.pdf\">SPEC Power methodology<\/a>.<\/p>\n<p>I examined one <a href=\"https:\/\/www.spec.org\/accel\/results\/res2014q1\/accel-20140303-00013.html\">result<\/a>, for an ASUS P9X79 Motherboard published March 2014. It&#8217;s a single chip Intel Core i7-3930K running at 3.2-3.8 GHz, with an NVIDIA Tesla K40c accelerator. It was tested using OpenACC with the PGI Accelerator Server Complete, Release 14.2 compiler.<\/p>\n<pre>SPECaccel_acc_base\u00a0=2.21\r\nSPECaccel_acc_energy_base\u00a0=2.88\r\nSPECaccel_acc_peak\u00a0=2.32\r\nSPECaccel_acc_energy_peak\u00a0=2.98<\/pre>\n<p>Each of three runs yields an average power consumed over the course of that run. Here are the median watts used for 3 of the 15 benchmarks.<\/p>\n<pre><strong>Benchmark<\/strong> <strong>Base<\/strong> <strong>Peak<\/strong>\r\n314.omriq  320  320\r\n351.palm   217  225\r\n363.swim   243  265\r\n\r\n<\/pre>\n<p><a href=\"https:\/\/www.spec.org\/auto\/accel\/Docs\/351.palm.html\">351.palm<\/a>, a large-eddy simulation model for atmospheric and oceanic flows, consumed 217 watts with base tuning. By contrast <a href=\"https:\/\/www.spec.org\/auto\/accel\/Docs\/314.omriq.html\">314.omriq<\/a>, which computes MRI image reconstruction, consumed 320 watts. That&#8217;s 47% higher power consumption for the medical imaging workload. Even the same workload can differ in power consumption. <a href=\"https:\/\/www.spec.org\/auto\/accel\/Docs\/363.swim.html\">363.swim<\/a> is a finite-difference approximation of the shallow-water equations for weather prediction. Compiled with peak tuning it uses 9% more power than when running with base tuning. However it finishes the problem faster with peak tuning, so the total amount of energy consumed, 18.1 k-Joules, is 25% lower than the energy consumed to solve the problem with base tuning, 24.2 k-Joules.<\/p>\n<p>Your workload matters. How much energy and how many dollars are your computing solutions costing you?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SPEC just released a new version of the Chauffeur WDK, a development kit that makes it easy to write your own benchmarks to measure power and performance. Why would anyone want to write their own benchmark? SPEC and other organizations already offer benchmarks for energy efficiency, and these are certainly a good starting point. But &hellip; <a href=\"http:\/\/amberdot.com\/walterbays\/index.php\/2017\/04\/18\/roll-your-own-energy-test\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Roll Your Own Energy Test<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"nfd_image_url":"","nfd_onboarding_generated":"","footnotes":"","jetpack_post_was_ever_published":false},"categories":[2],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-spec"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":1,"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":33,"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/posts\/31\/revisions\/33"}],"wp:attachment":[{"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/amberdot.com\/walterbays\/index.php\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}