refactored gpu module
This commit is contained in:
@@ -69,22 +69,33 @@ Returns true, if the specified GPU has atomics support, otherwise false.
|
||||
\end{description}
|
||||
|
||||
|
||||
\cvCppFunc{gpu::checkPtxVersion}
|
||||
\cvCppFunc{gpu::ptxVersionIs}
|
||||
Returns true, if the GPU module was built with PTX support of the given compute capability, otherwise false.
|
||||
|
||||
\cvdefCpp{template $<$unsigned int cmp\_op$>$\newline
|
||||
bool checkPtxVersion(int major, int minor);}
|
||||
\cvdefCpp{bool ptxVersionIs(int major, int minor);}
|
||||
\begin{description}
|
||||
\cvarg{cmp\_op}{Comparison operation:
|
||||
\cvarg{major}{Major compute capability version.}
|
||||
\cvarg{minor}{Minor compute capability version.}
|
||||
\end{description}
|
||||
|
||||
|
||||
\cvCppFunc{gpu::ptxVersionIsLessOrEqual}
|
||||
Returns true, if the GPU module was built with PTX support of the given compute capability or less, otherwise false.
|
||||
|
||||
\cvdefCpp{bool ptxVersionIsLessOrEqual(int major, int minor);}
|
||||
\begin{description}
|
||||
\cvarg{CMP\_EQ}{Return true, if at least one of GPU module PTX versions matches the given one, otherwise false}
|
||||
\cvarg{CMP\_LT}{Return true, if at least one of GPU module PTX versions is less than the given one, otherwise false}
|
||||
\cvarg{CMP\_LE}{Return true, if at least one of GPU module PTX versions is less or equal to the given one, otherwise false}
|
||||
\cvarg{CMP\_GT}{Return true, if at least one of GPU module PTX versions is greater than the given one, otherwise false}
|
||||
\cvarg{CMP\_GE}{Return true, if at least one of GPU module PTX versions is greater or equal to the given one, otherwise false}
|
||||
\end{description}}
|
||||
\cvarg{major}{Major CC version.}
|
||||
\cvarg{minor}{Minor CC version.}
|
||||
\cvarg{major}{Major compute capability version.}
|
||||
\cvarg{minor}{Minor compute capability version.}
|
||||
\end{description}
|
||||
|
||||
|
||||
\cvCppFunc{gpu::ptxVersionIsGreaterOrEqual}
|
||||
Returns true, if the GPU module was built with PTX support of the given compute capability or greater, otherwise false.
|
||||
|
||||
\cvdefCpp{bool ptxVersionIsGreaterOrEqual(int major, int minor);}
|
||||
\begin{description}
|
||||
\cvarg{major}{Major compute capability version.}
|
||||
\cvarg{minor}{Minor compute capability version.}
|
||||
\end{description}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user