Refine the method to find pch and pcm files.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 9 Jan 2014 09:36:37 +0000 (17:36 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 10 Jan 2014 09:27:55 +0000 (17:27 +0800)
commit32ac28b2b66e571ab190a6ea4487ad809390df83
tree0b0154497cd1e61ae38194cedf2fe73f91bf2a22
parentc9d1b85a151ed3918a65584b654e5ff059a7724c
Refine the method to find pch and pcm files.

When compile user kernels, we need to find the precompiled header
file and the precompiled module file. The previous implementation
will find the build directory then find the system directory.

This is not elegant when it is packaged to a distro. It doesn't
need to search the build directory. So I change the default search
path to the system directory only. And for the deveoper, I change
the build script to set a proper environment variable and make the
gbe bin generator and the utest could find the local pch files and
pcm files firstly.

The only change is now, after the build process. Before the user
run the utests, it need to set up the environment firstly. Just
invoke

. utest/setenv.sh.

Then everything should be the same as previous. This setenv.sh also
set the OCL_KERNEL_PATH, so you don't need to set it manually now.

This patch also update the document.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
backend/CMakeLists.txt
backend/src/CMakeLists.txt
backend/src/GBEConfig.h.in
backend/src/backend/program.cpp
docs/Beignet.mdwn
src/CMakeLists.txt
utests/CMakeLists.txt
utests/utest.cpp