diff options
author | Junyan He <junyan.he@linux.intel.com> | 2014-06-10 12:53:22 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-11 11:04:11 +0800 |
commit | e5d25dac46ab2f90d9fc66210f3bdc54e72445fe (patch) | |
tree | 1ee83b92a61ebdb6ae11153462b7f1a1194c7821 /utests/test_printf.cpp | |
parent | 97dec3e93f14d2431352b1501b57fe21cee3b719 (diff) | |
download | beignet-e5d25dac46ab2f90d9fc66210f3bdc54e72445fe.tar.gz |
Add the utest case for printf
Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/test_printf.cpp')
-rw-r--r-- | utests/test_printf.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/utests/test_printf.cpp b/utests/test_printf.cpp new file mode 100644 index 00000000..ac17d9da --- /dev/null +++ b/utests/test_printf.cpp @@ -0,0 +1,18 @@ +#include "utest_helper.hpp" + +void test_printf(void) +{ + // Setup kernel and buffers + OCL_CREATE_KERNEL("test_printf"); + globals[0] = 16; + locals[0] = 16; + globals[1] = 4; + locals[1] = 4; + globals[2] = 8; + locals[2] = 8; + + // Run the kernel on GPU + OCL_NDRANGE(3); +} + +MAKE_UTEST_FROM_FUNCTION(test_printf); |