首页 > 解决方案 > DPCT 迁移失败并出现错误代码 (-5)

问题描述

我已将我的 CUDA 工具包版本更新到 11.4。当我尝试使用 DPCT 工具将任何 CUDA 代码迁移到 DPC++ 时,我收到以下错误:

dpct 以代码退出:-5(错误:CUDA 头文件的路径无效或不可用。使用 --cuda-include-path 指定)

我什至指定了 cuda-include-path 标志,但错误仍然存​​在。我错过了什么?

环境:操作系统:CentOS 8 oneAPI base takeit版本:2021.3

标签: intel-oneapiintel-dpct

解决方案


DPCT 工具不支持 CentOS 版本 8。您可以尝试使用任何受支持的操作系统版本进行 DPCT 迁移。

有关支持的操作系统及其版本,请参阅以下链接。

https://software.intel.com/content/www/us/en/develop/articles/intel-dpc-compatibility-tool-system-requirements.html


推荐阅读