<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-27T14:03:14Z</responseDate><request verb="GetRecord" identifier="oai:repository.rice.edu:1911/88205" metadataPrefix="dim">https://repository.rice.edu/server/oai/request</request><GetRecord><record><header><identifier>oai:repository.rice.edu:1911/88205</identifier><datestamp>2024-01-11T21:05:38Z</datestamp><setSpec>com_1911_8299</setSpec><setSpec>col_1911_13110</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:doc="http://www.lyncode.com/xoai" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="advisor">Warburton, Timothy</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="committeeMember">Riviere, Beatrice</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="committeeMember">Symes, William W</dim:field>
   <dim:field mdschema="dc" element="creator">Medina, David</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2016-01-27T22:40:32Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2016-01-27T22:40:32Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="created">2014-12</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued">2014-10-23</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted">December 2014</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="updated">2016-01-27T22:40:32Z</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="citation">Medina, David. &amp;quot;OCCA: A Unified Approach to Multi-Threading Languages.&amp;quot; (2014) Master’s Thesis,  Rice University.  &amp;lt;a href=&amp;quot;https://hdl.handle.net/1911/88205&amp;quot;&amp;gt;https://hdl.handle.net/1911/88205&amp;lt;/a&amp;gt;.</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">https://hdl.handle.net/1911/88205</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract">With the current trend of using co-processors for accelerating computations, we are presented with architectures and corresponding programming languages. The inability to predict lasting languages and architectures has led to the development of distinct languages and standards. This thesis details my work on occa, a unified threading language presented as a portable solution to hardware-accelerated coding that combines aspects of OpenMP, OpenCL, and CUDA. With the similarities between OpenMP, OpenCL and CUDA, I present a macro-based approach on a unified kernel language that currently encompasses OpenMP, OpenCL and CUDA. Along with kernel generation, occa includes an API (application programming interface) which serves as a wrapper on the three multi-threading languages. The back-end on occa dynamically compiles and loads function objects for a flexible run-time environment to use different hardware architectures. 

Computational results using a spectrum of methods, namely finite difference, spectral element and discontinuous Galerkin methods, utilizing occa are shown to deliver portable high performance on different architectures and platforms. The finite difference method chapter reverse engineers optimized code written in CUDA and used in industry, discusses distinct features available in CUDA and compares occa implementations using different optimization techniques. The spectral element method and discontinuous Galerkin methods are derived from two projects I worked on during my studies: gNek, a distributed high-order spectral element method (SEM) implementation for the incompressible Navier-Stokes equations, and RiDG, equipped with discontinuous Galerkin (DG) to simulate acoustic wave equations under different assumptions in the material anisotropies. The parallel algorithms used to achieve high parallelization for GPU acceleration are discussed in both, gNek and RiDG, together with performance results.</dim:field>
   <dim:field mdschema="dc" element="format" qualifier="mimetype">application/pdf</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso">eng</dim:field>
   <dim:field mdschema="dc" element="rights">Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder.</dim:field>
   <dim:field mdschema="dc" element="subject">high performance computing</dim:field>
   <dim:field mdschema="dc" element="subject">cuda</dim:field>
   <dim:field mdschema="dc" element="subject">opencl</dim:field>
   <dim:field mdschema="dc" element="subject">finite elements</dim:field>
   <dim:field mdschema="dc" element="subject">finite difference</dim:field>
   <dim:field mdschema="dc" element="subject">discontinuous galerkin</dim:field>
   <dim:field mdschema="dc" element="subject">multithreading</dim:field>
   <dim:field mdschema="dc" element="subject">openmp</dim:field>
   <dim:field mdschema="dc" element="subject" />
   <dim:field mdschema="dc" element="title">OCCA: A Unified Approach to Multi-Threading Languages</dim:field>
   <dim:field mdschema="dc" element="type">Thesis</dim:field>
   <dim:field mdschema="dc" element="type" qualifier="material">Text</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="department">Computational and Applied Mathematics</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="discipline">Engineering</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="grantor">Rice University</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="level">Masters</dim:field>
   <dim:field mdschema="thesis" element="degree" qualifier="name">Master of Arts</dim:field>
   <dim:field mdschema="others" element="access-status">open.access</dim:field>
</dim:dim>
</metadata></record></GetRecord></OAI-PMH>