Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
12f73aa9
Commit
12f73aa9
authored
Feb 02, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added docs for gpu::GpuFeature
parent
98493676
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
gpu_initialization.tex
doc/gpu_initialization.tex
+17
-11
No files found.
doc/gpu_initialization.tex
View file @
12f73aa9
...
@@ -17,11 +17,25 @@ Sets device and initializes it for the current thread. Call of this function can
...
@@ -17,11 +17,25 @@ Sets device and initializes it for the current thread. Call of this function can
\cvCppFunc
{
gpu::getDevice
}
\cvCppFunc
{
gpu::getDevice
}
Returns the current device index, which was set by
\cvCppCross
{
gpu::getDevice
}
or initialized by default.
Returns the current device index, which was set by
{
gpu::getDevice
}
or initialized by default.
\cvdefCpp
{
int getDevice();
}
\cvdefCpp
{
int getDevice();
}
\cvclass
{
gpu::GpuFeature
}
\label
{
cpp.gpu.GpuFeature
}
GPU compute features.
\begin{lstlisting}
enum GpuFeature
{
COMPUTE
_
10, COMPUTE
_
11,
COMPUTE
_
12, COMPUTE
_
13,
COMPUTE
_
20, COMPUTE
_
21,
ATOMICS, NATIVE
_
DOUBLE
}
;
\end{lstlisting}
\cvclass
{
gpu::DeviceInfo
}
\cvclass
{
gpu::DeviceInfo
}
This class provides functionality for querying the specified GPU properties.
This class provides functionality for querying the specified GPU properties.
...
@@ -99,11 +113,7 @@ Returns true if the device has the given GPU feature, otherwise false.
...
@@ -99,11 +113,7 @@ Returns true if the device has the given GPU feature, otherwise false.
\cvdefCpp
{
bool DeviceInfo::has(GpuFeature feature);
}
\cvdefCpp
{
bool DeviceInfo::has(GpuFeature feature);
}
\begin{description}
\begin{description}
\cvarg
{
feature
}{
Feature to be checked. Available alternatives:
\cvarg
{
feature
}{
Feature to be checked. See
\hyperref
[cpp.gpu.GpuFeature]
{
gpu::GpuFeature
}
.
}
\begin{itemize}
\item
NATIVE
\_
DOUBLE Native double operations support
\item
ATOMICS Atomic operations support
\end{itemize}
}
\end{description}
\end{description}
...
@@ -121,11 +131,7 @@ This class provides functionality (as set of static methods) for checking which
...
@@ -121,11 +131,7 @@ This class provides functionality (as set of static methods) for checking which
The following method checks whether the module was built with the support of the given feature:
The following method checks whether the module was built with the support of the given feature:
\cvdefCpp
{
static bool builtWith(GpuFeature feature);
}
\cvdefCpp
{
static bool builtWith(GpuFeature feature);
}
\begin{description}
\begin{description}
\cvarg
{
feature
}{
Feature to be checked. Available alternatives:
\cvarg
{
feature
}{
Feature to be checked. See
\hyperref
[cpp.gpu.GpuFeature]
{
gpu::GpuFeature
}
.
}
\begin{itemize}
\item
NATIVE
\_
DOUBLE Native double operations support
\item
ATOMICS Atomic operations support
\end{itemize}
}
\end{description}
\end{description}
There are a set of methods for checking whether the module contains intermediate (PTX) or binary GPU code for the given architecture(s):
There are a set of methods for checking whether the module contains intermediate (PTX) or binary GPU code for the given architecture(s):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment