898 lines
68 KiB
HTML
898 lines
68 KiB
HTML
<!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 (version 1.7.0_51) on Wed Apr 06 13:11:03 EDT 2016 -->
|
|
<title>Module (Parallel Java 2 Library Documentation)</title>
|
|
<meta name="date" content="2016-04-06">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Module (Parallel Java 2 Library Documentation)";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/Module.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-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../edu/rit/gpu/LaunchTimeoutCudaException.html" title="class in edu.rit.gpu"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../edu/rit/gpu/NotFoundCudaException.html" title="class in edu.rit.gpu"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?edu/rit/gpu/Module.html" target="_top">Frames</a></li>
|
|
<li><a href="Module.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All 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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">edu.rit.gpu</div>
|
|
<h2 title="Class Module" class="title">Class Module</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>edu.rit.gpu.Module</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">Module</span>
|
|
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
|
|
<div class="block">Class Module encapsulates a module that contains GPU kernel functions and
|
|
data. To use a module:
|
|
<OL TYPE=1>
|
|
<P><LI>
|
|
Construct an instance of class Module by calling the <a href="../../../edu/rit/gpu/Gpu.html#getModule(java.lang.String)"><code>getModule()</code></a> method on a <a href="../../../edu/rit/gpu/Gpu.html" title="class in edu.rit.gpu">Gpu</a> object.
|
|
<P><LI>
|
|
Call methods on the Module object to perform module operations, such as:
|
|
<P><LI>
|
|
Get a proxy for a GPU kernel function —
|
|
<UL>
|
|
<LI><a href="../../../edu/rit/gpu/Module.html#getKernel(java.lang.Class)"><code>getKernel()</code></a>
|
|
</UL>
|
|
<P><LI>
|
|
Get a reference to a statically allocated variable or array in GPU memory
|
|
—
|
|
<UL>
|
|
<LI><a href="../../../edu/rit/gpu/Module.html#getByteVbl(java.lang.String)"><code>getByteVbl()</code></a>,
|
|
<a href="../../../edu/rit/gpu/Module.html#getByteArray(java.lang.String, int)"><code>getByteArray()</code></a>
|
|
<LI><a href="../../../edu/rit/gpu/Module.html#getShortVbl(java.lang.String)"><code>getShortVbl()</code></a>,
|
|
<a href="../../../edu/rit/gpu/Module.html#getShortArray(java.lang.String, int)"><code>getShortArray()</code></a>
|
|
<LI><a href="../../../edu/rit/gpu/Module.html#getIntVbl(java.lang.String)"><code>getIntVbl()</code></a>,
|
|
<a href="../../../edu/rit/gpu/Module.html#getIntArray(java.lang.String, int)"><code>getIntArray()</code></a>
|
|
<LI><a href="../../../edu/rit/gpu/Module.html#getLongVbl(java.lang.String)"><code>getLongVbl()</code></a>,
|
|
<a href="../../../edu/rit/gpu/Module.html#getLongArray(java.lang.String, int)"><code>getLongArray()</code></a>
|
|
<LI><a href="../../../edu/rit/gpu/Module.html#getFloatVbl(java.lang.String)"><code>getFloatVbl()</code></a>,
|
|
<a href="../../../edu/rit/gpu/Module.html#getFloatArray(java.lang.String, int)"><code>getFloatArray()</code></a>
|
|
<LI><a href="../../../edu/rit/gpu/Module.html#getDoubleVbl(java.lang.String)"><code>getDoubleVbl()</code></a>,
|
|
<a href="../../../edu/rit/gpu/Module.html#getDoubleArray(java.lang.String, int)"><code>getDoubleArray()</code></a>
|
|
<LI><a href="../../../edu/rit/gpu/Module.html#getStructVbl(java.lang.String, java.lang.Class)"><code>getStructVbl()</code></a>,
|
|
<a href="../../../edu/rit/gpu/Module.html#getStructArray(java.lang.String, java.lang.Class, int)"><code>getStructArray()</code></a>
|
|
</UL>
|
|
</OL>
|
|
<P>
|
|
Study the source code of the classes in package <a href="../../../edu/rit/gpu/example/package-summary.html">edu.rit.pj2.example</a> to see examples of Parallel Java 2
|
|
GPU programs.
|
|
<P>
|
|
<I>Note:</I> Class Module is not multiple thread safe. It is assumed that
|
|
only one thread at a time will call methods on a Module object.</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#finalize()">finalize</a></strong>()</code>
|
|
<div class="block">Finalize this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuByteArray.html" title="class in edu.rit.gpu">GpuByteArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getByteArray(java.lang.String, int)">getByteArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</code>
|
|
<div class="block">Create a new GPU byte array mirroring the given global variable in this
|
|
module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuByteArray.html" title="class in edu.rit.gpu">GpuByteArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getByteArray(java.lang.String, int, int)">getByteArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</code>
|
|
<div class="block">Create a new GPU byte array mirroring the given global variable in this
|
|
module, of which the given portion is mirrored in the CPU.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuByteVbl.html" title="class in edu.rit.gpu">GpuByteVbl</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getByteVbl(java.lang.String)">getByteVbl</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Create a new GPU byte variable mirroring the given global variable in
|
|
this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuDoubleArray.html" title="class in edu.rit.gpu">GpuDoubleArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getDoubleArray(java.lang.String, int)">getDoubleArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</code>
|
|
<div class="block">Create a new GPU double array mirroring the given global variable in this
|
|
module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuDoubleArray.html" title="class in edu.rit.gpu">GpuDoubleArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getDoubleArray(java.lang.String, int, int)">getDoubleArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</code>
|
|
<div class="block">Create a new GPU double array mirroring the given global variable in this
|
|
module, of which the given portion is mirrored in the CPU.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuDoubleVbl.html" title="class in edu.rit.gpu">GpuDoubleVbl</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getDoubleVbl(java.lang.String)">getDoubleVbl</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Create a new GPU double variable mirroring the given global variable in
|
|
this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuFloatArray.html" title="class in edu.rit.gpu">GpuFloatArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getFloatArray(java.lang.String, int)">getFloatArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</code>
|
|
<div class="block">Create a new GPU float array mirroring the given global variable in this
|
|
module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuFloatArray.html" title="class in edu.rit.gpu">GpuFloatArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getFloatArray(java.lang.String, int, int)">getFloatArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</code>
|
|
<div class="block">Create a new GPU float array mirroring the given global variable in this
|
|
module, of which the given portion is mirrored in the CPU.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuFloatVbl.html" title="class in edu.rit.gpu">GpuFloatVbl</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getFloatVbl(java.lang.String)">getFloatVbl</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Create a new GPU float variable mirroring the given global variable in
|
|
this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuIntArray.html" title="class in edu.rit.gpu">GpuIntArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getIntArray(java.lang.String, int)">getIntArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</code>
|
|
<div class="block">Create a new GPU integer array mirroring the given global variable in
|
|
this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuIntArray.html" title="class in edu.rit.gpu">GpuIntArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getIntArray(java.lang.String, int, int)">getIntArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</code>
|
|
<div class="block">Create a new GPU integer array mirroring the given global variable in
|
|
this module, of which the given portion is mirrored in the CPU.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuIntVbl.html" title="class in edu.rit.gpu">GpuIntVbl</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getIntVbl(java.lang.String)">getIntVbl</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Create a new GPU integer variable mirroring the given global variable in
|
|
this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><T extends <a href="../../../edu/rit/gpu/Kernel.html" title="interface in edu.rit.gpu">Kernel</a>> <br>T</code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getKernel(java.lang.Class)">getKernel</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> intf)</code>
|
|
<div class="block">Get a GPU kernel function from this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuLongArray.html" title="class in edu.rit.gpu">GpuLongArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getLongArray(java.lang.String, int)">getLongArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</code>
|
|
<div class="block">Create a new GPU long integer array mirroring the given global variable
|
|
in this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuLongArray.html" title="class in edu.rit.gpu">GpuLongArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getLongArray(java.lang.String, int, int)">getLongArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</code>
|
|
<div class="block">Create a new GPU long integer array mirroring the given global variable
|
|
in this module, of which the given portion is mirrored in the CPU.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuLongVbl.html" title="class in edu.rit.gpu">GpuLongVbl</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getLongVbl(java.lang.String)">getLongVbl</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Create a new GPU long integer variable mirroring the given global
|
|
variable in this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuShortArray.html" title="class in edu.rit.gpu">GpuShortArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getShortArray(java.lang.String, int)">getShortArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</code>
|
|
<div class="block">Create a new GPU short integer array mirroring the given global variable
|
|
in this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuShortArray.html" title="class in edu.rit.gpu">GpuShortArray</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getShortArray(java.lang.String, int, int)">getShortArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</code>
|
|
<div class="block">Create a new GPU short integer array mirroring the given global variable
|
|
in this module, of which the given portion is mirrored in the CPU.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../edu/rit/gpu/GpuShortVbl.html" title="class in edu.rit.gpu">GpuShortVbl</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getShortVbl(java.lang.String)">getShortVbl</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code>
|
|
<div class="block">Create a new GPU short integer variable mirroring the given global
|
|
variable in this module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><T extends <a href="../../../edu/rit/gpu/Struct.html" title="class in edu.rit.gpu">Struct</a>> <br><a href="../../../edu/rit/gpu/GpuStructArray.html" title="class in edu.rit.gpu">GpuStructArray</a><T></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getStructArray(java.lang.String, java.lang.Class, int)">getStructArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type,
|
|
int len)</code>
|
|
<div class="block">Create a new GPU struct array mirroring the given global variable in this
|
|
module.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><T extends <a href="../../../edu/rit/gpu/Struct.html" title="class in edu.rit.gpu">Struct</a>> <br><a href="../../../edu/rit/gpu/GpuStructArray.html" title="class in edu.rit.gpu">GpuStructArray</a><T></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getStructArray(java.lang.String, java.lang.Class, int, int)">getStructArray</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type,
|
|
int len,
|
|
int cpulen)</code>
|
|
<div class="block">Create a new GPU struct array mirroring the given global variable in this
|
|
module, of which the given portion is mirrored in the CPU.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><T extends <a href="../../../edu/rit/gpu/Struct.html" title="class in edu.rit.gpu">Struct</a>> <br><a href="../../../edu/rit/gpu/GpuStructVbl.html" title="class in edu.rit.gpu">GpuStructVbl</a><T></code></td>
|
|
<td class="colLast"><code><strong><a href="../../../edu/rit/gpu/Module.html#getStructVbl(java.lang.String, java.lang.Class)">getStructVbl</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code>
|
|
<div class="block">Create a new GPU struct variable mirroring the given global variable in
|
|
this module.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
|
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/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">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="getKernel(java.lang.Class)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getKernel</h4>
|
|
<pre>public <T extends <a href="../../../edu/rit/gpu/Kernel.html" title="interface in edu.rit.gpu">Kernel</a>> T getKernel(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> intf)</pre>
|
|
<div class="block">Get a GPU kernel function from this module. The kernel function is
|
|
specified by the given interface, which must extend interface <a href="../../../edu/rit/gpu/Kernel.html" title="interface in edu.rit.gpu">Kernel</a>. The kernel function's name is that of the method
|
|
declared in the given interface. The return value is a proxy object that
|
|
implements the given interface. For further information, see interface
|
|
<a href="../../../edu/rit/gpu/Kernel.html" title="interface in edu.rit.gpu">Kernel</a>.</div>
|
|
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - Kernel function interface.</dd><dt><span class="strong">Parameters:</span></dt><dd><code>intf</code> - Kernel function interface's class object.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>Proxy object for invoking kernel function.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>intf</TT> does not meet the
|
|
requirements for a kernel function interface.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getByteVbl(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getByteVbl</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuByteVbl.html" title="class in edu.rit.gpu">GpuByteVbl</a> getByteVbl(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Create a new GPU byte variable mirroring the given global variable in
|
|
this module. The variable in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuByteVbl.html#item"><code>item</code></a> field, is initialized to zero. <I>The variable in
|
|
GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU byte variable.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getShortVbl(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getShortVbl</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuShortVbl.html" title="class in edu.rit.gpu">GpuShortVbl</a> getShortVbl(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Create a new GPU short integer variable mirroring the given global
|
|
variable in this module. The variable in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuShortVbl.html#item"><code>item</code></a> field, is initialized to zero. <I>The variable in
|
|
GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU short integer variable.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getIntVbl(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIntVbl</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuIntVbl.html" title="class in edu.rit.gpu">GpuIntVbl</a> getIntVbl(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Create a new GPU integer variable mirroring the given global variable in
|
|
this module. The variable in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuIntVbl.html#item"><code>item</code></a> field, is initialized to zero. <I>The variable in GPU memory is not
|
|
initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU integer variable.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getLongVbl(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLongVbl</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuLongVbl.html" title="class in edu.rit.gpu">GpuLongVbl</a> getLongVbl(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Create a new GPU long integer variable mirroring the given global
|
|
variable in this module. The variable in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuLongVbl.html#item"><code>item</code></a> field, is initialized to zero. <I>The variable in
|
|
GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU long integer variable.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getFloatVbl(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFloatVbl</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuFloatVbl.html" title="class in edu.rit.gpu">GpuFloatVbl</a> getFloatVbl(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Create a new GPU float variable mirroring the given global variable in
|
|
this module. The variable in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuFloatVbl.html#item"><code>item</code></a> field, is initialized to zero. <I>The variable in
|
|
GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU float variable.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getDoubleVbl(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDoubleVbl</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuDoubleVbl.html" title="class in edu.rit.gpu">GpuDoubleVbl</a> getDoubleVbl(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre>
|
|
<div class="block">Create a new GPU double variable mirroring the given global variable in
|
|
this module. The variable in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuDoubleVbl.html#item"><code>item</code></a> field, is initialized to zero. <I>The variable in
|
|
GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU double variable.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getByteArray(java.lang.String, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getByteArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuByteArray.html" title="class in edu.rit.gpu">GpuByteArray</a> getByteArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</pre>
|
|
<div class="block">Create a new GPU byte array mirroring the given global variable in this
|
|
module. The entire GPU array is mirrored in the CPU. The array in CPU
|
|
memory, namely the <a href="../../../edu/rit/gpu/GpuByteArray.html#item"><code>item</code></a> field, is initialized
|
|
to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU byte array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getByteArray(java.lang.String, int, int)"><code>getByteArray(String,int,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getByteArray(java.lang.String, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getByteArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuByteArray.html" title="class in edu.rit.gpu">GpuByteArray</a> getByteArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</pre>
|
|
<div class="block">Create a new GPU byte array mirroring the given global variable in this
|
|
module, of which the given portion is mirrored in the CPU. If
|
|
<TT>cpulen</TT> = 0, then none of the array is mirrored in the CPU. The
|
|
array in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuByteArray.html#item"><code>item</code></a> field, is
|
|
initialized to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd><dd><code>cpulen</code> - Number of array elements to mirror in the CPU.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU byte array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1, <TT>cpulen</TT>
|
|
< 0, or <TT>cpulen</TT> > <TT>len</TT>.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getByteArray(java.lang.String, int)"><code>getByteArray(String,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getShortArray(java.lang.String, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getShortArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuShortArray.html" title="class in edu.rit.gpu">GpuShortArray</a> getShortArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</pre>
|
|
<div class="block">Create a new GPU short integer array mirroring the given global variable
|
|
in this module. The entire GPU array is mirrored in the CPU. The array in
|
|
CPU memory, namely the <a href="../../../edu/rit/gpu/GpuShortArray.html#item"><code>item</code></a> field, is
|
|
initialized to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU short integer array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getShortArray(java.lang.String, int, int)"><code>getShortArray(String,int,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getShortArray(java.lang.String, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getShortArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuShortArray.html" title="class in edu.rit.gpu">GpuShortArray</a> getShortArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</pre>
|
|
<div class="block">Create a new GPU short integer array mirroring the given global variable
|
|
in this module, of which the given portion is mirrored in the CPU. If
|
|
<TT>cpulen</TT> = 0, then none of the array is mirrored in the CPU. The
|
|
array in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuShortArray.html#item"><code>item</code></a> field, is
|
|
initialized to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd><dd><code>cpulen</code> - Number of array elements to mirror in the CPU.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU short integer array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1, <TT>cpulen</TT>
|
|
< 0, or <TT>cpulen</TT> > <TT>len</TT>.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getShortArray(java.lang.String, int)"><code>getShortArray(String,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getIntArray(java.lang.String, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIntArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuIntArray.html" title="class in edu.rit.gpu">GpuIntArray</a> getIntArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</pre>
|
|
<div class="block">Create a new GPU integer array mirroring the given global variable in
|
|
this module. The entire GPU array is mirrored in the CPU. The array in
|
|
CPU memory, namely the <a href="../../../edu/rit/gpu/GpuIntArray.html#item"><code>item</code></a> field, is
|
|
initialized to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU integer array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getIntArray(java.lang.String, int, int)"><code>getIntArray(String,int,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getIntArray(java.lang.String, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIntArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuIntArray.html" title="class in edu.rit.gpu">GpuIntArray</a> getIntArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</pre>
|
|
<div class="block">Create a new GPU integer array mirroring the given global variable in
|
|
this module, of which the given portion is mirrored in the CPU. If
|
|
<TT>cpulen</TT> = 0, then none of the array is mirrored in the CPU. The
|
|
array in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuIntArray.html#item"><code>item</code></a> field, is
|
|
initialized to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd><dd><code>cpulen</code> - Number of array elements to mirror in the CPU.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU integer array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1, <TT>cpulen</TT>
|
|
< 0, or <TT>cpulen</TT> > <TT>len</TT>.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getIntArray(java.lang.String, int)"><code>getIntArray(String,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getLongArray(java.lang.String, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLongArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuLongArray.html" title="class in edu.rit.gpu">GpuLongArray</a> getLongArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</pre>
|
|
<div class="block">Create a new GPU long integer array mirroring the given global variable
|
|
in this module. The entire GPU array is mirrored in the CPU. The array in
|
|
CPU memory, namely the <a href="../../../edu/rit/gpu/GpuLongArray.html#item"><code>item</code></a> field, is
|
|
initialized to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU long integer array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getLongArray(java.lang.String, int, int)"><code>getLongArray(String,int,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getLongArray(java.lang.String, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLongArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuLongArray.html" title="class in edu.rit.gpu">GpuLongArray</a> getLongArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</pre>
|
|
<div class="block">Create a new GPU long integer array mirroring the given global variable
|
|
in this module, of which the given portion is mirrored in the CPU. If
|
|
<TT>cpulen</TT> = 0, then none of the array is mirrored in the CPU. The
|
|
array in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuLongArray.html#item"><code>item</code></a> field, is
|
|
initialized to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd><dd><code>cpulen</code> - Number of array elements to mirror in the CPU.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU long integer array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1, <TT>cpulen</TT>
|
|
< 0, or <TT>cpulen</TT> > <TT>len</TT>.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getLongArray(java.lang.String, int)"><code>getLongArray(String,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getFloatArray(java.lang.String, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFloatArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuFloatArray.html" title="class in edu.rit.gpu">GpuFloatArray</a> getFloatArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</pre>
|
|
<div class="block">Create a new GPU float array mirroring the given global variable in this
|
|
module. The entire GPU array is mirrored in the CPU. The array in CPU
|
|
memory, namely the <a href="../../../edu/rit/gpu/GpuFloatArray.html#item"><code>item</code></a> field, is initialized
|
|
to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU float array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getFloatArray(java.lang.String, int, int)"><code>getFloatArray(String,int,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getFloatArray(java.lang.String, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFloatArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuFloatArray.html" title="class in edu.rit.gpu">GpuFloatArray</a> getFloatArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</pre>
|
|
<div class="block">Create a new GPU float array mirroring the given global variable in this
|
|
module, of which the given portion is mirrored in the CPU. If
|
|
<TT>cpulen</TT> = 0, then none of the array is mirrored in the CPU. The
|
|
array in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuFloatArray.html#item"><code>item</code></a> field, is
|
|
initialized to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd><dd><code>cpulen</code> - Number of array elements to mirror in the CPU.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU float array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1, <TT>cpulen</TT>
|
|
< 0, or <TT>cpulen</TT> > <TT>len</TT>.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getFloatArray(java.lang.String, int)"><code>getFloatArray(String,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getDoubleArray(java.lang.String, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDoubleArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuDoubleArray.html" title="class in edu.rit.gpu">GpuDoubleArray</a> getDoubleArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len)</pre>
|
|
<div class="block">Create a new GPU double array mirroring the given global variable in this
|
|
module. The entire GPU array is mirrored in the CPU. The array in CPU
|
|
memory, namely the <a href="../../../edu/rit/gpu/GpuDoubleArray.html#item"><code>item</code></a> field, is initialized
|
|
to zeroes. <I>The array in GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU double array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getDoubleArray(java.lang.String, int, int)"><code>getDoubleArray(String,int,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getDoubleArray(java.lang.String, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDoubleArray</h4>
|
|
<pre>public <a href="../../../edu/rit/gpu/GpuDoubleArray.html" title="class in edu.rit.gpu">GpuDoubleArray</a> getDoubleArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
int len,
|
|
int cpulen)</pre>
|
|
<div class="block">Create a new GPU double array mirroring the given global variable in this
|
|
module, of which the given portion is mirrored in the CPU. If
|
|
<TT>cpulen</TT> = 0, then none of the array is mirrored in the CPU. The
|
|
array in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuDoubleArray.html#item"><code>item</code></a> field,
|
|
is initialized to zeroes. <I>The array in GPU memory is not
|
|
initialized.</I></div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd><dd><code>cpulen</code> - Number of array elements to mirror in the CPU.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU double array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> is null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1, <TT>cpulen</TT>
|
|
< 0, or <TT>cpulen</TT> > <TT>len</TT>.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getDoubleArray(java.lang.String, int)"><code>getDoubleArray(String,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getStructVbl(java.lang.String, java.lang.Class)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getStructVbl</h4>
|
|
<pre>public <T extends <a href="../../../edu/rit/gpu/Struct.html" title="class in edu.rit.gpu">Struct</a>> <a href="../../../edu/rit/gpu/GpuStructVbl.html" title="class in edu.rit.gpu">GpuStructVbl</a><T> getStructVbl(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</pre>
|
|
<div class="block">Create a new GPU struct variable mirroring the given global variable in
|
|
this module. The variable in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuStructVbl.html#item"><code>item</code></a> field, is initialized to null. <I>The variable in
|
|
GPU memory is not initialized.</I></div>
|
|
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - Java data type. Class <TT>T</TT> must extend class
|
|
<a href="../../../edu/rit/gpu/Struct.html" title="class in edu.rit.gpu">Struct</a>.</dd><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>type</code> - Class object for Java data type.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU struct variable.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> or <TT>type</TT> is
|
|
null.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getStructArray(java.lang.String, java.lang.Class, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getStructArray</h4>
|
|
<pre>public <T extends <a href="../../../edu/rit/gpu/Struct.html" title="class in edu.rit.gpu">Struct</a>> <a href="../../../edu/rit/gpu/GpuStructArray.html" title="class in edu.rit.gpu">GpuStructArray</a><T> getStructArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type,
|
|
int len)</pre>
|
|
<div class="block">Create a new GPU struct array mirroring the given global variable in this
|
|
module. The entire GPU array is mirrored in the CPU. The array elements
|
|
in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuStructArray.html#item"><code>item</code></a> field's
|
|
elements, are initialized to null. <I>The array elements in GPU memory
|
|
are not initialized.</I></div>
|
|
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - Java data type. Class <TT>T</TT> must extend class
|
|
<a href="../../../edu/rit/gpu/Struct.html" title="class in edu.rit.gpu">Struct</a>.</dd><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>type</code> - Class object for Java data type.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU struct array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> or <TT>type</TT> is
|
|
null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getStructArray(java.lang.String, java.lang.Class, int, int)"><code>getStructArray(String,Class,int,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getStructArray(java.lang.String, java.lang.Class, int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getStructArray</h4>
|
|
<pre>public <T extends <a href="../../../edu/rit/gpu/Struct.html" title="class in edu.rit.gpu">Struct</a>> <a href="../../../edu/rit/gpu/GpuStructArray.html" title="class in edu.rit.gpu">GpuStructArray</a><T> getStructArray(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name,
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type,
|
|
int len,
|
|
int cpulen)</pre>
|
|
<div class="block">Create a new GPU struct array mirroring the given global variable in this
|
|
module, of which the given portion is mirrored in the CPU. If
|
|
<TT>cpulen</TT> = 0, then none of the array is mirrored in the CPU. The
|
|
array elements in CPU memory, namely the <a href="../../../edu/rit/gpu/GpuStructArray.html#item"><code>item</code></a>
|
|
field's elements, are initialized to null. <I>The array elements in GPU
|
|
memory are not initialized.</I></div>
|
|
<dl><dt><span class="strong">Type Parameters:</span></dt><dd><code>T</code> - Java data type. Class <TT>T</TT> must extend class
|
|
<a href="../../../edu/rit/gpu/Struct.html" title="class in edu.rit.gpu">Struct</a>.</dd><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Global variable name.</dd><dd><code>type</code> - Class object for Java data type.</dd><dd><code>len</code> - Number of array elements (≥ 1).</dd><dd><code>cpulen</code> - Number of array elements to mirror in the CPU.</dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>GPU struct array.</dd>
|
|
<dt><span class="strong">Throws:</span></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>name</TT> or <TT>type</TT> is
|
|
null.</dd>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - (unchecked exception) Thrown if <TT>len</TT> < 1, <TT>cpulen</TT>
|
|
< 0, or <TT>cpulen</TT> > <TT>len</TT>.</dd>
|
|
<dd><code><a href="../../../edu/rit/gpu/GpuException.html" title="class in edu.rit.gpu">GpuException</a></code> - (unchecked exception) Thrown if a GPU error occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../edu/rit/gpu/Module.html#getStructArray(java.lang.String, java.lang.Class, int)"><code>getStructArray(String,Class,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="finalize()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>finalize</h4>
|
|
<pre>protected void finalize()</pre>
|
|
<div class="block">Finalize this module.</div>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/Module.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-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../edu/rit/gpu/LaunchTimeoutCudaException.html" title="class in edu.rit.gpu"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../../../edu/rit/gpu/NotFoundCudaException.html" title="class in edu.rit.gpu"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?edu/rit/gpu/Module.html" target="_top">Frames</a></li>
|
|
<li><a href="Module.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.html">All 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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small><FONT SIZE="-2">Copyright © 2013–2016 by Alan Kaminsky. All rights reserved. Send comments to ark</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">@</FONT><FONT SIZE="1" COLOR="#FFFFFF">­</FONT><FONT SIZE="-2">cs.rit.edu.</FONT></small></p>
|
|
</body>
|
|
</html>
|