Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.

python

Abdelkaderlahyane
1,680 Views

I have an error when I try to run this lines in intel python 3.12:

import dpnp as np
x = np.asarray([1, 2, 3])

I received this error:

"dpctl.memory._memory.USMAllocationError: USM allocation failed"

 

Can someone help.

Thanks.

0 Kudos
5 Replies
StefR_Intel
Moderator
1,610 Views

Hi Abdelkader,

 

Can you run it with numpy? Please share the full error message and your hardware configuration.

 

Thanks,

Stef

 

 

 

0 Kudos
Abdelkaderlahyane
1,573 Views
I ran numpy successfully.
I gave you the full message from cmd.exe.
Hardware configuration:
Abdelkaderlahyane_0-1733942310545.png

 

 
Abdelkaderlahyane_1-1733942310546.png

 

 
This is the example I used to test intel python with numpy and dpctl:
"import dpnp as np"
"x = np.asarray([1, 2, 3])"
 Abdelkaderlahyane_2-1733942310547.png

 

 
Thank you for your cooperation.
0 Kudos
StefR_Intel
Moderator
1,516 Views

Hi Abdelkader,

 

Please note that the default SYCL device, in your case, the Intel® UHD Graphics 630 does not fall under the system requirements of the Intel® Distribution for Python. You can check out the system requirements here: https://www.intel.com/content/www/us/en/developer/articles/technical/get-started-with-intel-distribution-for-python.html#sys_reqs

 

Kind regards,

Stef

0 Kudos
Abdelkaderlahyane
1,472 Views

Hi guys,

I have an Intel UHD Graphics P630 that is not compatible with DPCTL from Intel Python and I have NVIDIA GeForce GTX 1050. I woud like to be helped to switch from UHD to NVIDIA to allow DPCTL programs run on my laptop.

Thanks.

0 Kudos
StefR_Intel
Moderator
1,444 Views

Hi,

 

Please check out this discussion on CUDA support https://github.com/IntelPython/dpctl/discussions/1124. If you haven't yet done so, please also check out the documentation on Managing deviceshttps://intelpython.github.io/dpctl/latest/beginners_guides/managing_devices.html#beginners-guide-managing-devices.

 

Kind regards,

Stef

0 Kudos
Reply