aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2016-04-30 14:29:39 -0500
committerWade Walker <[email protected]>2016-04-30 14:29:39 -0500
commitfeb8b2646c8d85e2533dd1dcd7ff3c3b3718bea4 (patch)
tree3159882891fa648fbc772fe46c0899f82cf235d5 /test
parent7a26673570fd77839672d472b04dbd509395de5b (diff)
Remove non-functional CL_KERNEL_GLOBAL_WORK_SIZE test
This test didn't work properly, since that property only applies to custom devices and built-in kernels.
Diffstat (limited to 'test')
-rw-r--r--test/com/jogamp/opencl/CLProgramTest.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/com/jogamp/opencl/CLProgramTest.java b/test/com/jogamp/opencl/CLProgramTest.java
index 56289e5..8310ad0 100644
--- a/test/com/jogamp/opencl/CLProgramTest.java
+++ b/test/com/jogamp/opencl/CLProgramTest.java
@@ -395,22 +395,6 @@ public class CLProgramTest extends UITestCase {
final long pms = kernel.getPrivateMemSize(context.getDevices()[0]);
out.println("private mem size: " + pms);
-
- if( context.getDevices()[0].getCVersion().isAtLeast(1, 2) ) {
- CL deviceInterface = CLPlatform.getLowLevelCLInterfaceForDevice(context.getDevices()[0].ID);
-
- ByteBuffer buffer = Buffers.newDirectByteBuffer((is32Bit()?4:8)*3);
- final int ret = deviceInterface.clGetKernelWorkGroupInfo(kernel.ID, context.getDevices()[0].ID, CL_KERNEL_GLOBAL_WORK_SIZE, (is32Bit()?4:8)*3, buffer, null);
- if(ret != CL_SUCCESS) {
- throw newException(ret, "Error while asking for CL_KERNEL_GLOBAL_WORK_SIZE of " + kernel + " on "+ context.getDevices()[0]);
- }
-
- if(is32Bit()) {
- out.println("kernel global work size: " + buffer.getInt(0) + ", " + buffer.getInt(4) + ", " + buffer.getInt(8) );
- }else {
- out.println("kernel global work size: " + buffer.getLong(0) + ", " + buffer.getLong(8) + ", " + buffer.getLong(16) );
- }
- }
}finally{
context.release();
}