public class ND4JSystemProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AERON_TERM_BUFFER_PROP
Applicability: nd4j-parameter-server, dl4j-spark (gradient sharing training master)
Description: Aeros in a high-performance communication library used in distributed computing contexts in some places in ND4J and DL4J. |
static String |
DATABUFFER_TO_STRING_MAX_ELEMENTS
Applicability: always
Description: Used to specify the maximum number of elements (numbers) to print when using DataBuffer.toString(). |
static String |
DTYPE
Applicability: Always
Description: Sets the default datatype for ND4J - should be one of "float", "double", "half". |
static String |
DYNAMIC_LOAD_CLASSPATH_PROPERTY
Applicability: always - but only if an ND4J backend cannot be found/loaded via standard ServiceLoader mechanisms
Description: Set this property to a set fully qualified JAR files to attempt to load before failing on not loading a backend. |
static String |
JAVACPP_MEMORY_MAX_BYTES
Applicability: Always
Description: This system property defines the maximum amount of off-heap memory that can be used. |
static String |
JAVACPP_MEMORY_MAX_PHYSICAL_BYTES
Applicability: Always
Description: This system property defines the maximum total amount of memory that the process can use - it is the sum of both off-heap and on-heap memory. |
static String |
LOG_INITIALIZATION
Applicability: Always
Description: By default, ND4J will log some information when the library has completed initialization, such as the backend (CPU or CUDA), CPU/Devices, memory etc. |
static String |
ND4J_CPU_LOAD_OPENBLAS
Applicability: nd4j-native backend, when multiple BLAS libraries are available
Description: This system property can be used to control which BLAS library is loaded and used by ND4J. |
static String |
ND4J_CPU_LOAD_OPENBLAS_NOLAPACK
Applicability: nd4j-native backend, when multiple BLAS libraries are available
Description: This system property can be used to control which BLAS library is loaded and used by ND4J. |
static String |
ND4J_IGNORE_AVX
Applicability: nd4j-native when running non-AVX binary on an AVX compatible CPU
Description: Set to true to avoid logging AVX warnings (i.e., running generic x86 binaries on an AVX2 system) |
static String |
ND4J_TEMP_DIR_PROPERTY
Applicability: ND4J Temporary file creation/extraction for ClassPathResource, memory mapped workspaces, and
Description: Specify the local directory where temporary files will be written. |
static String |
RESOURCES_CACHE_DIR
Applicability: nd4j-common
Resources class (and hence StrumpfResolver )Description: When resolving resources from a Strumpf resource file (Example: Resources.asFile("myFile.txt")
where should the remote files be downloaded to? |
static String |
RESOURCES_CONNECTION_TIMEOUT
Applicability: nd4j-common
Resources class (and hence StrumpfResolver )Description: When resolving resources from a Strumpf resource file (Example: Resources.asFile("myFile.txt")
what should be the connection timeout, as used by FileUtils.copyURLToFile(URL, File, int, int) Default: ResourceFile.DEFAULT_CONNECTION_TIMEOUT |
static String |
RESOURCES_LOCAL_DIRS
Applicability: nd4j-common
Resources class (and hence StrumpfResolver )Description: When resolving resources, what local directories should be checked (in addition to the classpath) for files? |
static String |
RESOURCES_READ_TIMEOUT
Applicability: nd4j-common
Resources class (and hence StrumpfResolver )Description: When resolving resources from a Strumpf resource file (Example: Resources.asFile("myFile.txt")
what should be the connection timeout, as used by FileUtils.copyURLToFile(URL, File, int, int) Default: ResourceFile.DEFAULT_READ_TIMEOUT |
static String |
VERSION_CHECK_PROPERTY
Applicability: Always
Description Setting the system property to false will stop ND4J from performing the version check, and logging any warnings/errors. |
public static final String DTYPE
public static final String LOG_INITIALIZATION
public static final String ND4J_IGNORE_AVX
public static final String JAVACPP_MEMORY_MAX_BYTES
public static final String JAVACPP_MEMORY_MAX_PHYSICAL_BYTES
JAVACPP_MEMORY_MAX_BYTES
,
Constant Field Valuespublic static final String ND4J_TEMP_DIR_PROPERTY
public static final String DYNAMIC_LOAD_CLASSPATH_PROPERTY
ND4JEnvironmentVars.BACKEND_DYNAMIC_LOAD_CLASSPATH
for the equivalent
system property (the system property will take precidence if both are set)public static final String VERSION_CHECK_PROPERTY
public static final String DATABUFFER_TO_STRING_MAX_ELEMENTS
public static final String ND4J_CPU_LOAD_OPENBLAS
org.bytedeco.javacpp.openblas.load=mkl_rt
can be used to load a default installation of MKL.
However, MKL is liked with by default (when available) so setting this option explicitly is not usually required.
For more details, see https://github.com/bytedeco/javacpp-presets/tree/master/openblas#documentationpublic static final String ND4J_CPU_LOAD_OPENBLAS_NOLAPACK
ND4J_CPU_LOAD_OPENBLAS
but when this is set, LAPACK will not be loadedpublic static final String AERON_TERM_BUFFER_PROP
Encoded message exceeds maxMessageLength of 2097152
,
at the expense of increased memory consumption (memory consumption is a multiple of this). It is specified in bytes
with no unit suffix. Default value: 33554432 (32MB).
IMPORTANT: This value must be an exact power of 2.public static final String RESOURCES_CACHE_DIR
Resources
class (and hence StrumpfResolver
)Resources.asFile("myFile.txt")
where should the remote files be downloaded to?public static final String RESOURCES_CONNECTION_TIMEOUT
Resources
class (and hence StrumpfResolver
)Resources.asFile("myFile.txt")
what should be the connection timeout, as used by FileUtils.copyURLToFile(URL, File, int, int)
ResourceFile.DEFAULT_CONNECTION_TIMEOUT
public static final String RESOURCES_READ_TIMEOUT
Resources
class (and hence StrumpfResolver
)Resources.asFile("myFile.txt")
what should be the connection timeout, as used by FileUtils.copyURLToFile(URL, File, int, int)
ResourceFile.DEFAULT_READ_TIMEOUT
public static final String RESOURCES_LOCAL_DIRS
Resources
class (and hence StrumpfResolver
)Copyright © 2020. All rights reserved.