Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cuda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
aidge_backend_cuda
Merge requests
!3
Update with default operator impl
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update with default operator impl
simpl_op_impl
into
main
Overview
0
Commits
3
Pipelines
3
Changes
2
Merged
Olivier BICHLER
requested to merge
simpl_op_impl
into
main
1 year ago
Overview
0
Commits
3
Pipelines
3
Changes
2
Expand
Related to
aidge_core!37 (merged)
.
0
0
Merge request reports
Compare
main
version 2
ad0c5db0
1 year ago
version 1
74886e26
1 year ago
main (base)
and
latest version
latest version
e4172410
3 commits,
1 year ago
version 2
ad0c5db0
2 commits,
1 year ago
version 1
74886e26
1 commit,
1 year ago
2 files
+
4
−
72
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
include/aidge/backend/cuda/operator/ConvImpl.hpp
+
1
−
17
Options
@@ -27,15 +27,9 @@
#include
"aidge/backend/cuda/utils/CudaUtils.hpp"
namespace
Aidge
{
// class Conv_Op;
template
<
DimIdx_t
DIM
>
class
ConvImpl_cuda
:
public
OperatorImpl
{
private:
const
Conv_Op
<
DIM
>
&
mOp
;
std
::
array
<
NbElts_t
,
3
>
mNbConsumedData
=
{
0
,
0
,
0
};
std
::
array
<
NbElts_t
,
1
>
mNbProducedData
=
{
0
};
// CuDNN specific variables
cudnnConvolutionDescriptor_t
mConvDesc
=
nullptr
;
cudnnFilterDescriptor_t
mFilterDesc
=
nullptr
;
@@ -44,24 +38,14 @@ private:
void
*
mWorkspace
=
nullptr
;
public:
ConvImpl_cuda
(
const
Conv_Op
<
DIM
>
&
op
)
:
m
Op
(
op
)
{}
ConvImpl_cuda
(
const
Conv_Op
<
DIM
>
&
op
)
:
Op
eratorImpl
(
op
)
{}
static
std
::
unique_ptr
<
ConvImpl_cuda
>
create
(
const
Conv_Op
<
2
>
&
op
)
{
return
std
::
make_unique
<
ConvImpl_cuda
>
(
op
);
}
public
:
NbElts_t
getNbRequiredData
(
const
IOIndex_t
inputIdx
)
const
override
final
;
NbElts_t
getNbRequiredProtected
(
const
IOIndex_t
inputIdx
)
const
override
final
;
NbElts_t
getRequiredMemory
(
const
IOIndex_t
/*outputIdx*/
,
const
std
::
vector
<
DimSize_t
>
&
/*inputsSize*/
)
const
override
final
;
NbElts_t
getNbConsumedData
(
const
IOIndex_t
inputIdx
)
const
override
final
;
NbElts_t
getNbProducedData
(
const
IOIndex_t
outputIdx
)
const
override
final
;
void
updateConsummerProducer
()
override
final
;
void
forward
();
void
backward
();
~
ConvImpl_cuda
();
private
:
Loading