本文整理了Java中jcuda.runtime.JCuda.cudaDriverGetVersion()
方法的一些代码示例,展示了JCuda.cudaDriverGetVersion()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCuda.cudaDriverGetVersion()
方法的具体详情如下:
包路径:jcuda.runtime.JCuda
类名称:JCuda
方法名:cudaDriverGetVersion
[英]Returns the CUDA driver version.
cudaError_t cudaDriverGetVersion (
int* driverVersion )
Returns the CUDA driver version. Returns in *driverVersion the version number of the installed CUDA driver. If no driver is installed, then 0 is returned as the driver version (via driverVersion). This function automatically returns cudaErrorInvalidValue if the driverVersion argument is NULL.
Note:
Note that this function may also return error codes from previous, asynchronous launches.
[中]返回CUDA驱动程序版本
cudaError_t cudaDriverGetVersion (
int* driverVersion )
返回CUDA驱动程序版本。在*driverVersion中返回已安装CUDA驱动程序的版本号。如果未安装驱动程序,则返回0作为驱动程序版本(通过driverVersion)。如果driverVersion参数为空,此函数将自动返回cudaErrorInvalidValue。
注:
请注意,此函数还可能返回以前异步启动的错误代码。
代码示例来源:origin: com.simiacryptus/mindseye-cudnn
@Nonnull int[] driverVersion = {0};
JCuda.cudaRuntimeGetVersion(runtimeVersion);
JCuda.cudaDriverGetVersion(driverVersion);
@Nonnull CharSequence jCudaVersion = JCuda.getJCudaVersion();
out.printf("Time: %s; Driver %s; Runtime %s; Lib %s%n", new Date(), driverVersion[0], runtimeVersion[0], jCudaVersion);
代码示例来源:origin: com.simiacryptus/mindseye
@Nonnull int[] driverVersion = {0};
JCuda.cudaRuntimeGetVersion(runtimeVersion);
JCuda.cudaDriverGetVersion(driverVersion);
@Nonnull CharSequence jCudaVersion = JCuda.getJCudaVersion();
out.printf("Time: %s; Driver %s; Runtime %s; Lib %s%n", new Date(), driverVersion[0], runtimeVersion[0], jCudaVersion);
内容来源于网络,如有侵权,请联系作者删除!