aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/CLKernelLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CL/CLKernelLibrary.cpp')
-rw-r--r--src/core/CL/CLKernelLibrary.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp
index 29b01e6cea..3c92257642 100644
--- a/src/core/CL/CLKernelLibrary.cpp
+++ b/src/core/CL/CLKernelLibrary.cpp
@@ -966,8 +966,7 @@ size_t CLKernelLibrary::max_local_workgroup_size(const cl::Kernel &kernel) const
cl::NDRange CLKernelLibrary::default_ndrange() const
{
- cl::Device device = cl::Device::getDefault();
- GPUTarget _target = get_target_from_device(device);
+ GPUTarget _target = get_target_from_device(_device);
cl::NDRange default_range;
switch(_target)