Docker容器内无法访问Adreno 650 GPU的SNPE适配问题求助
Docker容器内SNPE无法访问Adreno 650 GPU(OpenCL平台查询失败)
我使用搭载Adreno 650 GPU的边缘计算设备,通过SNPE(Snap Dragon Neural Processing Engine)运行AI模型。容器外可正常调用GPU,但容器内无法访问,具体表现为snpe-platform-validator检测OpenCL平台失败。
容器外测试结果
执行SNPE平台验证命令:
snpe-platform-validator --runtime gpu --debug
返回结果显示GPU验证通过:
PF_VALIDATOR: DEBUG: Calling PlatformValidator->setRuntime PF_VALIDATOR: DEBUG: Calling PlatformValidator->RuntimeCheck PF_VALIDATOR: DEBUG: Building and running a simple Vector addition gpu program. Unit Test on the runtime GPU: Passed. SNPE is supported for runtime GPU on the device. PF_VALIDATOR: DEBUG: Calling PlatformValidator->IsRuntimeAvailable Runtime GPU Prerequisites: Present.
容器内测试情况
已在容器内安装OpenCL依赖:
apt install -y ocl-icd-opencl-dev
执行相同验证命令后返回错误:
PF_VALIDATOR: DEBUG: Calling PlatformValidator->setRuntime PF_VALIDATOR: DEBUG: Calling PlatformValidator->RuntimeCheck PF_VALIDATOR: ERROR: Failed to query OpenCL platform. Unit Test on the runtime GPU: Failed. SNPE is NOT supported for runtime GPU on the device. PF_VALIDATOR: DEBUG: Calling PlatformValidator->IsRuntimeAvailable Runtime GPU Prerequisites: Present. Error in saving the results root
寻求有高通设备或Docker容器内GPU访问经验的人,帮忙解决容器内OpenCL驱动适配及GPU访问问题。
内容的提问来源于stack exchange,提问作者mbenencase
相关产品推荐
相关产品推荐

