diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2012-12-25 11:43:44 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-03-29 19:35:17 +0800 |
commit | 18dc79be0c89f4785164c132ae0f31b5e085ac9d (patch) | |
tree | d8d7d8580a20f4cabc21997ccbb724f39d6a0c56 /utests | |
parent | cedb82906663093a41e4a117d1c0f26e6e535bfc (diff) | |
download | beignet-18dc79be0c89f4785164c132ae0f31b5e085ac9d.tar.gz |
output file name and kernel name when cl_kernel_init() fails
This would help ease the debugging process a lot.
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests')
-rw-r--r-- | utests/utest_helper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utests/utest_helper.cpp b/utests/utest_helper.cpp index e5865615..37e89134 100644 --- a/utests/utest_helper.cpp +++ b/utests/utest_helper.cpp @@ -149,7 +149,8 @@ cl_kernel_init(const char *file_name, const char *kernel_name, int format) else if (format == SOURCE) { cl_file_map_t *fm = cl_file_map_new(); FATAL_IF (cl_file_map_open(fm, ker_path) != CL_FILE_MAP_SUCCESS, - "Failed to open file. Did you properly set OCL_KERNEL_PATH variable?"); + "Failed to open file \"%s\" with kernel \"%s\". Did you properly set OCL_KERNEL_PATH variable?", + file_name, kernel_name); const char *src = cl_file_map_begin(fm); const size_t sz = cl_file_map_size(fm); program = clCreateProgramWithSource(ctx, 1, &src, &sz, &status); |