Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Failed to create GE handle: No such library 'C:\Windows\SYSTEM32\xrt_core.dll' #150

Open
JKLEE1015 opened this issue Jan 7, 2025 · 2 comments

Comments

@JKLEE1015
Copy link

I encountered an issue while running the quicktest . Could you have a look? thanks.
Setting environment for STX
XLNX_VART_FIRMWARE= C:\Program Files\RyzenAI\1.3.0\voe-4.0-win_amd64\xclbins\strix\AMD_AIE2P_Nx4_Overlay.xclbin
NUM_OF_DPU_RUNNERS= 1
XLNX_TARGET_NAME= AMD_AIE2_Nx4_Overlay
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20250107 15:13:24.500336 12664 vitisai_compile_model.cpp:1046] Vitis AI EP Load ONNX Model Success
I20250107 15:13:24.500336 12664 vitisai_compile_model.cpp:1047] Graph Input Node Name/Shape (1)
I20250107 15:13:24.500336 12664 vitisai_compile_model.cpp:1051] input : [-1x3x32x32]
I20250107 15:13:24.500336 12664 vitisai_compile_model.cpp:1057] Graph Output Node Name/Shape (1)
I20250107 15:13:24.500336 12664 vitisai_compile_model.cpp:1061] output : [-1x10]
[Vitis AI EP] No. of Operators : CPU 2 NPU 398
[Vitis AI EP] No. of Subgraphs : NPU 1 Actually running on NPU 1
� [ 0 ; 9 3 m 2 0 2 5 - 0 1 - 0 7 1 5 : 1 3 : 2 4 . 6 0 5 6 0 2 9 [ W : o n n x r u n t i m e : , s e s s i o n _ s t a t e . c c : 1 1 6 6 o n n x r u n t i m e : : V e r i f y E a c h N o d e I s A s s i g n e d T o A n E p ] S o m e n o d e s w e r e n o t a s s i g n e d t o t h e p r e f e r r e d e x e c u t i o n p r o v i d e r s w h i c h m a y o r m a y n o t h a v e a n n e g a t i v e i m p a c t o n p e r f o r m a n c e . e . g . O R T e x p l i c i t l y a s s i g n s s h a p e r e l a t e d o p s t o C P U t o i m p r o v e p e r f . � [ m
� [ 0 ; 9 3 m 2 0 2 5 - 0 1 - 0 7 1 5 : 1 3 : 2 4 . 6 1 1 2 8 9 6 [ W : o n n x r u n t i m e : , s e s s i o n _ s t a t e . c c : 1 1 6 8 o n n x r u n t i m e : : V e r i f y E a c h N o d e I s A s s i g n e d T o A n E p ] R e r u n n i n g w i t h v e r b o s e o u t p u t o n a n o n - m i n i m a l b u i l d w i l l s h o w n o d e a s s i g n m e n t s . � [ m
F20250107 15:13:24.671892 12664 custom_op.cpp:552] -- Error: Failed to create GE handle: No such library 'C:\Windows\SYSTEM32\xrt_core.dll'
� [ 1 ; 3 1 m 2 0 2 5 - 0 1 - 0 7 1 5 : 1 3 : 2 4 . 6 8 9 2 2 1 8 [ E : o n n x r u n t i m e : , i n f e r e n c e _ s e s s i o n . c c : 2 1 0 6 o n n x r u n t i m e : : I n f e r e n c e S e s s i o n : : I n i t i a l i z e : : < l a m b d a _ 6 6 6 f 9 e 1 0 d 0 8 0 9 a c 0 0 9 7 d 6 6 f f 1 b 8 f f 0 7 f > : : o p e r a t o r ( ) ] E x c e p t i o n d u r i n g i n i t i a l i z a t i o n : p r i v a t e : s t a t i c v o i d _ _ c d e c l g o o g l e : : p r o t o b u f : : F i e l d D e s c r i p t o r : : T y p e O n c e I n i t ( c l a s s g o o g l e : : p r o t o b u f : : F i e l d D e s c r i p t o r c o n s t * _ _ p t r 6 4 )
p u b l i c : v i r t u a l u n s i g n e d c h a r * _ _ p t r 6 4 _ _ c d e c l g o o g l e : : p r o t o b u f : : i n t e r n a l : : Z e r o F i e l d s B a s e : : _ I n t e r n a l S e r i a l i z e ( u n s i g n e d c h a r * _ _ p t r 6 4 , c l a s s g o o g l e : : p r o t o b u f : : i o : : E p s C o p y O u t p u t S t r e a m * _ _ p t r 6 4 ) c o n s t _ _ p t r 6 4
_ _ C x x F r a m e H a n d l e r 4
( u n k n o w n )
R t l C a p t u r e C o n t e x t 2
p u b l i c : v o i d _ _ c d e c l v a i p _ c o r e : : D p u S u b g r a p h E n t r y P r o t o : : u n s a f e _ a r e n a _ s e t _ a l l o c a t e d _ t r y _ f u s e ( c l a s s v a i p _ c o r e : : T r y F u s e P r o t o * _ _ p t r 6 4 ) _ _ p t r 6 4
p u b l i c : v o i d _ _ c d e c l v a i p _ c o r e : : D p u S u b g r a p h E n t r y P r o t o : : u n s a f e _ a r e n a _ s e t _ a l l o c a t e d _ t r y _ f u s e ( c l a s s v a i p _ c o r e : : T r y F u s e P r o t o * _ _ p t r 6 4 ) _ _ p t r 6 4
( u n k n o w n )
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
P y I n i t _ o n n x r u n t i m e _ p y b i n d 1 1 _ s t a t e
p u b l i c : v o i d _ _ c d e c l p y b i n d 1 1 : : e r r o r _ a l r e a d y _ s e t : : d i s c a r d _ a s _ u n r a i s a b l e ( c l a s s p y b i n d 1 1 : : o b j e c t ) _ _ p t r 6 4
P y C F u n c t i o n _ G e t F l a g s
_ P y O b j e c t _ M a k e T p C a l l
P y M e t h o d _ S e l f
_ P y O S _ U R a n d o m N o n b l o c k
P y E v a l _ G e t F u n c D e s c
_ P y E v a l _ E v a l F r a m e D e f a u l t
_ P y E v a l _ E v a l F r a m e D e f a u l t
_ P y F u n c t i o n _ V e c t o r c a l l
_ P y O S _ U R a n d o m N o n b l o c k
P y E v a l _ G e t F u n c D e s c
_ P y E v a l _ E v a l F r a m e D e f a u l t
_ P y E v a l _ E v a l F r a m e D e f a u l t
_ P y F u n c t i o n _ V e c t o r c a l l
� [ m
Failed to create an InferenceSession: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: private: static void __cdecl google::protobuf::FieldDescriptor::TypeOnceInit(class google::protobuf::FieldDescriptor const * __ptr64)
public: virtual unsigned char * __ptr64 __cdecl google::protobuf::internal::ZeroFieldsBase::_InternalSerialize(unsigned char * __ptr64,class google::protobuf::io::EpsCopyOutputStream * __ptr64)const __ptr64
__CxxFrameHandler4
(unknown)
RtlCaptureContext2
public: void __cdecl vaip_core::DpuSubgraphEntryProto::unsafe_arena_set_allocated_try_fuse(class vaip_core::TryFuseProto * __ptr64) __ptr64
public: void __cdecl vaip_core::DpuSubgraphEntryProto::unsafe_arena_set_allocated_try_fuse(class vaip_core::TryFuseProto * __ptr64) __ptr64
(unknown)
PyInit_onnxruntime_pybind11_state
PyInit_onnxruntime_pybind11_state
PyInit_onnxruntime_pybind11_state
PyInit_onnxruntime_pybind11_state
PyInit_onnxruntime_pybind11_state
PyInit_onnxruntime_pybind11_state
PyInit_onnxruntime_pybind11_state
PyInit_onnxruntime_pybind11_state
PyInit_onnxruntime_pybind11_state
PyInit_onnxruntime_pybind11_state
public: void __cdecl pybind11::error_already_set::discard_as_unraisable(class pybind11::object) __ptr64
PyCFunction_GetFlags
_PyObject_MakeTpCall
PyMethod_Self
_PyOS_URandomNonblock
PyEval_GetFuncDesc
_PyEval_EvalFrameDefault
_PyEval_EvalFrameDefault
_PyFunction_Vectorcall
_PyOS_URandomNonblock
PyEval_GetFuncDesc
_PyEval_EvalFrameDefault
_PyEval_EvalFrameDefault
_PyFunction_Vectorcall

@JKLEE1015
Copy link
Author

this is main issue I think -- Error: Failed to create GE handle: No such library 'C:\Windows\SYSTEM32\xrt_core.dll'

@poganesh
Copy link
Contributor

poganesh commented Jan 8, 2025

Hi @JKLEE1015,

Please make sure that you have the latest version of the NPU driver installed NPU_RAI1.3.zip. An outdated driver version could cause this error.

You can follow the installation steps outlined here - Install NPU Drivers

After installation ensure that NPU MCDM driver (Version:32.0.203.237, Date:11/8/2024) is correctly installed by opening
Device Manager -> Neural processors -> NPU Compute Accelerator Device
(Note: If Neural processors is not visible, in the device manager please click check for hardware changes after installing the latest driver)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants