diff options
author | Manasi Navare <manasi.d.navare@intel.com> | 2015-10-12 07:53:07 -0400 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-10-13 14:53:05 +0800 |
commit | 15ced6f6ed456f63401ac053c5ec109524af8ca8 (patch) | |
tree | b0a7230abb8ad49a52cd8d8d520bec869d42e9c9 /utests/utest_helper.hpp | |
parent | 430384ccae4cba983e533e507557dd5a50303601 (diff) | |
download | beignet-15ced6f6ed456f63401ac053c5ec109524af8ca8.tar.gz |
utests: Added unit tests to test LLVM and ASM dump generation in a two step build process with clCompile and clLink APIs.
This patch adds two new tests to the unit tests. It uses the existing
framework and data structures and tests the llvm/asm dump generation
when these flags (-dump-opt-llvm, -dump-opt-asm) are passed as compile and link
options to clCompileProgram and clLinkProgram APIs along with the dump file names.
Method added:
1) get_compile_llvm_info() tests LLVM dump generation after clCompileProgram() stage
2) get_link_asm_info() tests Gen ASM dump generation after clLinkProgram() stage
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Ruiling Song <ruiling.song@intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r-- | utests/utest_helper.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index 3b17606d..e6c85157 100644 --- a/utests/utest_helper.hpp +++ b/utests/utest_helper.hpp @@ -194,6 +194,10 @@ extern int cl_ocl_init(void); /* Init program and kernel for the test */ extern int cl_kernel_init(const char *file_name, const char *kernel_name, int format, const char * build_opt); +extern int cl_kernel_compile(const char *file_name, const char *kernel_name, + const char * compile_opt); +extern int cl_kernel_link(const char *file_name, const char *kernel_name, + const char * link_opt); /* Get the file path */ extern char* cl_do_kiss_path(const char *file, cl_device_id device); |