diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2013-03-22 16:07:08 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-04-10 14:52:33 +0800 |
commit | a469372ccd3a9affc1fef8e5c19f505d184244e0 (patch) | |
tree | 24f5fa5c78a29acb600b40c175b4edc8eccd03a8 /utests/runtime_createcontext.cpp | |
parent | 32fb1479eb75234d478edf7b388ea213771eef78 (diff) | |
download | beignet-a469372ccd3a9affc1fef8e5c19f505d184244e0.tar.gz |
add test case for clCreateContextFromType()
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/runtime_createcontext.cpp')
-rw-r--r-- | utests/runtime_createcontext.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utests/runtime_createcontext.cpp b/utests/runtime_createcontext.cpp new file mode 100644 index 00000000..b90e9158 --- /dev/null +++ b/utests/runtime_createcontext.cpp @@ -0,0 +1,11 @@ +#include "utest_helper.hpp" + +void runtime_createcontextfromtype(void) { + cl_int status; + + if (clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU, NULL, NULL, &status) == NULL) { + OCL_THROW_ERROR("runtime_createcontextfromtype", status); + } +} + +MAKE_UTEST_FROM_FUNCTION(runtime_createcontextfromtype); |