/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
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.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};