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
97cc1dfc
"sgl-kernel/python/vscode:/vscode.git/clone" did not exist on "3e6281d0aad083211f6348d967556c9633ecd77c"
Commit
97cc1dfc
authored
Aug 02, 2023
by
Umang Yadav
Committed by
Chris Austen
Aug 02, 2023
Browse files
Use free regular_file function for SLES which uses experimental files… (#2028)
parent
e8d1a1aa
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 @
97cc1dfc
...
...
@@ -35,9 +35,9 @@ static std::vector<fs::path> find_available_python_versions()
auto
path
=
dynamic_loader
::
path
(
&
load_py
).
parent_path
();
for
(
const
auto
&
entry
:
fs
::
directory_iterator
{
path
})
{
if
(
not
entry
.
is_regular_file
())
continue
;
auto
p
=
entry
.
path
();
if
(
not
fs
::
is_regular_file
(
p
))
continue
;
if
(
not
contains
(
p
.
stem
().
string
(),
"migraphx_py_"
))
continue
;
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