diff options
author | Junyan He <junyan.he@linux.intel.com> | 2013-09-12 14:06:18 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-09-12 15:52:55 +0800 |
commit | 4ea840e035b71b9dde9d8d4d438e0ff70f238fc4 (patch) | |
tree | ca08815c632677fe51fbd30f5068884b4d6557c4 /utests/utest_helper.cpp | |
parent | d41f101d64e8ca389da3a628c255b2e42f9eb0fe (diff) | |
download | beignet-4ea840e035b71b9dde9d8d4d438e0ff70f238fc4.tar.gz |
Add a test case for binary load.
Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'utests/utest_helper.cpp')
-rw-r--r-- | utests/utest_helper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utests/utest_helper.cpp b/utests/utest_helper.cpp index b4f61df4..80897991 100644 --- a/utests/utest_helper.cpp +++ b/utests/utest_helper.cpp @@ -205,8 +205,8 @@ clpanic(const char *msg, int rval) exit(-1); } -static char* -do_kiss_path(const char *file, cl_device_id device) +char* +cl_do_kiss_path(const char *file, cl_device_id device) { cl_int ver; const char *sub_path = NULL; @@ -239,7 +239,7 @@ cl_kernel_init(const char *file_name, const char *kernel_name, int format, const cl_int status = CL_SUCCESS; /* Load the program and build it */ - ker_path = do_kiss_path(file_name, device); + ker_path = cl_do_kiss_path(file_name, device); if (format == LLVM) program = clCreateProgramWithLLVMIntel(ctx, 1, &device, ker_path, &status); else if (format == SOURCE) { @@ -513,7 +513,7 @@ struct bmphdr { int *cl_read_bmp(const char *filename, int *width, int *height) { struct bmphdr hdr; - char *bmppath = do_kiss_path(filename, device); + char *bmppath = cl_do_kiss_path(filename, device); FILE *fp = fopen(bmppath, "rb"); assert(fp); |