We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24ac74c commit f9b1e5eCopy full SHA for f9b1e5e
Core/src/test/java/com/nativelibs4java/opencl/DeviceTest.java
@@ -74,12 +74,14 @@ public void testSplitByCounts() {
74
CLDevice[] subDevices = device.createSubDevicesByCounts(counts);
75
assertEquals(counts.length, subDevices.length);
76
int i = 0;
77
+ long[] actualCounts = new long[counts.length];
78
for (CLDevice subDevice : subDevices) {
- long count = counts[i];
79
- assertEquals(count, subDevice.getMaxComputeUnits());
+ actualCounts[i] = subDevice.getMaxComputeUnits();
80
checkParent(device, subDevice);
81
i++;
82
}
83
+ Arrays.sort(actualCounts);
84
+ assertArrayEquals(counts, actualCounts);
85
86
87
@Test
0 commit comments