public boolean load(File tmpDir) { isSupported = IntelGKLUtils.load(tmpDir); if (isSupported) { initNative(); } return isSupported; }
/** * Loads the native library, if it is supported on this platform. <p> * Returns false if AVX is not supported. <br> * Returns false if the native library cannot be loaded for any reason. <br> * Initializes the native library after the first load. <br> * * @param tempDir directory where the native library is extracted or null to use the system temp directory * @return true if the native library is supported and loaded, false otherwise */ @Override public synchronized boolean load(File tempDir) { if (!NativeLibraryLoader.load(tempDir, NATIVE_LIBRARY_NAME)) { return false; } if (!initialized) { initNative(); initialized = true; } return true; }