nd4j-buffer/src/main/java/org/nd4j/linalg/api/buffer/util/LibUtils.java
public static String createLibName(String baseName) {
        OSType osType = calculateOS();
        ARCHType archType = calculateArch();
        String libName = baseName;
        libName += "-" + osType.toString().toLowerCase(Locale.ENGLISH);
        libName += "-" + archType.toString().toLowerCase(Locale.ENGLISH);
        return libName;
    }
public static String createLibName(String baseName) {
        OSType osType = calculateOS();
        ARCHType archType = calculateArch();
        String libName = baseName;
        libName += "-" + osType.toString().toLowerCase(Locale.ENGLISH);
        libName += "-" + archType.toString().toLowerCase(Locale.ENGLISH);
        return libName;
    }
Creates the name for the native library with the given base
name for the current operating system and architecture.
The resulting name will be of the form<br />
baseName-OSType-ARCHType<br />
where OSType and ARCHType are the <strong>lower case</strong> Strings
of the respective enum constants. Example: <br />
jcuda-windows-x86<br />

@param baseName The base name of the library
@return The library name