Re: OpenCL Basic Programming Question
Re: OpenCL Basic Programming Question
- Subject: Re: OpenCL Basic Programming Question
- From: Uli Kusterer <email@hidden>
- Date: Sat, 15 Feb 2014 09:51:58 +0100
On 14 Feb 2014, at 15:53, Gerriet M. Denkmann <email@hidden> wrote:
> I am trying to build the Basic Programming Sample in: <https://developer.apple.com/library/mac/documentation/Performance/Conceptual/OpenCL_MacProgGuide/ExampleHelloWorld/Example_HelloWorld.html#//apple_ref/doc/uid/TP40008312-CH112-SW2>
>
> I have myKernel.cl:
>
> __kernel void squareq( __global float* input, __global float* output )
> {
> int i = get_global_id(0);
> printf("i %d\n",i); // never seen
> output[i] = input[i] * input[i];
> }
>
> and myKernel.cl.h:
What happens when you remove the printf call ? AFAIK CIKernels don’t run with a full runtime. They’re intended for raw number crunching. So I wouldn’t be surprised if it crashed beause it can’t resolve printf to anything that it can actually run on the GPU.
Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden