Package org.platanios.tensorflow.proto
Class DevicePropertiesProtos.DeviceProperties
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.platanios.tensorflow.proto.DevicePropertiesProtos.DeviceProperties
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.Serializable
,DevicePropertiesProtos.DevicePropertiesOrBuilder
- Enclosing class:
- DevicePropertiesProtos
public static final class DevicePropertiesProtos.DeviceProperties extends com.google.protobuf.GeneratedMessageV3 implements DevicePropertiesProtos.DevicePropertiesOrBuilder
Protobuf typeorg.platanios.tensorflow.proto.DeviceProperties
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DevicePropertiesProtos.DeviceProperties.Builder
Protobuf typeorg.platanios.tensorflow.proto.DeviceProperties
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
BANDWIDTH_FIELD_NUMBER
static int
ENVIRONMENT_FIELD_NUMBER
static int
FREQUENCY_FIELD_NUMBER
static int
L1_CACHE_SIZE_FIELD_NUMBER
static int
L2_CACHE_SIZE_FIELD_NUMBER
static int
L3_CACHE_SIZE_FIELD_NUMBER
static int
MEMORY_SIZE_FIELD_NUMBER
static int
MODEL_FIELD_NUMBER
static int
NUM_CORES_FIELD_NUMBER
static int
NUM_REGISTERS_FIELD_NUMBER
static int
SHARED_MEMORY_SIZE_PER_MULTIPROCESSOR_FIELD_NUMBER
static int
TYPE_FIELD_NUMBER
static int
VENDOR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsEnvironment(java.lang.String key)
Version of the tools and libraries used with this device (e.g.boolean
equals(java.lang.Object obj)
long
getBandwidth()
Memory bandwidth in KB/sstatic DevicePropertiesProtos.DeviceProperties
getDefaultInstance()
DevicePropertiesProtos.DeviceProperties
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
java.util.Map<java.lang.String,java.lang.String>
getEnvironment()
Deprecated.int
getEnvironmentCount()
Version of the tools and libraries used with this device (e.g.java.util.Map<java.lang.String,java.lang.String>
getEnvironmentMap()
Version of the tools and libraries used with this device (e.g.java.lang.String
getEnvironmentOrDefault(java.lang.String key, java.lang.String defaultValue)
Version of the tools and libraries used with this device (e.g.java.lang.String
getEnvironmentOrThrow(java.lang.String key)
Version of the tools and libraries used with this device (e.g.long
getFrequency()
Core Frequency in Mhzlong
getL1CacheSize()
L1 cache size in byteslong
getL2CacheSize()
L2 cache size in byteslong
getL3CacheSize()
L3 cache size in byteslong
getMemorySize()
Memory size in bytesjava.lang.String
getModel()
Model (Haswell, K40, ...)com.google.protobuf.ByteString
getModelBytes()
Model (Haswell, K40, ...)long
getNumCores()
Number of coreslong
getNumRegisters()
Number of registers per core.com.google.protobuf.Parser<DevicePropertiesProtos.DeviceProperties>
getParserForType()
int
getSerializedSize()
long
getSharedMemorySizePerMultiprocessor()
Shared memory size per multiprocessor in bytes.java.lang.String
getType()
Device type (CPU, GPU, ...)com.google.protobuf.ByteString
getTypeBytes()
Device type (CPU, GPU, ...)com.google.protobuf.UnknownFieldSet
getUnknownFields()
java.lang.String
getVendor()
Vendor (Intel, nvidia, ...)com.google.protobuf.ByteString
getVendorBytes()
Vendor (Intel, nvidia, ...)int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static DevicePropertiesProtos.DeviceProperties.Builder
newBuilder()
static DevicePropertiesProtos.DeviceProperties.Builder
newBuilder(DevicePropertiesProtos.DeviceProperties prototype)
DevicePropertiesProtos.DeviceProperties.Builder
newBuilderForType()
protected DevicePropertiesProtos.DeviceProperties.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static DevicePropertiesProtos.DeviceProperties
parseDelimitedFrom(java.io.InputStream input)
static DevicePropertiesProtos.DeviceProperties
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DevicePropertiesProtos.DeviceProperties
parseFrom(byte[] data)
static DevicePropertiesProtos.DeviceProperties
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DevicePropertiesProtos.DeviceProperties
parseFrom(com.google.protobuf.ByteString data)
static DevicePropertiesProtos.DeviceProperties
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DevicePropertiesProtos.DeviceProperties
parseFrom(com.google.protobuf.CodedInputStream input)
static DevicePropertiesProtos.DeviceProperties
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DevicePropertiesProtos.DeviceProperties
parseFrom(java.io.InputStream input)
static DevicePropertiesProtos.DeviceProperties
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DevicePropertiesProtos.DeviceProperties
parseFrom(java.nio.ByteBuffer data)
static DevicePropertiesProtos.DeviceProperties
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<DevicePropertiesProtos.DeviceProperties>
parser()
DevicePropertiesProtos.DeviceProperties.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VENDOR_FIELD_NUMBER
public static final int VENDOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MODEL_FIELD_NUMBER
public static final int MODEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FREQUENCY_FIELD_NUMBER
public static final int FREQUENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUM_CORES_FIELD_NUMBER
public static final int NUM_CORES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENVIRONMENT_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUM_REGISTERS_FIELD_NUMBER
public static final int NUM_REGISTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
L1_CACHE_SIZE_FIELD_NUMBER
public static final int L1_CACHE_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
L2_CACHE_SIZE_FIELD_NUMBER
public static final int L2_CACHE_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
L3_CACHE_SIZE_FIELD_NUMBER
public static final int L3_CACHE_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHARED_MEMORY_SIZE_PER_MULTIPROCESSOR_FIELD_NUMBER
public static final int SHARED_MEMORY_SIZE_PER_MULTIPROCESSOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEMORY_SIZE_FIELD_NUMBER
public static final int MEMORY_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BANDWIDTH_FIELD_NUMBER
public static final int BANDWIDTH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getType
public java.lang.String getType()
Device type (CPU, GPU, ...)
string type = 1;
- Specified by:
getType
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Device type (CPU, GPU, ...)
string type = 1;
- Specified by:
getTypeBytes
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The bytes for type.
-
getVendor
public java.lang.String getVendor()
Vendor (Intel, nvidia, ...)
string vendor = 2;
- Specified by:
getVendor
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The vendor.
-
getVendorBytes
public com.google.protobuf.ByteString getVendorBytes()
Vendor (Intel, nvidia, ...)
string vendor = 2;
- Specified by:
getVendorBytes
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The bytes for vendor.
-
getModel
public java.lang.String getModel()
Model (Haswell, K40, ...)
string model = 3;
- Specified by:
getModel
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The model.
-
getModelBytes
public com.google.protobuf.ByteString getModelBytes()
Model (Haswell, K40, ...)
string model = 3;
- Specified by:
getModelBytes
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The bytes for model.
-
getFrequency
public long getFrequency()
Core Frequency in Mhz
int64 frequency = 4;
- Specified by:
getFrequency
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The frequency.
-
getNumCores
public long getNumCores()
Number of cores
int64 num_cores = 5;
- Specified by:
getNumCores
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The numCores.
-
getEnvironmentCount
public int getEnvironmentCount()
Description copied from interface:DevicePropertiesProtos.DevicePropertiesOrBuilder
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
getEnvironmentCount
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
containsEnvironment
public boolean containsEnvironment(java.lang.String key)
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
containsEnvironment
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getEnvironment
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getEnvironment()
Deprecated.UsegetEnvironmentMap()
instead.- Specified by:
getEnvironment
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getEnvironmentMap
public java.util.Map<java.lang.String,java.lang.String> getEnvironmentMap()
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
getEnvironmentMap
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getEnvironmentOrDefault
public java.lang.String getEnvironmentOrDefault(java.lang.String key, java.lang.String defaultValue)
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
getEnvironmentOrDefault
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getEnvironmentOrThrow
public java.lang.String getEnvironmentOrThrow(java.lang.String key)
Version of the tools and libraries used with this device (e.g. gcc 4.9, cudnn 5.1)
map<string, string> environment = 6;
- Specified by:
getEnvironmentOrThrow
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
-
getNumRegisters
public long getNumRegisters()
Number of registers per core.
int64 num_registers = 7;
- Specified by:
getNumRegisters
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The numRegisters.
-
getL1CacheSize
public long getL1CacheSize()
L1 cache size in bytes
int64 l1_cache_size = 8;
- Specified by:
getL1CacheSize
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The l1CacheSize.
-
getL2CacheSize
public long getL2CacheSize()
L2 cache size in bytes
int64 l2_cache_size = 9;
- Specified by:
getL2CacheSize
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The l2CacheSize.
-
getL3CacheSize
public long getL3CacheSize()
L3 cache size in bytes
int64 l3_cache_size = 10;
- Specified by:
getL3CacheSize
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The l3CacheSize.
-
getSharedMemorySizePerMultiprocessor
public long getSharedMemorySizePerMultiprocessor()
Shared memory size per multiprocessor in bytes. This field is applicable to GPUs only.
int64 shared_memory_size_per_multiprocessor = 11;
- Specified by:
getSharedMemorySizePerMultiprocessor
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The sharedMemorySizePerMultiprocessor.
-
getMemorySize
public long getMemorySize()
Memory size in bytes
int64 memory_size = 12;
- Specified by:
getMemorySize
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The memorySize.
-
getBandwidth
public long getBandwidth()
Memory bandwidth in KB/s
int64 bandwidth = 13;
- Specified by:
getBandwidth
in interfaceDevicePropertiesProtos.DevicePropertiesOrBuilder
- Returns:
- The bandwidth.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DevicePropertiesProtos.DeviceProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DevicePropertiesProtos.DeviceProperties parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DevicePropertiesProtos.DeviceProperties parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DevicePropertiesProtos.DeviceProperties.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DevicePropertiesProtos.DeviceProperties.Builder newBuilder()
-
newBuilder
public static DevicePropertiesProtos.DeviceProperties.Builder newBuilder(DevicePropertiesProtos.DeviceProperties prototype)
-
toBuilder
public DevicePropertiesProtos.DeviceProperties.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DevicePropertiesProtos.DeviceProperties.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DevicePropertiesProtos.DeviceProperties getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DevicePropertiesProtos.DeviceProperties> parser()
-
getParserForType
public com.google.protobuf.Parser<DevicePropertiesProtos.DeviceProperties> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DevicePropertiesProtos.DeviceProperties getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-