Thursday, February 21, 2013

if you have Nexus 4

https://wiki.ubuntu.com/Touch/Install?action=show&redirect=TouchInstallProcess

This is guide for how to install Ubuntu OS.
Ubuntu OS on your phone!

Wednesday, February 20, 2013

OpenCL in Android

I have worked on OpenCL in Android for two monthes.
there are several things, you need to care about.

after compile, if your program stops at clCreateProgramWithSource, then your Kernel code has problem to build. you need to fix it.
several things I realized are,
1. You need to initialize array in Kernel like
    int array[10]; // == illegal.
    int array[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; // == legal.
    but I would not use array in Kernel code. cause local memory issue.
2. There should not be unused arguments or value.
3. ..( I will write down more, when I remember lolz)

and also if your program dies at clRead,, something, which means during running kernel code,
then think about GPU or CPU hanging, OpenCL use almost most of processors, so when other program try to use GPU or CPU, Hanging will be happened, so
"YOUR KERNEL CODE SHOULD BE SIMPLE AS HELL"
I have tried some read_imagef func 2500 times ( It was for loops 10 * 10 * 5 * 5) it... of course die.
cause it will run 2500 times for each pixel.

well those are I have learned so far.. :)