blob: a9da78a4af5a818f350c4ab5eb7f010431a1dc0e [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>CudaGrid (OpenJ9 CUDA Classes)</title>
<meta name="keywords" content="com.ibm.cuda.CudaGrid class">
<meta name="keywords" content="blockDimX">
<meta name="keywords" content="blockDimY">
<meta name="keywords" content="blockDimZ">
<meta name="keywords" content="gridDimX">
<meta name="keywords" content="gridDimY">
<meta name="keywords" content="gridDimZ">
<meta name="keywords" content="sharedMemBytes">
<meta name="keywords" content="stream">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="CudaGrid (OpenJ9 CUDA Classes)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../com/ibm/cuda/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/CudaGrid.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><strong>OpenJ9 CUDA Classes</strong></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/ibm/cuda/CudaGlobal.html" title="class in com.ibm.cuda"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../com/ibm/cuda/CudaJitInputType.html" title="enum in com.ibm.cuda"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/ibm/cuda/CudaGrid.html" target="_top">Frames</a></li>
<li><a href="CudaGrid.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#methods.inherited.from.class.java.lang.Object">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.ibm.cuda</div>
<h2 title="Class CudaGrid" class="title">Class CudaGrid</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" target="_blank" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.ibm.cuda.CudaGrid</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="typeNameLabel">CudaGrid</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" target="_blank" title="class or interface in java.lang">Object</a></pre>
<div class="block">The <code>CudaGrid</code> class represents a kernel launch configuration.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#blockDimX">blockDimX</a></span></code>
<div class="block">The size of the thread block in the x dimension.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#blockDimY">blockDimY</a></span></code>
<div class="block">The size of the thread block in the y dimension.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#blockDimZ">blockDimZ</a></span></code>
<div class="block">The size of the thread block in the z dimension.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#gridDimX">gridDimX</a></span></code>
<div class="block">The size of the grid in the x dimension.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#gridDimY">gridDimY</a></span></code>
<div class="block">The size of the grid in the y dimension.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#gridDimZ">gridDimZ</a></span></code>
<div class="block">The size of the grid in the z dimension.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#sharedMemBytes">sharedMemBytes</a></span></code>
<div class="block">The number of bytes of shared memory to allocate to each thread block.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#stream">stream</a></span></code>
<div class="block">The stream on which the kernel should be queued
(or null for the default stream).</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#CudaGrid-com.ibm.cuda.Dim3-com.ibm.cuda.Dim3-">CudaGrid</a></span>(<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;gridDim,
<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;blockDim)</code>
<div class="block">Creates a grid with the specified dimensions, with no shared memory
on the default stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#CudaGrid-com.ibm.cuda.Dim3-com.ibm.cuda.Dim3-com.ibm.cuda.CudaStream-">CudaGrid</a></span>(<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;gridDim,
<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;blockDim,
<a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a>&nbsp;stream)</code>
<div class="block">Creates a grid with the specified dimensions with no shared memory
on the specified stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#CudaGrid-com.ibm.cuda.Dim3-com.ibm.cuda.Dim3-int-">CudaGrid</a></span>(<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;gridDim,
<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;blockDim,
int&nbsp;sharedMemBytes)</code>
<div class="block">Creates a grid with the specified dimensions and shared memory size
on the default stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#CudaGrid-com.ibm.cuda.Dim3-com.ibm.cuda.Dim3-int-com.ibm.cuda.CudaStream-">CudaGrid</a></span>(<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;gridDim,
<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;blockDim,
int&nbsp;sharedMemBytes,
<a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a>&nbsp;stream)</code>
<div class="block">Creates a grid with the specified dimensions and shared memory size
on the specified stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#CudaGrid-int-int-">CudaGrid</a></span>(int&nbsp;gridDim,
int&nbsp;blockDim)</code>
<div class="block">Creates a grid with the specified x dimensions with no shared memory
on the default stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#CudaGrid-int-int-com.ibm.cuda.CudaStream-">CudaGrid</a></span>(int&nbsp;gridDim,
int&nbsp;blockDim,
<a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a>&nbsp;stream)</code>
<div class="block">Creates a grid with the specified x dimensions with no shared memory
on the specified stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#CudaGrid-int-int-int-">CudaGrid</a></span>(int&nbsp;gridDim,
int&nbsp;blockDim,
int&nbsp;sharedMemBytes)</code>
<div class="block">Creates a grid with the specified x dimensions and shared memory size
on the default stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/ibm/cuda/CudaGrid.html#CudaGrid-int-int-int-com.ibm.cuda.CudaStream-">CudaGrid</a></span>(int&nbsp;gridDim,
int&nbsp;blockDim,
int&nbsp;sharedMemBytes,
<a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a>&nbsp;stream)</code>
<div class="block">Creates a grid with the specified x dimensions and shared memory size
on the specified stream.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" target="_blank" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="blockDimX">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>blockDimX</h4>
<pre>public final&nbsp;int blockDimX</pre>
<div class="block">The size of the thread block in the x dimension.</div>
</li>
</ul>
<a name="blockDimY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>blockDimY</h4>
<pre>public final&nbsp;int blockDimY</pre>
<div class="block">The size of the thread block in the y dimension.</div>
</li>
</ul>
<a name="blockDimZ">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>blockDimZ</h4>
<pre>public final&nbsp;int blockDimZ</pre>
<div class="block">The size of the thread block in the z dimension.</div>
</li>
</ul>
<a name="gridDimX">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gridDimX</h4>
<pre>public final&nbsp;int gridDimX</pre>
<div class="block">The size of the grid in the x dimension.</div>
</li>
</ul>
<a name="gridDimY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gridDimY</h4>
<pre>public final&nbsp;int gridDimY</pre>
<div class="block">The size of the grid in the y dimension.</div>
</li>
</ul>
<a name="gridDimZ">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>gridDimZ</h4>
<pre>public final&nbsp;int gridDimZ</pre>
<div class="block">The size of the grid in the z dimension.</div>
</li>
</ul>
<a name="sharedMemBytes">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sharedMemBytes</h4>
<pre>public final&nbsp;int sharedMemBytes</pre>
<div class="block">The number of bytes of shared memory to allocate to each thread block.</div>
</li>
</ul>
<a name="stream">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>stream</h4>
<pre>public final&nbsp;<a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a> stream</pre>
<div class="block">The stream on which the kernel should be queued
(or null for the default stream).</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="CudaGrid-com.ibm.cuda.Dim3-com.ibm.cuda.Dim3-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CudaGrid</h4>
<pre>public&nbsp;CudaGrid(<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;gridDim,
<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;blockDim)</pre>
<div class="block">Creates a grid with the specified dimensions, with no shared memory
on the default stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gridDim</code> - the dimensions of the grid</dd>
<dd><code>blockDim</code> - the dimensions of the thread block</dd>
</dl>
</li>
</ul>
<a name="CudaGrid-com.ibm.cuda.Dim3-com.ibm.cuda.Dim3-com.ibm.cuda.CudaStream-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CudaGrid</h4>
<pre>public&nbsp;CudaGrid(<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;gridDim,
<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;blockDim,
<a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a>&nbsp;stream)</pre>
<div class="block">Creates a grid with the specified dimensions with no shared memory
on the specified stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gridDim</code> - the dimensions of the grid</dd>
<dd><code>blockDim</code> - the dimensions of the thread block</dd>
<dd><code>stream</code> - the stream on which the kernel should be queued
(or null for the default stream)</dd>
</dl>
</li>
</ul>
<a name="CudaGrid-com.ibm.cuda.Dim3-com.ibm.cuda.Dim3-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CudaGrid</h4>
<pre>public&nbsp;CudaGrid(<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;gridDim,
<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;blockDim,
int&nbsp;sharedMemBytes)</pre>
<div class="block">Creates a grid with the specified dimensions and shared memory size
on the default stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gridDim</code> - the dimensions of the grid</dd>
<dd><code>blockDim</code> - the dimensions of the thread block</dd>
<dd><code>sharedMemBytes</code> - the number of bytes of shared memory to allocate to each thread block</dd>
</dl>
</li>
</ul>
<a name="CudaGrid-com.ibm.cuda.Dim3-com.ibm.cuda.Dim3-int-com.ibm.cuda.CudaStream-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CudaGrid</h4>
<pre>public&nbsp;CudaGrid(<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;gridDim,
<a href="../../../com/ibm/cuda/Dim3.html" title="class in com.ibm.cuda">Dim3</a>&nbsp;blockDim,
int&nbsp;sharedMemBytes,
<a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a>&nbsp;stream)</pre>
<div class="block">Creates a grid with the specified dimensions and shared memory size
on the specified stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gridDim</code> - the dimensions of the grid</dd>
<dd><code>blockDim</code> - the dimensions of the thread block</dd>
<dd><code>sharedMemBytes</code> - the number of bytes of shared memory to allocate to each thread block</dd>
<dd><code>stream</code> - the stream on which the kernel should be queued
(or null for the default stream)</dd>
</dl>
</li>
</ul>
<a name="CudaGrid-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CudaGrid</h4>
<pre>public&nbsp;CudaGrid(int&nbsp;gridDim,
int&nbsp;blockDim)</pre>
<div class="block">Creates a grid with the specified x dimensions with no shared memory
on the default stream. The y and z dimensions are set to 1.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gridDim</code> - the x dimension of the grid</dd>
<dd><code>blockDim</code> - the x dimension of the thread block</dd>
</dl>
</li>
</ul>
<a name="CudaGrid-int-int-com.ibm.cuda.CudaStream-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CudaGrid</h4>
<pre>public&nbsp;CudaGrid(int&nbsp;gridDim,
int&nbsp;blockDim,
<a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a>&nbsp;stream)</pre>
<div class="block">Creates a grid with the specified x dimensions with no shared memory
on the specified stream. The y and z dimensions are set to 1.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gridDim</code> - the x dimension of the grid</dd>
<dd><code>blockDim</code> - the x dimension of the thread block</dd>
<dd><code>stream</code> - the stream on which the kernel should be queued
(or null for the default stream)</dd>
</dl>
</li>
</ul>
<a name="CudaGrid-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CudaGrid</h4>
<pre>public&nbsp;CudaGrid(int&nbsp;gridDim,
int&nbsp;blockDim,
int&nbsp;sharedMemBytes)</pre>
<div class="block">Creates a grid with the specified x dimensions and shared memory size
on the default stream. The y and z dimensions are set to 1.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gridDim</code> - the x dimension of the grid</dd>
<dd><code>blockDim</code> - the x dimension of the thread block</dd>
<dd><code>sharedMemBytes</code> - the number of bytes of shared memory to allocate to each thread block</dd>
</dl>
</li>
</ul>
<a name="CudaGrid-int-int-int-com.ibm.cuda.CudaStream-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>CudaGrid</h4>
<pre>public&nbsp;CudaGrid(int&nbsp;gridDim,
int&nbsp;blockDim,
int&nbsp;sharedMemBytes,
<a href="../../../com/ibm/cuda/CudaStream.html" title="class in com.ibm.cuda">CudaStream</a>&nbsp;stream)</pre>
<div class="block">Creates a grid with the specified x dimensions and shared memory size
on the specified stream. The y and z dimensions are set to 1.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>gridDim</code> - the x dimension of the grid</dd>
<dd><code>blockDim</code> - the x dimension of the thread block</dd>
<dd><code>sharedMemBytes</code> - the number of bytes of shared memory to allocate to each thread block</dd>
<dd><code>stream</code> - the stream on which the kernel should be queued
(or null for the default stream)</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../com/ibm/cuda/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/CudaGrid.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><strong>OpenJ9 CUDA Classes</strong></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/ibm/cuda/CudaGlobal.html" title="class in com.ibm.cuda"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../com/ibm/cuda/CudaJitInputType.html" title="enum in com.ibm.cuda"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/ibm/cuda/CudaGrid.html" target="_top">Frames</a></li>
<li><a href="CudaGrid.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#methods.inherited.from.class.java.lang.Object">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><a href="https://www.eclipse.org/openj9/" target="_blank">Eclipse OpenJ9 website.</a><br> To raise a bug report or suggest an improvement create an <a href="https://github.com/eclipse-openj9/openj9/issues" target="_blank">Eclipse OpenJ9 issue.</a><br> Copyright &copy; 2013, 2021, IBM Corp. and others.</small></p>
</body>
</html>