Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
01d4ae09
Unverified
Commit
01d4ae09
authored
Aug 02, 2023
by
Umang Yadav
Committed by
GitHub
Aug 02, 2023
Browse files
Use free regular_file function for SLES which uses experimental files… (#2028)
parent
93ffc92b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/py/py_loader.cpp
src/py/py_loader.cpp
+2
-2
No files found.
src/py/py_loader.cpp
View file @
01d4ae09
...
@@ -35,9 +35,9 @@ static std::vector<fs::path> find_available_python_versions()
...
@@ -35,9 +35,9 @@ static std::vector<fs::path> find_available_python_versions()
auto
path
=
dynamic_loader
::
path
(
&
load_py
).
parent_path
();
auto
path
=
dynamic_loader
::
path
(
&
load_py
).
parent_path
();
for
(
const
auto
&
entry
:
fs
::
directory_iterator
{
path
})
for
(
const
auto
&
entry
:
fs
::
directory_iterator
{
path
})
{
{
if
(
not
entry
.
is_regular_file
())
continue
;
auto
p
=
entry
.
path
();
auto
p
=
entry
.
path
();
if
(
not
fs
::
is_regular_file
(
p
))
continue
;
if
(
not
contains
(
p
.
stem
().
string
(),
"migraphx_py_"
))
if
(
not
contains
(
p
.
stem
().
string
(),
"migraphx_py_"
))
continue
;
continue
;
result
.
push_back
(
p
);
result
.
push_back
(
p
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment