我是intel-oneapi的新手,我跟随intel's instructions在Ubuntu20.04上安装了oneApi。
我成功地编译了vector-add示例。不幸的是,在运行时我得到了以下异常:
pi_die: CUDA support was not enabled at compilation time
terminate called without an active exception
Aborted (core dumped)我需要特殊的标志才能在nvidia GPU上运行吗?当我将sycl::default_selector切换到sycl::cpu_selector时,代码就会毫无异常地执行。
发布于 2020-07-20 22:24:43
如果您的目标是使用DPC++的DPC++硬件,则当前需要使用此支持重新编译Nvidia。执行此操作的说明在the repository here中。
完成此操作后,您可以使用适当的设备选择器来选择要执行的Nvidia GPU。
https://stackoverflow.com/questions/62923007
复制相似问题