Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
faust group
faust
Commits
5d77c102
Commit
5d77c102
authored
2 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Set priority of CUDA versions in gpu_mod lib loading.
parent
f218a10c
Branches
Branches containing commit
Tags
3.38.9
Tags containing commit
No related merge requests found
Pipeline
#834172
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wrapper/python/src/_FaustCorePy.pyx
+3
-3
3 additions, 3 deletions
wrapper/python/src/_FaustCorePy.pyx
with
3 additions
and
3 deletions
wrapper/python/src/_FaustCorePy.pyx
+
3
−
3
View file @
5d77c102
...
@@ -88,9 +88,9 @@ def enable_gpu_mod(libpaths=None, backend='cuda', silent=False, fatal=False):
...
@@ -88,9 +88,9 @@ def enable_gpu_mod(libpaths=None, backend='cuda', silent=False, fatal=False):
# don't use os.path.join or os.path.sep because anyway
# don't use os.path.join or os.path.sep because anyway
# lib name suffix and prefix depend on OS
# lib name suffix and prefix depend on OS
libpaths
=
[]
libpaths
=
[]
for
gpu_backend
in
[
'
-cu
9.2
'
,
'
-cu11.4
'
,
''
]:
# the last one is
for
gpu_backend
in
[
'
-cu
12.1
'
,
'
-cu11.4
'
,
''
]:
# the last one is
# for
descendant/backward compatibility
# for
unversioned lib
# (the
backend
are sorted per order of preference)
# (the
versions
are sorted per order of preference)
if
sys
.
platform
==
'
linux
'
:
if
sys
.
platform
==
'
linux
'
:
libpaths
+=
[
pyfaust_path
+
"
/lib/libgm
"
+
gpu_backend
+
"
.so
"
]
libpaths
+=
[
pyfaust_path
+
"
/lib/libgm
"
+
gpu_backend
+
"
.so
"
]
elif
sys
.
platform
==
'
darwin
'
:
elif
sys
.
platform
==
'
darwin
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment