<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="3.0" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">GMD</journal-id>
<journal-title-group>
<journal-title>Geoscientific Model Development</journal-title>
<abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">1991-9603</issn>
<publisher><publisher-name>Copernicus Publications</publisher-name>
<publisher-loc>Göttingen, Germany</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.5194/gmd-6-17-2013</article-id>
<title-group>
<article-title>Porting marine ecosystem model spin-up using transport matrices   to GPUs</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Siewertsen</surname>
<given-names>E.</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Piwonski</surname>
<given-names>J.</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Slawig</surname>
<given-names>T.</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>Institute for Computer Science, Christian-Albrechts Universität zu Kiel, 24098 Kiel, Germany</addr-line>
</aff>
<aff id="aff2">
<label>2</label>
<addr-line>Institute for Computer Science and Kiel Marine Science – Centre for Interdisciplinary Marine Science, Cluster The Future Ocean, Christian-Albrechts Universität zu Kiel,  24098 Kiel, Germany</addr-line>
</aff>
<pub-date pub-type="epub">
<day>08</day>
<month>01</month>
<year>2013</year>
</pub-date>
<volume>6</volume>
<issue>1</issue>
<fpage>17</fpage>
<lpage>28</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2013 E. Siewertsen et al.</copyright-statement>
<copyright-year>2013</copyright-year>
<license license-type="open-access">
<license-p>This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this licence, visit <ext-link ext-link-type="uri"  xlink:href="https://creativecommons.org/licenses/by/3.0/">https://creativecommons.org/licenses/by/3.0/</ext-link></license-p>
</license>
</permissions>
<self-uri xlink:href="https://gmd.copernicus.org/articles/6/17/2013/gmd-6-17-2013.html">This article is available from https://gmd.copernicus.org/articles/6/17/2013/gmd-6-17-2013.html</self-uri>
<self-uri xlink:href="https://gmd.copernicus.org/articles/6/17/2013/gmd-6-17-2013.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/6/17/2013/gmd-6-17-2013.pdf</self-uri>
<abstract>
<p>We have ported an implementation of the spin-up for marine ecosystem
models based on transport matrices to graphics
processing units (GPUs).  The original implementation was designed
for distributed-memory architectures and uses the
Portable, Extensible Toolkit for Scientific Computation (PETSc) library
that is based on the Message Passing Interface (MPI) standard.  The
spin-up computes a steady seasonal cycle of ecosystem tracers
with climatological ocean circulation data as forcing. Since the
transport is linear with respect to the tracers, the resulting
operator is represented by matrices. Each
iteration of the spin-up involves two matrix-vector multiplications
and the evaluation of the used biogeochemical model.  The original
code was written in C and Fortran. On the GPU, we use the
Compute Unified Device Architecture (CUDA)
standard, a customized version of PETSc and a commercial CUDA
Fortran compiler. We describe the extensions to PETSc and the
modifications of the original C and Fortran codes that had to be
done. Here we make use of freely available libraries for the GPU.
We analyze the computational effort of the main parts of the spin-up
for two exemplar ecosystem models and compare the overall
computational time to those necessary on different CPUs. The results
show that a consumer GPU can compete with a significant number of
cluster CPUs without further code optimization.</p>
</abstract>
<counts><page-count count="12"/></counts>
</article-meta>
</front>
<body/>
<back>
<ref-list>
<title>References</title>
<ref id="ref1">
<label>1</label><mixed-citation publication-type="other" xlink:type="simple">Balay, S., Gropp, W.&amp;nbsp;D., McInnes, L.&amp;nbsp;C., and Smith, B.&amp;nbsp;F.: Efficient Management of Parallelism in Object Oriented Numerical Software Libraries, in: Modern Software Tools in Scientific Computing, edited by: Arge, E., Bruaset, A.&amp;nbsp;M., and Langtangen, H.&amp;nbsp;P.,   Birkh{ä}user Press, 163–202, 1997.</mixed-citation>
</ref>
<ref id="ref2">
<label>2</label><mixed-citation publication-type="other" xlink:type="simple">Balay, S., Buschelman, K., Gropp, W.&amp;nbsp;D., Kaushik, D., Knepley, M.&amp;nbsp;G., McInnes, L.&amp;nbsp;C., Smith, B.&amp;nbsp;F., and Zhang, H.: PETSc {W}eb page, available at: &lt;a href=&quot;http://www.mcs.anl.gov/petsc&quot;&gt;http://www.mcs.anl.gov/petsc&lt;/a&gt; (last access: 7 January 2013), 2012.</mixed-citation>
</ref>
<ref id="ref3">
<label>3</label><mixed-citation publication-type="other" xlink:type="simple">Bell, N. and Garland, M.: Efficient sparse matrix-vector multiplication on CUDA, Technical Report NVR-2008-04, NVIDIA Corporation, 2008.</mixed-citation>
</ref>
<ref id="ref4">
<label>4</label><mixed-citation publication-type="other" xlink:type="simple">Bell, N. and Garland, M.: Implementing sparse matrix-vector multiplication on throughput-oriented processors, in: SC &apos;09: Proceedings of the Conference on High Performance Computing Networking, Storage and Analysis, New York 2009, ACM, 1–11, 2009.</mixed-citation>
</ref>
<ref id="ref5">
<label>5</label><mixed-citation publication-type="other" xlink:type="simple">Bell, N. and Garland, M.: Cusp: Generic Parallel Algorithms for Sparse Matrix and Graph Computations, available at: &lt;a href=&quot;http://cusp-library.googlecode.com&quot;&gt;http://cusp-library.googlecode.com&lt;/a&gt;  (last access: 7 January 2013), 2010.</mixed-citation>
</ref>
<ref id="ref6">
<label>6</label><mixed-citation publication-type="other" xlink:type="simple">Bell, N. and Hoberock, J.: Thrust: A Producivity-Oriented Library for CUDA, GPU Computing Gems Jade Edition, 2011.</mixed-citation>
</ref>
<ref id="ref7">
<label>7</label><mixed-citation publication-type="other" xlink:type="simple">Dutkiewicz, S., Follows, M., and Parekh, P.: Interactions of the iron and phosphorus cycles: A three-dimensional model study, Global Biogeochem. Cy., 19, 1–22, 2005.</mixed-citation>
</ref>
<ref id="ref8">
<label>8</label><mixed-citation publication-type="other" xlink:type="simple">Hanappe, P., Beurivé, A., Laguzet, F., Steels, L., Bellouin, N., Boucher, O., Yamazaki, Y. H., Aina, T., and Allen, M.: FAMOUS, faster: using parallel computing techniques to accelerate the FAMOUS/HadCM3 climate model with a focus on the radiative transfer algorithm, Geosci. Model Dev., 4, 835–844, &lt;a href=&quot;http://dx.doi.org/10.5194/gmd-4-835-2011&quot;&gt;https://doi.org/10.5194/gmd-4-835-2011&lt;/a&gt;, 2011.</mixed-citation>
</ref>
<ref id="ref9">
<label>9</label><mixed-citation publication-type="other" xlink:type="simple">Hoberock, J. and Bell, N.: Thrust, available at: &lt;a href=&quot;http://thrust.github.com&quot;&gt;http://thrust.github.com&lt;/a&gt; (last access: 7 January 2013), 2012.</mixed-citation>
</ref>
<ref id="ref10">
<label>10</label><mixed-citation publication-type="other" xlink:type="simple">Horn, S.: ASAMgpu V1.0 –  a moist fully compressible atmospheric model using graphics processing units (GPUs), Geosci. Model Dev., 5, 345–353, &lt;a href=&quot;http://dx.doi.org/10.5194/gmd-5-345-2012&quot;&gt;https://doi.org/10.5194/gmd-5-345-2012&lt;/a&gt;, 2012.</mixed-citation>
</ref>
<ref id="ref11">
<label>11</label><mixed-citation publication-type="other" xlink:type="simple">Khatiwala, S.: A computational framework for simulation of biogeochemical tracers in the ocean, Global Biogeochem. Cy., 21, GB3001, &lt;a href=&quot;http://dx.doi.org/10.1029/2007GB002923&quot;&gt;https://doi.org/10.1029/2007GB002923&lt;/a&gt;, 2007.</mixed-citation>
</ref>
<ref id="ref12">
<label>12</label><mixed-citation publication-type="other" xlink:type="simple">Khatiwala, S., Visbeck, M., and Cane, M.: Accelerated simulation of passive tracers in ocean circulation models, Ocean Modell., 9, 51–69, 2005.</mixed-citation>
</ref>
<ref id="ref13">
<label>13</label><mixed-citation publication-type="other" xlink:type="simple">Kriest, I., Khatiwala, S., and Oschlies, A.: Towards an assessment of simple global marine biogeochemical models of different complexity, Prog. Oceanogr., 86, 337–360, &lt;a href=&quot;http://dx.doi.org/10.1016/j.pocean.2010.05.002&quot;&gt;https://doi.org/10.1016/j.pocean.2010.05.002&lt;/a&gt;, 2010.</mixed-citation>
</ref>
<ref id="ref14">
<label>14</label><mixed-citation publication-type="other" xlink:type="simple">Marshall, J., Adcroft, A., Hill, C., Perelman, L., and Heisey, C.: A finite-volume, incompressible Navier Stokes model for studies of the ocean on parallel computers, J. Geophys. Res., 102, 5753–5766, 1997.</mixed-citation>
</ref>
<ref id="ref15">
<label>15</label><mixed-citation publication-type="other" xlink:type="simple">Martin, J.&amp;nbsp;H., Knauer, G.&amp;nbsp;A., Karl, D.&amp;nbsp;M., and Broenkow, W.&amp;nbsp;W.: VERTEX: carbon cycling in the northeast Pacific, Deep Sea Res. Part A, 34, 267–285, 1987.</mixed-citation>
</ref>
<ref id="ref16">
<label>16</label><mixed-citation publication-type="other" xlink:type="simple">Minden, V., Smith, B., and Knepley, M.: Preliminary implementation of PETSc using GPUs, in: Proceedings of the 2010 International Workshop of GPU Solutions to Multiscale Problems in Science and Engineering, Harbin Nov. 2010, Springer, 2010.</mixed-citation>
</ref>
<ref id="ref17">
<label>17</label><mixed-citation publication-type="other" xlink:type="simple">NVIDIA Corporation: CUDA {C} Programming Guide, available at: &lt;a href=&quot;http://developer.download.nvidia.com/compute/DevZone/docs/htm% l/C/doc/CUDA_C_Programming_Guide.pdf&quot;&gt;http://developer.download.nvidia.com/compute/DevZone/docs/htm% l/C/doc/CUDA_C_Programming_Guide.pdf&lt;/a&gt; (last access: 7 January 2013), 2011.</mixed-citation>
</ref>
<ref id="ref18">
<label>18</label><mixed-citation publication-type="other" xlink:type="simple">NVIDIA Corporation: CUDA, available at: \urlprefix&lt;a href=&quot;http://www.nvidia.com/object/cuda_home_new.html&quot;&gt;http://www.nvidia.com/object/cuda_home_new.html&lt;/a&gt; (last access: 7 January 2013), 2012.</mixed-citation>
</ref>
<ref id="ref19">
<label>19</label><mixed-citation publication-type="other" xlink:type="simple">Paltridge, G.&amp;nbsp;W. and Platt, C. M.&amp;nbsp;R.: Radiative Processes in Meteorology and Climatology, Elsevier, New York, 1976.</mixed-citation>
</ref>
<ref id="ref20">
<label>20</label><mixed-citation publication-type="other" xlink:type="simple">Parekh, P., Follows, M.&amp;nbsp;J., and Boyle, E.&amp;nbsp;A.: Decoupling iron and phosphate in the global ocean, Global Biogeochem. Cy., 19, GB2020, &lt;a href=&quot;http://dx.doi.org/10.1029/2004GB002280&quot;&gt;https://doi.org/10.1029/2004GB002280&lt;/a&gt;, 2005.</mixed-citation>
</ref>
<ref id="ref21">
<label>21</label><mixed-citation publication-type="other" xlink:type="simple">Piwonski, J. and Slawig, T.: Metos3D: A {M}arine {E}cosystem {T}oolkit for {O}ptimization and {S}imulation, CAU Kiel, Institut f{ü}r Informatik, available at:   &lt;a href=&quot;https://github.com/metos3d&quot;&gt;https://github.com/metos3d&lt;/a&gt; (last access: 7 January 2013), 2012.</mixed-citation>
</ref>
<ref id="ref22">
<label>22</label><mixed-citation publication-type="other" xlink:type="simple">The Khronos Group: OpenCL – The open standard for parallel programming of heterogeneous systems, available at: &lt;a href=&quot;http://www.khronos.org/opencl/&quot;&gt;http://www.khronos.org/opencl/&lt;/a&gt; (last access: 7 January 2013), 2012.</mixed-citation>
</ref>
<ref id="ref23">
<label>23</label><mixed-citation publication-type="other" xlink:type="simple">The Portland Group: PGI Fortran Compiler Reference Manual, available at: &lt;a href=&quot;http://www.pgroup.com/doc/pgiref.pdf&quot;&gt;http://www.pgroup.com/doc/pgiref.pdf&lt;/a&gt; (last access: 7 January 2013), 2011{a}.</mixed-citation>
</ref>
<ref id="ref24">
<label>24</label><mixed-citation publication-type="other" xlink:type="simple">The Portland Group: CUDA Fortran Programming Guide and Reference, available at:   &lt;a href=&quot;http://www.pgroup.com/doc/pgicudafortug.pdf&quot;&gt;http://www.pgroup.com/doc/pgicudafortug.pdf&lt;/a&gt; (last access: 7 January 2013), 2011{b}.</mixed-citation>
</ref>
<ref id="ref25">
<label>25</label><mixed-citation publication-type="other" xlink:type="simple">The Portland Group: PGI CUDA-Fortran Compiler, available at: \urlprefix&lt;a href=&quot;http://www.pgroup.com/resources/cudafortran.htm&quot;&gt;http://www.pgroup.com/resources/cudafortran.htm&lt;/a&gt; (last access: 7 January 2013), 2012.</mixed-citation>
</ref>
<ref id="ref26">
<label>26</label><mixed-citation publication-type="other" xlink:type="simple">Walker, D.&amp;nbsp;W. and Dongarra, J.&amp;nbsp;J.: MPI: A Standard Message Passing Interface, Supercomputer, 12, 56–68, 1996.</mixed-citation>
</ref>
</ref-list>
</back>
</article>