diff options
author | Zhigang Gong <zhigang.gong@intel.com> | 2014-08-27 10:33:42 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-09-03 12:29:01 +0800 |
commit | 44929d4847b7b5d0cf5929a3155b6193091c26b7 (patch) | |
tree | 66f660a0bfaf670889e3ffe65ff1e8aa3e7ac426 /utests/utest_helper.cpp | |
parent | bfa6135c9e7a53d2aab21c8c3257e85eb61b1212 (diff) | |
download | beignet-44929d4847b7b5d0cf5929a3155b6193091c26b7.tar.gz |
Add new vload benchmark/test case.
v2:
refine the benchmark case and don't mix it with normal
unit test cases.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'utests/utest_helper.cpp')
-rw-r--r-- | utests/utest_helper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utests/utest_helper.cpp b/utests/utest_helper.cpp index b57b8dc0..0925dafb 100644 --- a/utests/utest_helper.cpp +++ b/utests/utest_helper.cpp @@ -262,9 +262,10 @@ cl_kernel_init(const char *file_name, const char *kernel_name, int format, const goto error; } prevFileName = file_name; + + /* OCL requires to build the program even if it is created from a binary */ + OCL_CALL (clBuildProgram, program, 1, &device, build_opt, NULL, NULL); } - /* OCL requires to build the program even if it is created from a binary */ - OCL_CALL (clBuildProgram, program, 1, &device, build_opt, NULL, NULL); /* Create a kernel from the program */ if (kernel) |