summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-09-16 17:48:43 +0300
committerTor Lillqvist <tml@collabora.com>2015-09-16 17:51:20 +0300
commit11e1c55ce05a78a486b0ea5668b1a424cd9c8f11 (patch)
tree479f97629e7bada0e2a6c0c9ec19b8707a38eb3b /sc
parent04b059ce0573ff56bbbb0aa7a007b635336e1829 (diff)
YAGNI
We use only one OpenCL device per context or program, so get rid of half-implemented (or half-reverted?) "support" for multiple devices per context. Change-Id: I951f29e867e5b3f96f6e051567ee38d607bd7ecf
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index c5b282201c70..340f3915a649 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -3889,7 +3889,7 @@ void DynamicKernel::CreateKernel()
SAL_INFO("sc.opencl", "Created program " << mpProgram);
err = clBuildProgram(mpProgram, 1,
- ::opencl::gpuEnv.mpArryDevsID, "", NULL, NULL);
+ &::opencl::gpuEnv.mpDevID, "", NULL, NULL);
if (err != CL_SUCCESS)
{
#if OSL_DEBUG_LEVEL > 0
@@ -3897,7 +3897,7 @@ void DynamicKernel::CreateKernel()
{
cl_build_status stat;
cl_int e = clGetProgramBuildInfo(
- mpProgram, ::opencl::gpuEnv.mpArryDevsID[0],
+ mpProgram, ::opencl::gpuEnv.mpDevID,
CL_PROGRAM_BUILD_STATUS, sizeof(cl_build_status),
&stat, 0);
SAL_WARN_IF(
@@ -3909,7 +3909,7 @@ void DynamicKernel::CreateKernel()
{
size_t n;
e = clGetProgramBuildInfo(
- mpProgram, ::opencl::gpuEnv.mpArryDevsID[0],
+ mpProgram, ::opencl::gpuEnv.mpDevID,
CL_PROGRAM_BUILD_LOG, 0, 0, &n);
SAL_WARN_IF(
e != CL_SUCCESS || n == 0, "sc.opencl",
@@ -3920,7 +3920,7 @@ void DynamicKernel::CreateKernel()
{
std::vector<char> log(n);
e = clGetProgramBuildInfo(
- mpProgram, ::opencl::gpuEnv.mpArryDevsID[0],
+ mpProgram, ::opencl::gpuEnv.mpDevID,
CL_PROGRAM_BUILD_LOG, n, &log[0], 0);
SAL_WARN_IF(
e != CL_SUCCESS || n == 0, "sc.opencl",