Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

Commit c4bae07

Browse files
committed
Update main.cpp
1 parent 373da61 commit c4bae07

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

src/main.cpp

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,54 @@ static void dump_procs()
150150
case W2XCONV_PROC_OPENCL:
151151
{
152152
type = "OpenCL";
153+
switch (p->sub_type)
154+
{
155+
case W2XCONV_PROC_OPENCL_AMD_GPU:
156+
{
157+
type = "OpenCL-AMD-GPU";
158+
break;
159+
}
160+
case W2XCONV_PROC_OPENCL_NVIDIA_GPU:
161+
{
162+
type = "OpenCL-NVIDIA-GPU";
163+
break;
164+
}
165+
case W2XCONV_PROC_OPENCL_INTEL_GPU:
166+
{
167+
type = "OpenCL-INTEL-GPU";
168+
break;
169+
}
170+
case W2XCONV_PROC_OPENCL_UNKNOWN_GPU:
171+
{
172+
type = "OpenCL-UNKOWN-GPU";
173+
break;
174+
}
175+
case W2XCONV_PROC_OPENCL_AMD_CPU:
176+
{
177+
type = "OpenCL-AMD-CPU";
178+
break;
179+
}
180+
case W2XCONV_PROC_OPENCL_INTEL_CPU:
181+
{
182+
type = "OpenCL-INTEL-CPU";
183+
break;
184+
}
185+
case W2XCONV_PROC_OPENCL_UNKNOWN_CPU:
186+
{
187+
type = "OpenCL-UNKOWN-CPU";
188+
break;
189+
}
190+
case W2XCONV_PROC_OPENCL_DEVICE_UNKNOWN:
191+
{
192+
type = "OpenCL-UNKOWN";
193+
break;
194+
}
195+
default:
196+
{
197+
type = "OpenCV";
198+
break;
199+
}
200+
}
153201
break;
154202
}
155203
default:

0 commit comments

Comments
 (0)