Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
601 討論

Use nVidia GPU via OpenCL with oneAPI on Windows

PatrickBenomard
3,178 檢視

Hi,

Is there a way to use oneAPI to target nVidia GPUs via OpenCL on Windows?

I followed the vector-add and iso2dfd tutorials within Visual Studio 2019 but only the Intel GPU is detected.

Kind regards,

Patrick

0 積分
1 解決方案
PatrickBenomard
2,869 檢視

Hi Noorjahan,

 

Yes, you can close the thread, thanks.

 

Cheers,

 

Patrick

在原始文章中檢視解決方案

9 回應
NoorjahanSk_Intel
3,130 檢視

Hi,


Thanks for reaching out to us.


>>Is there a way to use oneAPI to target nVidia GPUs via OpenCL on Windows?


As you wanted to use NVIDIA GPU, you can download opensource oneAPI to target on non-intel GPU's, as you cannot use Intel oneAPI to target NVIDIA GPUs via OpenCL


You can refer to the below link to download opensource oneAPI:


https://www.oneapi.io/open-source/


>> followed the vector-add and iso2dfd tutorials 


You can try the code from below link to target Nvidia GPU.

https://developer.codeplay.com/products/computecpp/ce/guides/sycl-for-cuda-developers/examples


Thanks & Regards

Noorjahan.



NoorjahanSk_Intel
3,002 檢視

Hi,


Has the information provided helped? If yes could you please confirm whether can we close this thread from our end?


Thanks & Regards,

Noorjahan.


PatrickBenomard
2,985 檢視

Hi,

 

I only had a quick look at your answer for now, and am not sure whether it is going to help.

The below code does not print any other GPU device than the "Intel(R) HD Graphics 630" one on my machine, whereas it has a nVidia one too.

Is there a way to have GPUs other than Intel ones be "seen"?

 

for (auto device : sycl::device::get_devices(sycl::info::device_type::gpu))
{
    std::cout << " Device: " << device.get_info<sycl::info::device::name>() << std::endl;
}

 

Kind regards,

 

Patrick

NoorjahanSk_Intel
2,967 檢視

Hi,


Could you please let us know from where you have installed Intel oneAPI Toolkits?


>> does not print any other GPU device than the "Intel(R) HD Graphics 630"


It will not print any other device if you are using Intel oneAPI. If you want to target the NVidia GPU, you can use open-source oneAPI.


You can refer to the below links for more details:

https://www.oneapi.io/open-source

https://intel.github.io/llvm-docs/GetStartedGuide.html


Thanks & Regards

Noorjahan.



PatrickBenomard
2,921 檢視

Hello,

 

I indeed got oneAPI from https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html, which is Intel version.

I will give the open source version a shot.

 

Shall I uninstall Intel oneAPI toolkits first?

 

Kind regards,

 

Patrick

NoorjahanSk_Intel
2,896 檢視

Hi,


>>Shall I uninstall Intel oneAPI toolkits first?


You can make use of open-source oneAPI even without uninstalling Intel OneAPI toolkits.


Please follow the below link for more details regarding the installation of opensource oneAPI:

https://intel.github.io/llvm-docs/GetStartedGuide.html


Thanks & Regards,

Noorjahan.


NoorjahanSk_Intel
2,868 檢視

Hi,

Has the information provided above helped? If yes, could you please confirm whether we can close this thread from our end?


Thanks & Regards

Noorjahan.




PatrickBenomard
2,870 檢視

Hi Noorjahan,

 

Yes, you can close the thread, thanks.

 

Cheers,

 

Patrick

NoorjahanSk_Intel
2,827 檢視

Hi,

Thanks for the confirmation. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks & Regards,

Noorjahan.


回覆