\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();}
+\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}
This class provides functionality for querying the specified GPU properties.
\cvdefCpp{bool DeviceInfo::has(GpuFeature feature);}
\begin{description}
-\cvarg{feature}{Feature to be checked. Available alternatives:
-\begin{itemize}
-\item NATIVE\_DOUBLE Native double operations support
-\item ATOMICS Atomic operations support
-\end{itemize}}
+\cvarg{feature}{Feature to be checked. See \hyperref[cpp.gpu.GpuFeature]{gpu::GpuFeature}.}
\end{description}
The following method checks whether the module was built with the support of the given feature:
\cvdefCpp{static bool builtWith(GpuFeature feature);}
\begin{description}
-\cvarg{feature}{Feature to be checked. Available alternatives:
-\begin{itemize}
-\item NATIVE\_DOUBLE Native double operations support
-\item ATOMICS Atomic operations support
-\end{itemize}}
+\cvarg{feature}{Feature to be checked. See \hyperref[cpp.gpu.GpuFeature]{gpu::GpuFeature}.}
\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):