Intel DevCloud for oneAPI使用问题
Intel DevCloud for oneAPI使用问题
总而言之,云平台上有些文档落后于软件更新,导致根据教程学习的时候会遇到一些问题;可以使用的设备资源也有缺失,无法接触GPU,就无法真正使用Opencl和sycl。
MPI_with_OpenMP_or_DPCPP/mpi_dpcpp.ipynb无法编译
总结
Intel DevCloud的MPI_with_OpenMP_or_DPCPP/mpi_dpcpp.ipynb 教程样例无法运行。故计是因为intel更新了devcloud但是没有更新对应的教程文档。以下是一些尝试的debug,但没有de出来,可以不用看了。。。
问题1
按照文档中代码运行,写入lab/pi_mpi_dpcpp.cpp并使用compile_dpcpp.sh编译运行,报错lab/pi_mpi_dpcpp.cpp:33:10: fatal error: 'CL/sycl.hpp' file not found

解决方法
CL/sycl.hpp 在路径/opt/intel/inteloneapi/compiler/latest/linux/include/sycl/ 中

compile_dpcpp.sh中编译命令行添加
-I/opt/intel/inteloneapi/compiler/latest/linux/include/sycl/
问题2
报错:fatal error: 'sycl/sycl.hpp' file not found

解决方法
查看/opt/intel/inteloneapi/compiler/latest/linux/include/sycl/CL/sycl.hpp 文件

sycl/sycl.hpp在/opt/intel/inteloneapi/compiler/latest/linux/include/内
故在compile_dpcpp.sh中编译命令行添加
-I/opt/intel/inteloneapi/compiler/latest/linux/include/
问题3
报错:fatal error: 'CL/sycl/INTEL/fpga_extensions.hpp' file not found

解决方法
参考:Re: fatal error: ‘CL/sycl/INTEL/fpga_extensions.hpp’ file not found - Intel Communities
问题4

暂未解决
Intel DevCloud没有提供GPU
在overview页面中说可以通过devcloud提供gpu,但实际上并没有,所以无法真正使用opencl将代码在gpu上加速。

查看平台可用硬件方法
1.内置教程
利用oneAPI_Essentials/02_DPCPP_Program_Structure/DPCPP_Program_Structure.ipynb 中给的例程查看设备。
结果如下:


没有独立GPU芯片,只有一个Intel核显
2.OpenCL平台和设备查看
采用opencl的函数clGetPlatformIDs()、clGetPlatformInfo()、clGetDeviceIDs()、clGetDeviceInfo() 查询平台上可用平台和设备,结果如下:

只有FPGA设备和CPU并没有GPU
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
