jcuda.runtime.JCuda.getJCudaVersion()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(182)

本文整理了Java中jcuda.runtime.JCuda.getJCudaVersion()方法的一些代码示例,展示了JCuda.getJCudaVersion()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCuda.getJCudaVersion()方法的具体详情如下:
包路径:jcuda.runtime.JCuda
类名称:JCuda
方法名:getJCudaVersion

JCuda.getJCudaVersion介绍

[英]Returns an unspecified string that will be appended to native library names for disambiguation
[中]返回将附加到本机库名称以消除歧义的未指定字符串

代码示例

代码示例来源:origin: org.jcuda/jcusparse

/**
 * Initializes the native library. Note that this method
 * does not have to be called explicitly, since it will
 * be called automatically when this class is loaded.
 */
public static void initialize()
{
  if (!initialized)
  {
    String libraryBaseName = "JCusparse-" + JCuda.getJCudaVersion();
    String libraryName = 
      LibUtils.createPlatformLibraryName(libraryBaseName);
    LibUtils.loadLibrary(libraryName);
    initialized = true;
  }
}

代码示例来源:origin: org.jcuda/jcudnn

/**
 * Initializes the native library. Note that this method
 * does not have to be called explicitly, since it will
 * be called automatically when this class is loaded.
 */
public static void initialize()
{
  if (!initialized)
  {
    String libraryBaseName = "JCudnn-" + JCuda.getJCudaVersion();
    String libraryName = 
      LibUtils.createPlatformLibraryName(libraryBaseName);
    LibUtils.loadLibrary(libraryName);
    initialized = true;
  }
}

代码示例来源:origin: org.jcuda/jcublas

/**
 * Initializes the native library. Note that this method
 * does not have to be called explicitly, since it will
 * be called automatically when this class is loaded.
 */
public static void initialize()
{
  if (!initialized)
  {
    String libraryBaseName = "JCublas-" + JCuda.getJCudaVersion();
    String libraryName = 
      LibUtils.createPlatformLibraryName(libraryBaseName);
    LibUtils.loadLibrary(libraryName);
    initialized = true;
  }
}

代码示例来源:origin: org.jcuda/jcublas

/**
 * Initializes the native library. Note that this method
 * does not have to be called explicitly, since it will
 * be called automatically when this class is loaded.
 */
public static void initialize()
{
  if (!initialized)
  {
    String libraryBaseName = "JCublas2-" + JCuda.getJCudaVersion();
    String libraryName = 
      LibUtils.createPlatformLibraryName(libraryBaseName);
    LibUtils.loadLibrary(libraryName);
    initialized = true;
  }
}

代码示例来源:origin: org.jcuda/jnvgraph

/**
 * Initializes the native library. Note that this method
 * does not have to be called explicitly, since it will
 * be called automatically when this class is loaded.
 */
public static void initialize()
{
  if (!initialized)
  {
    String libraryBaseName = "JNvgraph-" + JCuda.getJCudaVersion();
    String libraryName = 
      LibUtils.createPlatformLibraryName(libraryBaseName);
    LibUtils.loadLibrary(libraryName);
    initialized = true;
  }
}

代码示例来源:origin: org.jcuda/jcurand

/**
 * Initializes the native library. Note that this method
 * does not have to be called explicitly, since it will
 * be called automatically when this class is loaded.
 */
public static void initialize()
{
  if (!initialized)
  {
    String libraryBaseName = "JCurand-" + JCuda.getJCudaVersion();
    String libraryName = 
      LibUtils.createPlatformLibraryName(libraryBaseName);
    LibUtils.loadLibrary(libraryName);
    initialized = true;
  }
}

代码示例来源:origin: org.jcuda/jcusolver

/**
 * Initializes the native library. Note that this method
 * does not have to be called explicitly, since it will
 * be called automatically when this class is loaded.
 */
public static void initialize()
{
  if (!initialized)
  {
    String libraryBaseName = "JCusolver-" + JCuda.getJCudaVersion();
    String libraryName = 
      LibUtils.createPlatformLibraryName(libraryBaseName);
    LibUtils.loadLibrary(libraryName);
    initialized = true;
  }
}

代码示例来源:origin: org.jcuda/jcufft

/**
 * Initializes the native library. Note that this method
 * does not have to be called explicitly by the user of
 * the library: The library will automatically be
 * loaded when this class is loaded.
 */
public static void initialize()
{
  if (!initialized)
  {
    String libraryBaseName = "JCufft-" + JCuda.getJCudaVersion();
    String libraryName = 
      LibUtils.createPlatformLibraryName(libraryBaseName);
    LibUtils.loadLibrary(libraryName);
    initialized = true;
  }
}

代码示例来源:origin: org.jcuda/jcuda

/**
 * Initializes the native library. Note that this method
 * does not have to be called explicitly by the user of
 * the library: The library will automatically be
 * initialized when this class is loaded.
 */
public static void initialize()
{
  if (!initialized)
  {
    String libraryBaseName = "JCudaRuntime-" + getJCudaVersion();
    String libraryName = 
      LibUtils.createPlatformLibraryName(libraryBaseName);
    LibUtils.loadLibrary(libraryName);
    initialized = true;
  }
}

代码示例来源:origin: com.simiacryptus/mindseye-cudnn

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);
@Nonnull long[] free = {0};

代码示例来源:origin: com.simiacryptus/mindseye

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);
@Nonnull long[] free = {0};

相关文章

JCuda类方法