From f5a28b279d78f314e2b9ac76a1d62f71fba62cb2 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 31 Aug 2011 11:18:29 +0000 Subject: [PATCH] lib: rename boinc_getopencl_ids() to boinc_get_opencl_ids() svn path=/trunk/boinc/; revision=24092 --- checkin_notes | 2 +- lib/coproc.cpp | 8 ++++---- lib/coproc.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/checkin_notes b/checkin_notes index 4edb24fffe..e023244b12 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5347,7 +5347,7 @@ Charlie 31 Aug 2011 gui_rpc_client_ops.cpp Charlie 31 Aug 2011 - - lib: Add OPENCL_REFERENCE boinc_getopencl_ids(int argc, char** argv) + - lib: Add OPENCL_REFERENCE boinc_get_opencl_ids(int argc, char** argv) to be called by OpenCL project applications to get the platform ID and device ID of the GPU assigned to the task by the scheduler. diff --git a/lib/coproc.cpp b/lib/coproc.cpp index 3bcc3a369d..455fbc8e99 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -708,7 +708,7 @@ static cl_int (*__clGetDeviceInfo)(cl_device_id /* device */, size_t * /* param_value_size_ret */); #endif -void boinc_getopencl_ids(char *type, int device_num, OPENCL_REFERENCE *ref) { +void boinc_get_opencl_ids(char *type, int device_num, OPENCL_REFERENCE *ref) { cl_int errnum; cl_platform_id platforms[MAX_OPENCL_PLATFORMS]; cl_uint num_platforms, platform_index, num_devices; @@ -788,7 +788,7 @@ bail: } } -OPENCL_REFERENCE boinc_getopencl_ids(int argc, char** argv) { +OPENCL_REFERENCE boinc_get_opencl_ids(int argc, char** argv) { OPENCL_REFERENCE ref; char type[256]; int device_num; @@ -818,7 +818,7 @@ OPENCL_REFERENCE boinc_getopencl_ids(int argc, char** argv) { #ifdef _WIN32 try { - boinc_getopencl_ids(type, device_num, &ref); + boinc_get_opencl_ids(type, device_num, &ref); } catch (...) { ref.retval = ERR_SIGNAL_CATCH; @@ -828,7 +828,7 @@ OPENCL_REFERENCE boinc_getopencl_ids(int argc, char** argv) { if (setjmp(resume)) { ref.retval = ERR_SIGNAL_CATCH; } else { - boinc_getopencl_ids(type, device_num, &ref); + boinc_get_opencl_ids(type, device_num, &ref); } signal(SIGSEGV, old_sig); diff --git a/lib/coproc.h b/lib/coproc.h index 75a18a88f0..a98b965f16 100644 --- a/lib/coproc.h +++ b/lib/coproc.h @@ -411,6 +411,6 @@ struct COPROCS { } }; -OPENCL_REFERENCE boinc_getopencl_ids(int argc, char** argv); +OPENCL_REFERENCE boinc_get_opencl_ids(int argc, char** argv); #endif