cancel
Showing results for 
Search instead for 
Did you mean: 

AI Discussions

edgebedge
Journeyman III

Ryzen ai quicktest

Hello,

I went through the installation process for the NPU (https://ryzenai.docs.amd.com/en/latest/inst.html) and everything seems to be fine. The NPU driver was installed succesfully and the NPU shows up in the device manager and task manager as well.

However, when running the quicktest.py to test the installation I end up getting this error message:

 

Traceback (most recent call last):
File "C:\Program Files\RyzenAI\1.2.0\quicktest\quicktest.py", line 44, in <module>
apu_type = get_apu_info()
File "C:\Program Files\RyzenAI\1.2.0\quicktest\quicktest.py", line 16, in get_apu_info
if 'PCI\\VEN_1022&DEV_1502&REV_00' in stdout.decode(): apu_type = 'PHX/HPT'
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 123: invalid continuation byte

 

After some googling it looks like the error comes either from the code itself or python. I found that python uses UTF-8, but should rather use latin-1. How can this be fixed?

 

Cheers

0 Likes
1 Reply
Uday_Das
Staff

Do you know if you are using PHX laptop or STX laptop? 

the quicktest.py is python file and it is trying to detect platform to setup the environment variable to NPU binary. 

You can comment out the line which has this

   set_environment_variable(apu_type

And set the environment variable manually as per the documentation. That should work

 

https://ryzenai.docs.amd.com/en/develop/runtime_setup.html#standard-configuration

For STX APUs:

set XLNX_VART_FIRMWARE=%RYZEN_AI_INSTALLATION_PATH%/voe-4.0-win_amd64/xclbins/strix/AMD_AIE2P_Nx4_Overlay.xclbin
set XLNX_TARGET_NAME=AMD_AIE2P_Nx4_Overlay

For PHX/HPT APUs:

set XLNX_VART_FIRMWARE=%RYZEN_AI_INSTALLATION_PATH%/voe-4.0-win_amd64/xclbins/phoenix/1x4.xclbin
set XLNX_TARGET_NAME=AMD_AIE2_Nx4_Overlay

 

0 Likes