- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
First of all, thanks for reading this.
I am new to programming in Python with GPU, and as my laptop has an Intel GPU, I cannot use cupy as a substitute of numpy. I am trying to use Intel's package dpnp. I followed the guidelines, and I installed Intel distribution for Python and Intel® oneAPI Base Toolkit, in that order, on my Windows 10 machine.
Then, I added a new environment into my Visual Studio project with the path of the installation, and it seems to work, because when I type Python I get the following
Now, if I try to install the dpnp package in the environment, it looks like it is already installed, because I get
But, if I try to run any code where I need to use it, it cannot be found. For example, if I try to import it:
In the screen-shot, it looks like the problem is with the package dpctl, but it also says that it's already installed.
Can anybody explain to me what I am doing wrong?
As a follow-up question, do you know if there is an easier way to make use of my laptop's GPU for programming with Python in any numpy-like library?
Thanks in advance,
Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel Communities.
We tried reproducing your issue. We got the same error as yours when didn't run the setvars.sh/setvars.bat to initialize oneAPI environment. Please find the below screenshot for your reference:
In a command prompt, Initialize oneAPI environment with the below command:
C:\\Program files(x86)\Intel\oneAPI\setvars.bat
After sourcing oneAPI:
If this resolves your issue, make sure to accept this as a solution. This helps others with similar issue. Thanks!
Regards,
Alekhya
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel Communities.
We tried reproducing your issue. We got the same error as yours when didn't run the setvars.sh/setvars.bat to initialize oneAPI environment. Please find the below screenshot for your reference:
In a command prompt, Initialize oneAPI environment with the below command:
C:\\Program files(x86)\Intel\oneAPI\setvars.bat
After sourcing oneAPI:
If this resolves your issue, make sure to accept this as a solution. This helps others with similar issue. Thanks!
Regards,
Alekhya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Has the solution provided helped? Could you please give us an update regarding this issue?
Regards,
Alekhya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
After following some guideline where examples where presented (https://www.intel.com/content/www/us/en/docs/oneapi-base-toolkit/get-started-guide-windows/2023-2/overview.html ), I could do it. I think it was the proposed step that was missing, so I have accepted your reply.
Thank you very much,
Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Glad to know that your issue is resolved. Thanks for accepting our solution. If you need any further information, please post a new question as this case is no longer monitored by Intel.
Regards,
Alekhya

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page