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.4.
Show more breadcrumbs
faust group
faust
Commits
3e654bb3
Commit
3e654bb3
authored
3 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Move MatSparse<FPP, GPU2> from .cpp.in to hpp file because it's not a template specialization.
parent
31ff52ec
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/faust_linear_operator/GPU2/faust_MatSparse_gpu.cpp.in
+0
-13
0 additions, 13 deletions
src/faust_linear_operator/GPU2/faust_MatSparse_gpu.cpp.in
src/faust_linear_operator/GPU2/faust_MatSparse_gpu.hpp
+24
-9
24 additions, 9 deletions
src/faust_linear_operator/GPU2/faust_MatSparse_gpu.hpp
with
24 additions
and
22 deletions
src/faust_linear_operator/GPU2/faust_MatSparse_gpu.cpp.in
+
0
−
13
View file @
3e654bb3
...
@@ -292,19 +292,6 @@ namespace Faust
...
@@ -292,19 +292,6 @@ namespace Faust
delete [] colids2;
delete [] colids2;
}
}
template<typename FPP>
MatGeneric<FPP,GPU2>* MatSparse<FPP,GPU2>::Clone(const bool isOptimize /*default value=false*/) const
{
if (isOptimize)
{
Faust::MatDense<FPP,GPU2> M((*this));
return optimize(M,(*this));
} else
{
return new Faust::MatSparse<FPP,GPU2>((*this));
}
}
template<>
template<>
MatSparse<@FAUST_SCALAR_FOR_GM@, GPU2>* MatSparse<@FAUST_SCALAR_FOR_GM@, GPU2>::clone(const int32_t dev_id/*=-1*/, const void* stream/*=nullptr*/) const
MatSparse<@FAUST_SCALAR_FOR_GM@, GPU2>* MatSparse<@FAUST_SCALAR_FOR_GM@, GPU2>::clone(const int32_t dev_id/*=-1*/, const void* stream/*=nullptr*/) const
{
{
...
...
This diff is collapsed.
Click to expand it.
src/faust_linear_operator/GPU2/faust_MatSparse_gpu.hpp
+
24
−
9
View file @
3e654bb3
template
<
typename
FPP
>
namespace
Faust
{
template
<
typename
FPP2
>
template
<
typename
FPP
>
Faust
::
MatSparse
<
Real
<
FPP2
>
,
GPU2
>
Faust
::
MatSparse
<
FPP
,
GPU2
>::
to_real
()
const
MatGeneric
<
FPP
,
GPU2
>*
MatSparse
<
FPP
,
GPU2
>::
Clone
(
const
bool
isOptimize
/*default value=false*/
)
const
{
{
//TODO: should be done directly in GPU memory in gpu_mod (optimization)
if
(
isOptimize
)
MatSparse
<
FPP
,
Cpu
>
cpu_smat
;
{
auto
ffp2_cpu_smat
=
cpu_smat
.
template
to_real
<
Real
<
FPP2
>
>
();
Faust
::
MatDense
<
FPP
,
GPU2
>
M
((
*
this
));
MatSparse
<
Real
<
FPP2
>
,
GPU2
>
ffp2_gpu_smat
(
ffp2_cpu_smat
);
return
optimize
(
M
,(
*
this
));
return
ffp2_gpu_smat
;
}
else
{
return
new
Faust
::
MatSparse
<
FPP
,
GPU2
>
((
*
this
));
}
}
template
<
typename
FPP
>
template
<
typename
FPP2
>
Faust
::
MatSparse
<
Real
<
FPP2
>
,
GPU2
>
Faust
::
MatSparse
<
FPP
,
GPU2
>::
to_real
()
const
{
//TODO: should be done directly in GPU memory in gpu_mod (optimization)
MatSparse
<
FPP
,
Cpu
>
cpu_smat
;
auto
ffp2_cpu_smat
=
cpu_smat
.
template
to_real
<
Real
<
FPP2
>
>
();
MatSparse
<
Real
<
FPP2
>
,
GPU2
>
ffp2_gpu_smat
(
ffp2_cpu_smat
);
return
ffp2_gpu_smat
;
}
}
}
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