jefferyzhang 发表于 2019-3-20 09:17
CL的so你需要安装 dnf install ocl-icd-devel.aarch64
这是rk适配好的opencl,里头应该是带有h文件的。没有 ...
keyman_sysu 发表于 2019-3-20 09:34
十分感谢,跑通了
jefferyzhang 发表于 2019-3-20 09:36
你看下我刚编辑了帖子,你要用 rk的源装才行。
如果是fedora的源,他默认跑的是cpu的,并不能起到加速作 ...
jefferyzhang 发表于 2019-3-20 09:36
你看下我刚编辑了帖子,你要用 rk的源装才行。
如果是fedora的源,他默认跑的是cpu的,并不能起到加速作 ...
xsky 发表于 2020-2-19 20:13
请问下Debain的有没有啊
xsky 发表于 2020-2-20 18:26
在Toybrick3399Pro Debain 10上
sudo apt install ocl-icd-opencl-dev
jefferyzhang 发表于 2020-2-21 08:37
我问了负责人了:
先装toybrick-gbm-dev
jefferyzhang 发表于 2020-2-21 08:37
我问了负责人了:
先装toybrick-gbm-dev
- uname -a
- Linux debian10.toybrick 4.4.189 #93 SMP Tue Nov 26 16:40:07 CST 2019 aarch64 GNU/Linux
复制代码
- toybrick@debian10:/usr/lib/aarch64-linux-gnu$ objdump -t -T libmali-toybrick.so.r18p0
- libmali-toybrick.so.r18p0: file format elf64-littleaarch64
-
- SYMBOL TABLE:
- no symbols
-
-
- DYNAMIC SYMBOL TABLE:
- 000000000003b888 l d .init 0000000000000000 .init
- 00000000004d34e8 l d .jcr 0000000000000000 .jcr
- 00000000000b1fa0 g DF .text 0000000000000060 Base glGetTexParameterxvOES
- 000000000009e520 g DF .text 0000000000000008 Base egl_get_winsys_display
- 00000000000bb970 g DF .text 00000000000000ac Base glGetnUniformivKHR
- 00000000000b0490 g DF .text 0000000000000040 Base glBlendEquationOES
- 00000000000bd62c g DF .text 00000000000000ac Base glProgramUniform3iv
- 00000000000bd2ac g DF .text 00000000000000ac Base glProgramUniform2ui
- 00000000000c15cc g DF .text 0000000000000090 Base glUseProgramStages
- 00000000000b3aa4 g DF .text 0000000000000060 Base glTexEnvfv
- 00000000000b5480 g DF .text 0000000000000090 Base glBlendFunciOES
- 00000000000b1ee0 g DF .text 0000000000000060 Base glGetTexGenxvOES
- 0000000000000000 DF *UND* 0000000000000000 toybrick_gbm_bo_get_modifier
- 00000000000b95e0 g DF .text 00000000000000b4 Base glGetProgramBinary
- 00000000000b43c8 g DF .text 0000000000000088 Base glAttachShader
- 00000000000a0ca8 g DF .text 000000000000000c Base egl_color_buffer_set_non_thread_safe
- 00000000000b2d18 g DF .text 0000000000000070 Base glNormal3f
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 pthread_mutexattr_init
- 00000000000b16e0 g DF .text 0000000000000058 Base glGenRenderbuffersOES
- 00000000000ae5f4 g DF .text 00000000000000dc Base glGetDebugMessageLog
- 00000000000b6230 g DF .text 0000000000000158 Base glCopyImageSubDataEXT
- 00000000000be5b8 g DF .text 0000000000000064 Base glResumeTransformFeedback
- 00000000000b3ed4 g DF .text 0000000000000060 Base glTexGenxOES
- 00000000000b4d50 g DF .text 0000000000000090 Base glBlendEquationSeparatei
- 0000000000000000 DF *UND* 0000000000000000 wl_resource_get_client
- 00000000000b46ec g DF .text 00000000000000b4 Base glBindBufferRange
- 000000000007bda4 g DF .text 0000000000000084 Base gbm_surface_lock_front_buffer
- 00000000000bee64 g DF .text 0000000000000088 Base glStencilMaskSeparate
- 00000000000ae010 g DF .text 0000000000000064 Base glEnable
- 00000000000af278 g DF .text 000000000000007c Base glObjectPtrLabel
- 0000000000000000 DF *UND* 0000000000000000 wl_proxy_add_listener
- 00000000000b21e0 g DF .text 0000000000000058 Base glLightModelxv
- 0000000000000000 DF *UND* 0000000000000000 wl_client_post_no_memory
- 00000000000b6e18 g DF .text 0000000000000088 Base glDisablei
- 00000000000af7b0 g DF .text 00000000000000cc Base glReadnPixelsEXT
- 00000000000a0b60 g DF .text 0000000000000020 Base egl_color_buffer_user_property_set
- ...
复制代码
- toybrick@debian10:/usr/lib/aarch64-linux-gnu$ objdump -t -T libOpenCL.so.1.0.0
-
- libOpenCL.so: file format elf64-littleaarch64
-
- SYMBOL TABLE:
- no symbols
-
-
- DYNAMIC SYMBOL TABLE:
- 0000000000004210 l d .init 0000000000000000 .init
- 0000000000019420 l d .tbss 0000000000000000 .tbss
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 memcpy
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 strlen
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 __sprintf_chk
- 0000000000000000 w D *UND* 0000000000000000 _ITM_deregisterTMCloneTable
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 strnlen
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 ftell
- 0000000000000000 w DF *UND* 0000000000000000 GLIBC_2.17 __cxa_finalize
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 opendir
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 qsort
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 dlclose
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 dlopen
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 fclose
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 fopen
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 malloc
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 dlsym
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 readdir
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 realloc
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 closedir
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 __stack_chk_fail
- 0000000000000000 w D *UND* 0000000000000000 __gmon_start__
- 0000000000000000 DO *UND* 0000000000000000 GLIBC_2.17 __stack_chk_guard
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 fseek
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 strcmp
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 rewinddir
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 strtol
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 free
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 strchr
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 strcpy
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 strstr
- 0000000000000000 w D *UND* 0000000000000000 _ITM_registerTMCloneTable
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 getenv
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 __xstat
- 0000000000000000 DF *UND* 0000000000000000 GLIBC_2.17 fgets
- 0000000000005f00 g DF .text 0000000000000018 OPENCL_1.0 clEnqueueNDRangeKernel
- 00000000000065d8 g DF .text 0000000000000018 OPENCL_2.1 clGetDeviceAndHostTimer
- 0000000000006170 g DF .text 0000000000000018 OPENCL_1.1 clCreateSubDevicesEXT
- 0000000000006348 g DF .text 0000000000000024 OPENCL_1.2 clCreateFromGLTexture
- 00000000000061b8 g DF .text 0000000000000024 OPENCL_1.1 clCreateEventFromGLsyncKHR
- 0000000000005f78 g DF .text 0000000000000018 OPENCL_1.0 clEnqueueBarrier
- 0000000000005d78 g DF .text 0000000000000018 OPENCL_1.0 clReleaseEvent
- 0000000000005500 g DF .text 00000000000000d0 OPENCL_1.0 clGetPlatformIDs
- ....
复制代码
jefferyzhang 发表于 2020-2-21 15:04
cl/gl都在同一个库里,都链接同一个库就可以。
xsky 发表于 2020-2-21 18:06
toybrick@debian10:/usr/lib/aarch64-linux-gnu$ objdump -tT libmali-toybrick.so.r18p0 | grep -E "\bcl ...
jefferyzhang 发表于 2020-2-22 16:13
clx不支持,cl只支持到1.2
xsky 发表于 2020-2-24 10:50
不好意思,可能我没表述清楚,这个只支持OpenCL 1.2看参数看到了的, 目前是在库libmali-toybrick.so.r18 ...
jefferyzhang 发表于 2020-2-24 10:56
我反馈给负责人了,他说之前给的一个库没cl,后来重编了一个,正在处理了,下午你再试试 ...
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |