diff options
author | David Phillips <david@sighup.nz> | 2017-10-03 00:14:41 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-10-03 00:14:41 +1300 |
commit | 3957b694e3d469c94c68cb07ad0dc12d20963534 (patch) | |
tree | 855f969a2f1865a942ac4eddf518fc7bb6ed15d9 | |
parent | 630135558c432a4cae1e74fdad09007ee17932ad (diff) | |
download | sand-leek-3957b694e3d469c94c68cb07ad0dc12d20963534.tar.xz |
Resize device result buffer
-rw-r--r-- | trampoline.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |