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

Method Range

src/main/java/com/aparapi/Range.java:90–100  ·  view source on GitHub ↗

Minimal constructor @param _device @param _dims

(Device _device, int _dims)

Source from the content-addressed store, hash-verified

88 * @param _dims
89 */
90 public Range(Device _device, int _dims) {
91 device = !(_device instanceof OpenCLDevice) ? null : (OpenCLDevice) _device;
92 dims = _dims;
93
94 if (device != null) {
95 maxWorkItemSize = device.getMaxWorkItemSize();
96 maxWorkGroupSize = device.getMaxWorkGroupSize();
97 } else {
98 maxWorkGroupSize = MAX_GROUP_SIZE;
99 }
100 }
101
102 /**
103 * Create a one dimensional range <code>0.._globalWidth</code> which is processed in groups of size _localWidth.

Callers

nothing calls this directly

Calls 2

getMaxWorkItemSizeMethod · 0.45
getMaxWorkGroupSizeMethod · 0.45

Tested by

no test coverage detected