From 41b12ea8ec6d900c1fd5c17e74a46c6f3f8c8448 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Fri, 16 Oct 2009 00:07:36 +0200 Subject: fixed clBuildProgram, finished VectorAdd unit test. --- resources/clImplCustomCode.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'resources/clImplCustomCode.c') diff --git a/resources/clImplCustomCode.c b/resources/clImplCustomCode.c index 9c87c24a..41e9f159 100644 --- a/resources/clImplCustomCode.c +++ b/resources/clImplCustomCode.c @@ -110,6 +110,14 @@ Java_com_mbien_opencl_impl_CLImpl_clBuildProgram0(JNIEnv *env, jobject _unused, if (deviceList != NULL) { _deviceListPtr = (void *) (((char*) (*env)->GetPrimitiveArrayCritical(env, deviceList, NULL)) + offset); } + +/* + printf("---------------------------------------------------------------------------\n"); + printf("deviceList: %d\n", _deviceListPtr); + printf("_strchars_options: %d\n", _strchars_options); + printf("deviceCount: %d\n", deviceCount); + printf("---------------------------------------------------------------------------\n"); +*/ // TODO payload, callback... _res = clBuildProgram((cl_program)program, (cl_uint)deviceCount, _deviceListPtr, _strchars_options, NULL, NULL); -- cgit v1.2.3