diff options
author | rongyang <rongyang@web> | 2016-08-30 09:29:11 +0000 |
---|---|---|
committer | www <iki-www@freedesktop.org> | 2016-08-30 09:29:11 +0000 |
commit | 8300c1ecea752ad31b655dd5e9f3702dc86ae571 (patch) | |
tree | 529a8d7c5c03e1c7784b2db20ca4008e3265a9ef /Software/Beignet/howto/stand-alone-utest-howto.mdwn | |
parent | 58f56ddf596eee54b36b60f37fdc4f00b44e4370 (diff) |
Diffstat (limited to 'Software/Beignet/howto/stand-alone-utest-howto.mdwn')
-rw-r--r-- | Software/Beignet/howto/stand-alone-utest-howto.mdwn | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Software/Beignet/howto/stand-alone-utest-howto.mdwn b/Software/Beignet/howto/stand-alone-utest-howto.mdwn new file mode 100644 index 00000000..bca23d30 --- /dev/null +++ b/Software/Beignet/howto/stand-alone-utest-howto.mdwn @@ -0,0 +1,45 @@ +Stand Alone Unit Test HowTo +==================== + +Beignet provides an independent unit test suite covered most OpenCL language feautures, +including more than 800 cases which could run in a few minutes, it should be useful for +testing and comparing different OpenCL implementations. + +Prerequisite +------------ + +OpenCL ICD. Please check your OpenCL ICD existance by command +`pkg-config --libs OpenCL`. + +Build Stand Alone Unit Test +----------------------------------- +The project uses CMake with three profiles: + +1. Debug (-g) +2. RelWithDebInfo (-g with optimizations) +3. Release (only optimizations) + +Basically, from the root directory of the project + +`> cd utest` + +`> cmake . # to configure` + +`> make` + +Once built, the 'utest_run' is generated in currenty directory. + +How to run +---------- + +You need to call setenv.sh in the utests/ directory to set some environment variables +firstly as below: + +`> . setenv.sh` + +Then in `utests/`: + +`> ./utest_run` + +if the utest_run fail to run, please check /etc/vendors/OpenCL to confirm it calls the expected +OpenCL driver, or export LD_LIBRARAY_PATH to establish the correct link. |