private void initGPUId() { if(this.gpuId != null) { return; } ResourceProtoOrBuilder p = viaProto ? proto : builder; List<Integer> list = p.getGpuIdList(); this.gpuId = new ArrayList<Integer>(); this.gpuId.addAll(list); }
@Override public int getMemory() { ResourceProtoOrBuilder p = viaProto ? proto : builder; return (p.getMemory()); }
@Override public int getVirtualCores() { ResourceProtoOrBuilder p = viaProto ? proto : builder; return (p.getVirtualCores()); }
@Override public int getGpuCores() { ResourceProtoOrBuilder p = viaProto ? proto : builder; return (p.getGpuCores()); }
public int getGPUCores(){ ResourceProtoOrBuilder p = viaProto ? proto : builder; return (p.getGpuCores()); }
@Override public long getMemorySize() { ResourceProtoOrBuilder p = viaProto ? proto : builder; return p.getMemory(); }
@Override public int getVirtualCores() { ResourceProtoOrBuilder p = viaProto ? proto : builder; return p.getVirtualCores(); }
@Override public int getGPUs() { ResourceProtoOrBuilder p = viaProto ? proto : builder; return (p.getGpus()); }