Moderator: dar


Postby Nader_Jendoubi » Wed Apr 08, 2015 5:11 pm


I found a host program written with stdcl library and i wanna ask about this command:

clndrange_t ndr = clndrange_init1d(0, 16, 16);

Is this command means that i initialise and work with all epiphany 16 cores???
If true, how can i modify this command to work for example with 1 core???

Posts: 41
Joined: Wed Feb 18, 2015 6:53 pm

Re: clndrange_init1d

Postby nickoppen » Thu Apr 09, 2015 10:46 am

That is correct. clndrange_init1D(0,16,16) will cause the kernel to be passed to all 16 cores.

For one core try, clndrage_init1d(0,1,1). It is the second argument that determines the number of calls to the kernel. If it is less than 16 it determines now many cores get called once. You have to experiment a bit with is. It's a bit tricky.

Read more here:
Sharing is what makes the internet Great!
User avatar
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia

Return to OpenCL

Who is online

Users browsing this forum: No registered users and 4 guests