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
f4c371a3
Commit
f4c371a3
authored
3 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Minor fix in enable_gpu_mod mex code to avoid a matlab error when cmake option USE_GPU_MOD is OFF.
parent
5cfe7809
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wrapper/matlab/src/enable_gpu_mod.h
+3
-2
3 additions, 2 deletions
wrapper/matlab/src/enable_gpu_mod.h
with
3 additions
and
2 deletions
wrapper/matlab/src/enable_gpu_mod.h
+
3
−
2
View file @
f4c371a3
...
...
@@ -13,11 +13,12 @@ void enable_gpu_mod(const mxArray **prhs, const int nrhs, mxArray **plhs, const
mxGetString
(
prhs
[
2
],
backend
,
sizeof
(
backend
));
silent
=
(
bool
)
mxGetScalar
(
prhs
[
3
]);
// backend is not yet used (only CUDA is available)
void
*
ptr
=
nullptr
;
#ifdef USE_GPU_MOD
void
*
ptr
=
Faust
::
enable_gpu_mod
(
libpath
,
silent
);
ptr
=
Faust
::
enable_gpu_mod
(
libpath
,
silent
);
#endif
plhs
[
0
]
=
mxCreateDoubleMatrix
(
1
,
1
,
mxREAL
);
double
*
ptr_out
=
(
double
*
)
mxGetData
(
plhs
[
0
]);
ptr_out
[
0
]
=
(
double
)((
unsigned
long
long
)
ptr
);
#endif
}
#endif
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