File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ namespace xpupti {
88
99struct ExternLibXpupti : public ExternLibBase {
1010 using RetType = pti_result;
11+ #if defined(_WIN32)
1112 static constexpr const char *name = " libpti_view.so" ;
13+ #else
14+ static constexpr const char *name = " pti_view.lib" ;
15+ #endif
1216 static constexpr const char *defaultDir = " " ;
1317 static constexpr const char *pathEnv = " TRITON_XPUPTI_LIB_PATH" ;
1418 static constexpr RetType success = PTI_SUCCESS;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def _select_backend() -> str:
2727 try :
2828 if (files := importlib .metadata .files ('intel-pti' )) is not None :
2929 for f in files :
30- if 'libpti_view.so' in f . name :
30+ if any ( map ( lambda el : el in f . name , ( 'libpti_view.so' , 'pti_view.lib' ))): # pylint: disable=W0640
3131 os .environ ["TRITON_XPUPTI_LIB_PATH" ] = str (pathlib .Path (f .locate ()).parent .resolve ())
3232 break
3333 except importlib .metadata .PackageNotFoundError :
You can’t perform that action at this time.
0 commit comments