From 3957b694e3d469c94c68cb07ad0dc12d20963534 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 3 Oct 2017 00:14:41 +1300 Subject: Resize device result buffer --- trampoline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trampoline.c') diff --git a/trampoline.c b/trampoline.c index bed457a..bfbc508 100644 --- a/trampoline.c +++ b/trampoline.c @@ -326,7 +326,7 @@ int tramp_set_kernel_args(unsigned int raw_len) { cl_int ret = 0; - device_result = clCreateBuffer(context, CL_MEM_WRITE_ONLY, 1024, NULL, &ret); + device_result = clCreateBuffer(context, CL_MEM_WRITE_ONLY, 65536, NULL, &ret); if (ret != CL_SUCCESS) { fprintf(stderr, "Failed to create buffer for slave device: %s ", get_cl_error_string(ret)); return 1; -- cgit v1.1