安装所有依赖项后在 vortex 中尝试“make”时,出现以下错误:
/usr/bin/ld: warning: libhwloc.so.5, needed by /opt/pocl/runtime/lib/libOpenCL.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /opt/pocl/runtime/lib/libOpenCL.so: undefined reference to `hwloc_topology_load'
/usr/bin/ld: /opt/pocl/runtime/lib/libOpenCL.so: undefined reference to `hwloc_get_api_version'
/usr/bin/ld: /opt/pocl/runtime/lib/libOpenCL.so: undefined reference to `hwloc_get_nbobjs_by_depth'
/usr/bin/ld: /opt/pocl/runtime/lib/libOpenCL.so: undefined reference to `hwloc_topology_destroy'
/usr/bin/ld: /opt/pocl/runtime/lib/libOpenCL.so: undefined reference to `hwloc_bitmap_isequal'
/usr/bin/ld: /opt/pocl/runtime/lib/libOpenCL.so: undefined reference to `hwloc_topology_ignore_type'
/usr/bin/ld: /opt/pocl/runtime/lib/libOpenCL.so: undefined reference to `hwloc_get_type_depth'
/usr/bin/ld: /opt/pocl/runtime/lib/libOpenCL.so: undefined reference to `hwloc_get_obj_by_depth'
/usr/bin/ld: /opt/pocl/runtime/lib/libOpenCL.so: undefined reference to `hwloc_topology_init'
collect2: error: ld returned 1 exit status
我尝试安装 hwloc 库(v1.10)并为其设置库路径,但是,我仍然遇到以下错误:
`/opt/pocl/compiler/bin/poclcc: error while loading shared libraries: libhwloc.so.5: cannot open shared object file: No such file or directory
make[3]: *** [../common.mk:76: kernel.pocl] Error 127
make[2]: *** [Makefile:2: all] Error 2
make[1]: *** [Makefile:11: opencl] Error 2
make: *** [Makefile:7: all] Error 2`
我遇到了同样的问题,我尝试安装hwloc v2.40并手动创建一个可以解决链接问题的链接,但提出了新问题,如下所示:
/usr/bin/ld:/opt/pocl/runtime/lib/libOpenCL.so:从 v0.9.3 开始支持对
hwloc_topology_ignore_type' 的未定义引用。我不确定它是否被删除了。只是分享信息。现在没有解决办法。hwloc_topology_ignore_type'. But