Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
a9592b07
"git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "0a5d5a2c686ff5e69eed8b4b19b0501f29a24d1d"
Unverified
Commit
a9592b07
authored
Aug 20, 2020
by
Juha Reunanen
Committed by
GitHub
Aug 19, 2020
Browse files
Minor typo fixes (#2150)
parent
2a870e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
dlib/cuda/cudnn_dlibapi.cpp
dlib/cuda/cudnn_dlibapi.cpp
+12
-12
No files found.
dlib/cuda/cudnn_dlibapi.cpp
View file @
a9592b07
...
@@ -805,9 +805,9 @@ namespace dlib
...
@@ -805,9 +805,9 @@ namespace dlib
cudnnConvolutionFwdAlgo_t
forward_best_algo
;
cudnnConvolutionFwdAlgo_t
forward_best_algo
;
#if CUDNN_MAJOR >= 8
#if CUDNN_MAJOR >= 8
{
{
int
num_possi
l
be_algorithms
=
0
;
int
num_possib
l
e_algorithms
=
0
;
CHECK_CUDNN
(
cudnnGetConvolutionForwardAlgorithmMaxCount
(
context
(),
&
num_possi
l
be_algorithms
));
CHECK_CUDNN
(
cudnnGetConvolutionForwardAlgorithmMaxCount
(
context
(),
&
num_possib
l
e_algorithms
));
std
::
vector
<
cudnnConvolutionFwdAlgoPerf_t
>
perf_results
(
num_possi
l
be_algorithms
);
std
::
vector
<
cudnnConvolutionFwdAlgoPerf_t
>
perf_results
(
num_possib
l
e_algorithms
);
int
num_algorithms
=
0
;
int
num_algorithms
=
0
;
CHECK_CUDNN
(
cudnnFindConvolutionForwardAlgorithm
(
CHECK_CUDNN
(
cudnnFindConvolutionForwardAlgorithm
(
context
(),
context
(),
...
@@ -815,7 +815,7 @@ namespace dlib
...
@@ -815,7 +815,7 @@ namespace dlib
(
const
cudnnFilterDescriptor_t
)
filter_handle
,
(
const
cudnnFilterDescriptor_t
)
filter_handle
,
(
const
cudnnConvolutionDescriptor_t
)
conv_handle
,
(
const
cudnnConvolutionDescriptor_t
)
conv_handle
,
descriptor
(
dest_desc
),
descriptor
(
dest_desc
),
num_possi
l
be_algorithms
,
num_possib
l
e_algorithms
,
&
num_algorithms
,
&
num_algorithms
,
perf_results
.
data
()));
perf_results
.
data
()));
perf_results
.
resize
(
num_algorithms
);
perf_results
.
resize
(
num_algorithms
);
...
@@ -841,9 +841,9 @@ namespace dlib
...
@@ -841,9 +841,9 @@ namespace dlib
cudnnConvolutionBwdDataAlgo_t
backward_data_best_algo
;
cudnnConvolutionBwdDataAlgo_t
backward_data_best_algo
;
#if CUDNN_MAJOR >= 8
#if CUDNN_MAJOR >= 8
{
{
int
num_possi
l
be_algorithms
=
0
;
int
num_possib
l
e_algorithms
=
0
;
CHECK_CUDNN
(
cudnnGetConvolutionBackwardFilterAlgorithmMaxCount
(
context
(),
&
num_possi
l
be_algorithms
));
CHECK_CUDNN
(
cudnnGetConvolutionBackwardFilterAlgorithmMaxCount
(
context
(),
&
num_possib
l
e_algorithms
));
std
::
vector
<
cudnnConvolutionBwdDataAlgoPerf_t
>
perf_results
(
num_possi
l
be_algorithms
);
std
::
vector
<
cudnnConvolutionBwdDataAlgoPerf_t
>
perf_results
(
num_possib
l
e_algorithms
);
int
num_algorithms
=
0
;
int
num_algorithms
=
0
;
CHECK_CUDNN
(
cudnnFindConvolutionBackwardDataAlgorithm
(
CHECK_CUDNN
(
cudnnFindConvolutionBackwardDataAlgorithm
(
context
(),
context
(),
...
@@ -851,7 +851,7 @@ namespace dlib
...
@@ -851,7 +851,7 @@ namespace dlib
descriptor
(
dest_desc
),
descriptor
(
dest_desc
),
(
const
cudnnConvolutionDescriptor_t
)
conv_handle
,
(
const
cudnnConvolutionDescriptor_t
)
conv_handle
,
descriptor
(
data
),
descriptor
(
data
),
num_possi
l
be_algorithms
,
num_possib
l
e_algorithms
,
&
num_algorithms
,
&
num_algorithms
,
perf_results
.
data
()));
perf_results
.
data
()));
perf_results
.
resize
(
num_algorithms
);
perf_results
.
resize
(
num_algorithms
);
...
@@ -878,9 +878,9 @@ namespace dlib
...
@@ -878,9 +878,9 @@ namespace dlib
cudnnConvolutionBwdFilterAlgo_t
backward_filters_best_algo
;
cudnnConvolutionBwdFilterAlgo_t
backward_filters_best_algo
;
#if CUDNN_MAJOR >= 8
#if CUDNN_MAJOR >= 8
{
{
int
num_possi
l
be_algorithms
=
0
;
int
num_possib
l
e_algorithms
=
0
;
CHECK_CUDNN
(
cudnnGetConvolutionBackwardFilterAlgorithmMaxCount
(
context
(),
&
num_possi
l
be_algorithms
));
CHECK_CUDNN
(
cudnnGetConvolutionBackwardFilterAlgorithmMaxCount
(
context
(),
&
num_possib
l
e_algorithms
));
std
::
vector
<
cudnnConvolutionBwdFilterAlgoPerf_t
>
perf_results
(
num_possi
l
be_algorithms
);
std
::
vector
<
cudnnConvolutionBwdFilterAlgoPerf_t
>
perf_results
(
num_possib
l
e_algorithms
);
int
num_algorithms
=
0
;
int
num_algorithms
=
0
;
CHECK_CUDNN
(
cudnnFindConvolutionBackwardFilterAlgorithm
(
CHECK_CUDNN
(
cudnnFindConvolutionBackwardFilterAlgorithm
(
context
(),
context
(),
...
@@ -888,7 +888,7 @@ namespace dlib
...
@@ -888,7 +888,7 @@ namespace dlib
descriptor
(
dest_desc
),
descriptor
(
dest_desc
),
(
const
cudnnConvolutionDescriptor_t
)
conv_handle
,
(
const
cudnnConvolutionDescriptor_t
)
conv_handle
,
(
const
cudnnFilterDescriptor_t
)
filter_handle
,
(
const
cudnnFilterDescriptor_t
)
filter_handle
,
num_possi
l
be_algorithms
,
num_possib
l
e_algorithms
,
&
num_algorithms
,
&
num_algorithms
,
perf_results
.
data
()));
perf_results
.
data
()));
perf_results
.
resize
(
num_algorithms
);
perf_results
.
resize
(
num_algorithms
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment