MCPcopy Create free account
hub / github.com/Syncleus/aparapi / toString

Method toString

src/main/java/com/aparapi/device/OpenCLDevice.java:584–603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

582 }
583
584 @Override public String toString() {
585 final StringBuilder s = new StringBuilder("{");
586 boolean first = true;
587 for (final int workItemSize : maxWorkItemSize) {
588 if (first) {
589 first = false;
590 } else {
591 s.append(", ");
592 }
593
594 s.append(workItemSize);
595 }
596
597 s.append("}");
598
599 return ("Device " + deviceId + "\n vendor = " + getOpenCLPlatform().getVendor()
600 + "\n type:" + type + "\n maxComputeUnits=" + maxComputeUnits + "\n maxWorkItemDimensions="
601 + maxWorkItemDimensions + "\n maxWorkItemSizes=" + s + "\n maxWorkWorkGroupSize=" + maxWorkGroupSize
602 + "\n globalMemSize=" + globalMemSize + "\n localMemSize=" + localMemSize);
603 }
604}

Callers 2

streamToStringMethod · 0.45
bindMethod · 0.45

Calls 2

getOpenCLPlatformMethod · 0.95
getVendorMethod · 0.80

Tested by

no test coverage detected