我是 intel-oneapi
的新手,我关注了intel's instructions在 Ubuntu 20.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
然后代码毫无异常(exception)地执行。
最佳答案
如果您使用 DPC++ 以 Nvidia 硬件为目标,您当前需要使用此支持重新编译 DPC++。
执行此操作的说明在 the repository here 中。 .
完成后,您可以使用适当的设备选择器来选择 Nvidia GPU 来执行。
关于c++ - 编译时未启用 intel-oneApi CUDA 支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62923007/