{"id":2860,"date":"2023-07-04T15:30:31","date_gmt":"2023-07-04T15:30:31","guid":{"rendered":"https:\/\/nag.com\/?post_type=case-studies&#038;p=2860"},"modified":"2023-07-04T15:43:13","modified_gmt":"2023-07-04T15:43:13","slug":"computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2","status":"publish","type":"case-studies","link":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/","title":{"rendered":"Computational Cost Halved for Oil and Gas Seismic Code Through <span class=\"nag-n-override\" style=\"margin-left: 0 !important;\"><i>n<\/i><\/span>AG HPC Expertise"},"content":{"rendered":"\n<div class=\"gbc-title-banner ta ta-lg ta-xl\" style='background-color: #082d48ff; color: #ffffffff; border-radius: 0px; '>\n    <div class=\"container\" style='border-radius: 0px; '>\n        <div class=\"row justify-content--center\" style='color: #ffffffff;'>\n            <div class=\"col-12\"  >\n                <div class=\"wrap pv-4 \" style=\"0px\">\n                                <div class=\"col-12 col-md-12 col-lg-10 col-xl-8  banner-content\"  >\n    \n                                             <div class=\"row-top bs-region bs-region--top\">\n<h1 class=\"field field--name-olamalu-nag-multiple-title field--type-ds field--label-hidden field--item\">Computational Cost Halved for Oil and Gas Seismic Code Through <span class=\"nag-n-override\" style=\"margin-left: 0 !important;\"><i>n<\/i><\/span>AG HPC Expertise<\/h1>\n<\/div>\n<div class=\"bs-region bs-region--main\">\n<div class=\"field field--name-field-paragraph field--type-entity-reference-revisions field--label-hidden field--items\">\n<div class=\"paragraph--color--transparent paragraph--align-- row bs-2col paragraph paragraph--type-text-with-media paragraph--view-mode-default\">\n<div class=\"col-sm-6 bs-region bs-region--left\">\u00a0<\/div>\n<\/div>\n<\/div>\n<\/div>\n                    \n                    <div class=\"mt-1 mb-1 content\"><p>Case Study<\/p>\n<\/div>\n\n                    \n                                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n<!-- Spacer -->\n<div class=\"pt-4 pt-lg-4 pt-xl-4\" ><\/div>\n\n<div class=\"container content-area-default \">\n    <div class=\"row justify-content--center\">\n        <div class=\"col-12 col-md-12 col-lg-10 col-xl-8\">\n            <h3 class=\"field field--name-field-paragraph-title field--type-string field--label-hidden field--item\">Code Background<\/h3>\n<div class=\"field field--name-field-paragraph-text field--type-text-long field--label-hidden field--item\">\n<p><span class=\"nag-n-override\" style=\"margin-left: 0 !important;\"><i>n<\/i><\/span>AG&#8217;s HPC team\u00a0was chosen to perform the following work because of their\u00a0experience in working with large HPC centers on specialist business focused projects. It was conducted within <span class=\"nag-n-override\" style=\"margin-left: 0 !important;\"><i>n<\/i><\/span>AG&#8217;s involvement in the\u00a0Performance Optimisation and Productivity Centre of Excellence.<\/p>\n<p>Shearwater Reveal is a seismic processing code that does time and depth analysis for land and maritime applications. Its land processing tools cover all aspects of land processing, from refraction statistics to final time and depth imaging.<\/p>\n<h3 class=\"field field--name-field-paragraph-title field--type-string field--label-hidden field--item\">Application Analysis, Recommended Changes and Proof of Concept<\/h3>\n<div class=\"field field--name-field-paragraph-text field--type-text-long field--label-hidden field--item\">\n<div class=\"tex2jax_process\">\n<p>The Shearwater Reveal application was assessed and the recommended changes were tested in a Proof of Concept (PoC). Wadud Miah, a HPC Application Analyst at <span class=\"nag-n-override\" style=\"margin-left: 0 !important;\"><i>n<\/i><\/span>AG performed the work. During the assessment phase he identified reasonable load balance, good Amdahl\u2019s efficiency and good computational efficiency. However, the OpenMP efficiency was low due to a high overhead. \u00a0<\/p>\n<p>The cause of the high overhead was found to be an OpenMP critical region that protected file read\/write operations from race conditions. In the PoC, Wadud modified the code such that the I\/O was taken out of the OpenMP region, allowing the OpenMP critical region to then be removed. In addition, the OpenMP dynamic schedule was used. The parallel scalability graph below shows the changed PoC code with both the static and dynamic schedules.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2865 size-full\" src=\"https:\/\/nag.com\/wp-content\/uploads\/2023\/07\/shearwater_pop_1.jpg\" alt=\"\" width=\"640\" height=\"480\" \/><\/p>\n<p>The PoC code with the dynamic schedule only shows a performance gain at 18 and 24 threads. This is due to the increase in sequential execution caused by the memory allocation\/deallocation needed to store the temporary data and the file I\/O.<\/p>\n<p>To investigate the potential performance gains, the memory allocation and file I\/O were removed from the focus of analysis, even though these changes on their own led to an incorrect solution. The resulting scaling graph is shown below, with the linear and 80% of linear graphs scaled by the CPU frequency reductions.<\/p>\n<h3><strong>Results<\/strong><\/h3>\n<p><strong>The Shearwater Reveal PoC showed a performance improvement as a result of these changes of up to 44%.<\/strong>\u00a0The yellow line shows the parallel scaling with the I\/O and memory allocation\/deallocation removed and its performance is approaching linear scaling.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2872 size-full\" src=\"https:\/\/nag.com\/wp-content\/uploads\/2023\/07\/shearwater_pop_2.jpg\" alt=\"\" width=\"640\" height=\"480\" \/><\/p>\n<p>Additional recommendations were made by Wadud to aggregate the I\/O into larger read\/write sizes and to increase the re-use of data once it is read from disk.<\/p>\n<p>Changes were made based on our analysis and recommendations. For a full-scale production run the computational cost was close to halved.<\/p>\n<\/div>\n<\/div>\n<\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n<div class=\"gbc-title-banner tac tac-lg tac-xl\" style='border-radius: 0px; '>\n    <div class=\"container\" style='border-radius: 0px; '>\n        <div class=\"row justify-content--center\" >\n            <div class=\"col-12\"  >\n                <div class=\"wrap pv-4 \" style=\"0pxbackground-color: \">\n                                <div class=\"col-12 col-md-12 col-lg-10 col-xl-8  banner-content\"  >\n    \n                    \n                    <div class=\"mt-1 mb-1 content\"><\/div>\n\n                    \n                    <a href='https:\/\/nag.com\/hpc-services\/' style='background-color: #63c0fdff; border-radius: 30px; font-weight: 600; ' class='btn mr-1  ' target=\"_blank\">HPC Services <i class='fas fa-angle-right'><\/i><\/a>                <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"nag-n-override\" style=\"margin-left: 0 !important;\"><i>n<\/i><\/span>AG\u2019s HPC team was chosen to perform the following work because of their experience in working with large HPC centers on specialist business focused projects. It was conducted within <span class=\"nag-n-override\" style=\"margin-left: 0 !important;\"><i>n<\/i><\/span>AG\u2019s involvement in the Performance Optimisation and Productivity Centre of Excellence.<\/p>\n","protected":false},"author":3,"featured_media":1740,"parent":0,"menu_order":0,"template":"","meta":{"content-type":"","footnotes":""},"post-tag":[43],"class_list":["post-2860","case-studies","type-case-studies","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Computational Cost Halved for Oil and Gas Seismic Code Through NAG HPC Expertise - nAG<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Computational Cost Halved for Oil and Gas Seismic Code Through NAG HPC Expertise - nAG\" \/>\n<meta property=\"og:description\" content=\"NAG\u2019s HPC team was chosen to perform the following work because of their experience in working with large HPC centers on specialist business focused projects. It was conducted within NAG\u2019s involvement in the Performance Optimisation and Productivity Centre of Excellence.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/\" \/>\n<meta property=\"og:site_name\" content=\"nAG\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-04T15:43:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/nag.com\/wp-content\/uploads\/2023\/06\/marine-oil-gas-energy.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1255\" \/>\n\t<meta property=\"og:image:height\" content=\"836\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@NAGTalk\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/\",\"url\":\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/\",\"name\":\"Computational Cost Halved for Oil and Gas Seismic Code Through NAG HPC Expertise - nAG\",\"isPartOf\":{\"@id\":\"https:\/\/nag.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/nag.com\/wp-content\/uploads\/2023\/06\/marine-oil-gas-energy.jpg\",\"datePublished\":\"2023-07-04T15:30:31+00:00\",\"dateModified\":\"2023-07-04T15:43:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#primaryimage\",\"url\":\"https:\/\/nag.com\/wp-content\/uploads\/2023\/06\/marine-oil-gas-energy.jpg\",\"contentUrl\":\"https:\/\/nag.com\/wp-content\/uploads\/2023\/06\/marine-oil-gas-energy.jpg\",\"width\":1255,\"height\":836,\"caption\":\"Oil tanker and oil rig in the gulf\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/nag.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Case Studies\",\"item\":\"https:\/\/nag.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Computational Cost Halved for Oil and Gas Seismic Code Through NAG HPC Expertise\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/nag.com\/#website\",\"url\":\"https:\/\/nag.com\/\",\"name\":\"NAG\",\"description\":\"Robust, trusted numerical software and computational expertise.\",\"publisher\":{\"@id\":\"https:\/\/nag.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/nag.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/nag.com\/#organization\",\"name\":\"Numerical Algorithms Group\",\"alternateName\":\"NAG\",\"url\":\"https:\/\/nag.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nag.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/nag.com\/wp-content\/uploads\/2023\/11\/NAG-Logo.png\",\"contentUrl\":\"https:\/\/nag.com\/wp-content\/uploads\/2023\/11\/NAG-Logo.png\",\"width\":1244,\"height\":397,\"caption\":\"Numerical Algorithms Group\"},\"image\":{\"@id\":\"https:\/\/nag.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/NAGTalk\",\"https:\/\/www.linkedin.com\/company\/nag\/\",\"https:\/\/www.youtube.com\/user\/NumericalAlgorithms\",\"https:\/\/github.com\/numericalalgorithmsgroup\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Computational Cost Halved for Oil and Gas Seismic Code Through NAG HPC Expertise - nAG","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/","og_locale":"en_US","og_type":"article","og_title":"Computational Cost Halved for Oil and Gas Seismic Code Through NAG HPC Expertise - nAG","og_description":"NAG\u2019s HPC team was chosen to perform the following work because of their experience in working with large HPC centers on specialist business focused projects. It was conducted within NAG\u2019s involvement in the Performance Optimisation and Productivity Centre of Excellence.","og_url":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/","og_site_name":"nAG","article_modified_time":"2023-07-04T15:43:13+00:00","og_image":[{"width":1255,"height":836,"url":"https:\/\/nag.com\/wp-content\/uploads\/2023\/06\/marine-oil-gas-energy.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@NAGTalk","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/","url":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/","name":"Computational Cost Halved for Oil and Gas Seismic Code Through NAG HPC Expertise - nAG","isPartOf":{"@id":"https:\/\/nag.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#primaryimage"},"image":{"@id":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#primaryimage"},"thumbnailUrl":"https:\/\/nag.com\/wp-content\/uploads\/2023\/06\/marine-oil-gas-energy.jpg","datePublished":"2023-07-04T15:30:31+00:00","dateModified":"2023-07-04T15:43:13+00:00","breadcrumb":{"@id":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#primaryimage","url":"https:\/\/nag.com\/wp-content\/uploads\/2023\/06\/marine-oil-gas-energy.jpg","contentUrl":"https:\/\/nag.com\/wp-content\/uploads\/2023\/06\/marine-oil-gas-energy.jpg","width":1255,"height":836,"caption":"Oil tanker and oil rig in the gulf"},{"@type":"BreadcrumbList","@id":"https:\/\/nag.com\/case-studies\/computational-cost-halved-for-oil-and-gas-seismic-code-through-nag-hpc-expertise-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nag.com\/"},{"@type":"ListItem","position":2,"name":"Case Studies","item":"https:\/\/nag.com\/case-studies\/"},{"@type":"ListItem","position":3,"name":"Computational Cost Halved for Oil and Gas Seismic Code Through NAG HPC Expertise"}]},{"@type":"WebSite","@id":"https:\/\/nag.com\/#website","url":"https:\/\/nag.com\/","name":"NAG","description":"Robust, trusted numerical software and computational expertise.","publisher":{"@id":"https:\/\/nag.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nag.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/nag.com\/#organization","name":"Numerical Algorithms Group","alternateName":"NAG","url":"https:\/\/nag.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nag.com\/#\/schema\/logo\/image\/","url":"https:\/\/nag.com\/wp-content\/uploads\/2023\/11\/NAG-Logo.png","contentUrl":"https:\/\/nag.com\/wp-content\/uploads\/2023\/11\/NAG-Logo.png","width":1244,"height":397,"caption":"Numerical Algorithms Group"},"image":{"@id":"https:\/\/nag.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/NAGTalk","https:\/\/www.linkedin.com\/company\/nag\/","https:\/\/www.youtube.com\/user\/NumericalAlgorithms","https:\/\/github.com\/numericalalgorithmsgroup"]}]}},"_links":{"self":[{"href":"https:\/\/nag.com\/wp-json\/wp\/v2\/case-studies\/2860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nag.com\/wp-json\/wp\/v2\/case-studies"}],"about":[{"href":"https:\/\/nag.com\/wp-json\/wp\/v2\/types\/case-studies"}],"author":[{"embeddable":true,"href":"https:\/\/nag.com\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":5,"href":"https:\/\/nag.com\/wp-json\/wp\/v2\/case-studies\/2860\/revisions"}],"predecessor-version":[{"id":49890,"href":"https:\/\/nag.com\/wp-json\/wp\/v2\/case-studies\/2860\/revisions\/49890"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nag.com\/wp-json\/wp\/v2\/media\/1740"}],"wp:attachment":[{"href":"https:\/\/nag.com\/wp-json\/wp\/v2\/media?parent=2860"}],"wp:term":[{"taxonomy":"post-tag","embeddable":true,"href":"https:\/\/nag.com\/wp-json\/wp\/v2\/post-tag?post=2860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}