diff options
author | Guo Yejun <yejun.guo@intel.com> | 2016-07-28 07:05:39 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-08-03 18:20:22 +0800 |
commit | c454c8f4f3ae248093fb09672fd40e93c0dffc59 (patch) | |
tree | 6de406e69718f4ab4b5f65e8555bc0a28a1e16cb /utests/get_cl_info.cpp | |
parent | 547a79485e4d3b9294eed5acf3b0568e3e0dc82a (diff) | |
download | beignet-c454c8f4f3ae248093fb09672fd40e93c0dffc59.tar.gz |
utests: only check -dump-spir-binary on beignet implementation
Signed-off-by: Guo Yejun <yejun.guo@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/get_cl_info.cpp')
-rw-r--r-- | utests/get_cl_info.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utests/get_cl_info.cpp b/utests/get_cl_info.cpp index afdf8cae..801d0c29 100644 --- a/utests/get_cl_info.cpp +++ b/utests/get_cl_info.cpp @@ -467,12 +467,14 @@ void compile_spir_binary(void) } //Test is successful if the backend created the file - if( (fp = fopen(spir_file, "r")) == NULL) { + if (cl_check_beignet()) { + if( (fp = fopen(spir_file, "r")) == NULL) { std::cout << "SPIR file creation.. FAILED"; OCL_ASSERT(0); - } else { + } else { fclose(fp); std::cout << "SPIR file created.. SUCCESS"; + } } } MAKE_UTEST_FROM_FUNCTION(compile_spir_binary); |