Page 1 of 1


PostPosted: Wed Apr 08, 2015 5:11 pm
by Nader_Jendoubi

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???


Re: clndrange_init1d

PostPosted: Thu Apr 09, 2015 10:46 am
by nickoppen
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: