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
Show more breadcrumbs
faust group
faust
Commits
f4066405
Commit
f4066405
authored
3 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Fix nullptr handle of gpu_mod library used for loading.
parent
480675da
No related branches found
No related tags found
No related merge requests found
Pipeline
#834197
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/faust_linear_operator/GPU2/faust_gpu_mod_utils.cpp
+4
-2
4 additions, 2 deletions
src/faust_linear_operator/GPU2/faust_gpu_mod_utils.cpp
with
4 additions
and
2 deletions
src/faust_linear_operator/GPU2/faust_gpu_mod_utils.cpp
+
4
−
2
View file @
f4066405
...
@@ -14,7 +14,8 @@ namespace Faust {
...
@@ -14,7 +14,8 @@ namespace Faust {
GPUModHandler
::~
GPUModHandler
()
GPUModHandler
::~
GPUModHandler
()
{
{
gm_close_lib
(
gm_handle
);
if
(
gm_handle
!=
nullptr
)
gm_close_lib
(
gm_handle
);
delete_mat_funcs
(
float
);
// it looks strange because load_all_mat_funcs is a macro (using a string tokenizer)
delete_mat_funcs
(
float
);
// it looks strange because load_all_mat_funcs is a macro (using a string tokenizer)
delete_mat_funcs
(
double
);
// look def in faust_gpu_mod_utils.h
delete_mat_funcs
(
double
);
// look def in faust_gpu_mod_utils.h
delete_mat_funcs
(
cuComplex
);
delete_mat_funcs
(
cuComplex
);
...
@@ -63,7 +64,8 @@ namespace Faust {
...
@@ -63,7 +64,8 @@ namespace Faust {
else
else
if
(
!
silent
)
if
(
!
silent
)
std
::
cerr
<<
"Warning: gm_lib is already loaded (can't reload it)."
<<
endl
;
std
::
cerr
<<
"Warning: gm_lib is already loaded (can't reload it)."
<<
endl
;
load_gm_functions
();
if
(
this
->
gm_handle
!=
nullptr
)
load_gm_functions
();
return
this
->
gm_handle
;
return
this
->
gm_handle
;
}
}
...
...
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