[Beignet] [PATCH] utests: only check -dump-spir-binary on beignet implementation
Guo Yejun
yejun.guo at intel.com
Wed Jul 27 23:05:39 UTC 2016
Signed-off-by: Guo Yejun <yejun.guo at intel.com>
---
utests/get_cl_info.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/utests/get_cl_info.cpp b/utests/get_cl_info.cpp
index bdd7e0c..bd557c3 100644
--- a/utests/get_cl_info.cpp
+++ b/utests/get_cl_info.cpp
@@ -465,12 +465,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);
--
1.9.1
More information about the Beignet
mailing list