libfreenect2 示例 Protonect 仅显示原始饲料?
libfreenect2 example Protonect only showing raw feed?
我认为 libfreenect2 中的 Protonect 示例应该显示的不仅仅是这个原始提要?
我是 运行 Linux Mint 17.2 和 pocl 0.11 for OpenCL on i7 4790。
系统安装了llvm-3.6。
这是 clinfo 的输出。
Number of platforms 1
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 1.2 pocl 0.11
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix POCL
Platform Name Portable Computing Language
Number of devices 1
Device Name pthread-Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
Device Vendor pocl
Device Vendor ID 0x0
Device Version OpenCL 1.2 pocl
Driver Version 0.11
Device OpenCL C Version OpenCL C 1.2
Device Type CPU, Default
Device Profile FULL_PROFILE
Max compute units 8
Max clock frequency 4000MHz
Device Partition (core)
Max number of sub-devices 2
Supported partition types None
Max work item dimensions 3
Max work item sizes 18446744073709551615x18446744073709551615x18446744073709551615
Max work group size 4096
Preferred work group size multiple 8
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 8 / 8 (n/a)
float 4 / 4
double 2 / 2 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Double-precision Floating-point support (cl_khr_fp64)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Address bits 64, Little-Endian
Global memory size 33643532288 (31.33GiB)
Error Correction support No
Max memory allocation 8410883072 (7.833GiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 128 bytes
Alignment of base address 128 bits (16 bytes)
Global Memory cache type None
Image support Yes
Max number of samplers per kernel 16
pocl warning: encountered incomplete implementation in clGetDeviceInfo.c:135
Max size for 1D images from buffer 0 pixels
pocl warning: encountered incomplete implementation in clGetDeviceInfo.c:137
Max 1D or 2D image array size 0 images
Max 2D image size 8192x8192 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 128
Local memory type Global
Local memory size 8410883072 (7.833GiB)
Max constant buffer size 8410883072 (7.833GiB)
Max number of constant args 8
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 0ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels Yes
pocl warning: encountered incomplete implementation in clGetDeviceInfo.c:257
printf() buffer size 0
Built-in kernels
Device Available Yes
Compiler Available Yes
Linker Available Yes
Device Extensions cl_khr_fp64 cl_khr_byte_addressable_store
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Portable Computing Language
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [POCL]
clCreateContext(NULL, ...) [default] Success [POCL]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) Success (1)
Platform Name Portable Computing Language
Device Name pthread-Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name Portable Computing Language
Device Name pthread-Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.1.3
ICD loader Profile OpenCL 1.2
有什么问题吗?这是我第一次在 CPU 而不是 GPU 上使用 OpenCL,也是我第一次尝试使用 Kinect,所以我不是很熟悉。感谢您的帮助!
您的 OpenCL
无关紧要,因为您没有使用 OpenCL
。在输出中您可以看到 OpenGLDepthPacketProcessor
,这是 protonect 中的默认值。我认为最近 Linux 上出现了一些问题。尝试使用 cl
命令行参数启动 protonect:
./protonect cl
这应该确保使用 OpenCL
实现。
您也可以尝试使用 cpu
参数,既不使用 OpenGL
也不使用 OpenCL
。那会慢很多,但至少应该工作而不用担心正确的 OpenGL
/OpenCL
驱动程序。
我认为 libfreenect2 中的 Protonect 示例应该显示的不仅仅是这个原始提要?
我是 运行 Linux Mint 17.2 和 pocl 0.11 for OpenCL on i7 4790。 系统安装了llvm-3.6。 这是 clinfo 的输出。
Number of platforms 1
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 1.2 pocl 0.11
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix POCL
Platform Name Portable Computing Language
Number of devices 1
Device Name pthread-Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
Device Vendor pocl
Device Vendor ID 0x0
Device Version OpenCL 1.2 pocl
Driver Version 0.11
Device OpenCL C Version OpenCL C 1.2
Device Type CPU, Default
Device Profile FULL_PROFILE
Max compute units 8
Max clock frequency 4000MHz
Device Partition (core)
Max number of sub-devices 2
Supported partition types None
Max work item dimensions 3
Max work item sizes 18446744073709551615x18446744073709551615x18446744073709551615
Max work group size 4096
Preferred work group size multiple 8
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 8 / 8 (n/a)
float 4 / 4
double 2 / 2 (cl_khr_fp64)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Double-precision Floating-point support (cl_khr_fp64)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Address bits 64, Little-Endian
Global memory size 33643532288 (31.33GiB)
Error Correction support No
Max memory allocation 8410883072 (7.833GiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 128 bytes
Alignment of base address 128 bits (16 bytes)
Global Memory cache type None
Image support Yes
Max number of samplers per kernel 16
pocl warning: encountered incomplete implementation in clGetDeviceInfo.c:135
Max size for 1D images from buffer 0 pixels
pocl warning: encountered incomplete implementation in clGetDeviceInfo.c:137
Max 1D or 2D image array size 0 images
Max 2D image size 8192x8192 pixels
Max 3D image size 2048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 128
Local memory type Global
Local memory size 8410883072 (7.833GiB)
Max constant buffer size 8410883072 (7.833GiB)
Max number of constant args 8
Max size of kernel argument 1024
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 0ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels Yes
pocl warning: encountered incomplete implementation in clGetDeviceInfo.c:257
printf() buffer size 0
Built-in kernels
Device Available Yes
Compiler Available Yes
Linker Available Yes
Device Extensions cl_khr_fp64 cl_khr_byte_addressable_store
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Portable Computing Language
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [POCL]
clCreateContext(NULL, ...) [default] Success [POCL]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) Success (1)
Platform Name Portable Computing Language
Device Name pthread-Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name Portable Computing Language
Device Name pthread-Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.1.3
ICD loader Profile OpenCL 1.2
有什么问题吗?这是我第一次在 CPU 而不是 GPU 上使用 OpenCL,也是我第一次尝试使用 Kinect,所以我不是很熟悉。感谢您的帮助!
您的 OpenCL
无关紧要,因为您没有使用 OpenCL
。在输出中您可以看到 OpenGLDepthPacketProcessor
,这是 protonect 中的默认值。我认为最近 Linux 上出现了一些问题。尝试使用 cl
命令行参数启动 protonect:
./protonect cl
这应该确保使用 OpenCL
实现。
您也可以尝试使用 cpu
参数,既不使用 OpenGL
也不使用 OpenCL
。那会慢很多,但至少应该工作而不用担心正确的 OpenGL
/OpenCL
驱动程序。