我按照下面网站的说明在我的电脑上测试DPC++。
https://github.com/intel/llvm/blob/sycl/sycl/doc/GetStartedGuide.md#build-dpc-toolchain
$ ./simple-sycle-app.exe
The results are correct!然后我修改了第23行以锁定我的gpu。
// Creating SYCL queue
sycl::queue Queue( sycl::gpu_selector{} );
[18:49]ec2-user$ ./simple-sycl-app-gpu.exe
terminate called after throwing an instance of 'cl::sycl::runtime_error' what(): No device of requested type available. -1 (PI_ERROR_DEVICE_NOT_FOUND) Aborted (core dumped)我是否需要在启用CUDA访问我的K80 Nvidia GPU的情况下构建我的dpc环境?我没有启用它,因为CUDA的支持显然仍然是实验性的。我认为使用DPC++的全部目的是为了让我不需要使用数据自动化系统。我应该能够使用我的Nvidia gpu只是一个nvidia驱动器,而不是CUDA?
发布于 2022-11-22 12:28:23
您需要在CUDA支持下构建llvm编译器。简短的指导是
--cuda param以配置命令(参见项目自述说明)https://stackoverflow.com/questions/73437498
复制相似问题