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
74baff13
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "09ae5b20f3123487f36097d284a1f535cd267e7b"
Unverified
Commit
74baff13
authored
Dec 28, 2020
by
stoperro
Committed by
GitHub
Dec 28, 2020
Browse files
Fixed CUDA 11.1 compilation. (#2271)
parent
20378b08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
dlib/cuda/cuda_dlib.cu
dlib/cuda/cuda_dlib.cu
+8
-8
No files found.
dlib/cuda/cuda_dlib.cu
View file @
74baff13
...
@@ -1549,12 +1549,12 @@ namespace dlib
...
@@ -1549,12 +1549,12 @@ namespace dlib
const
int
c
=
idx
%
dnc
;
const
int
c
=
idx
%
dnc
;
const
float
y
=
r
*
y_scale
;
const
float
y
=
r
*
y_scale
;
const
int
top
=
static_cast
<
int
>
(
::
floor
(
y
));
const
int
top
=
static_cast
<
int
>
(
::
floor
f
(
y
));
const
int
bottom
=
::
min
(
top
+
1
,
snr
-
1
);
const
int
bottom
=
::
min
(
top
+
1
,
snr
-
1
);
const
float
tb_frac
=
y
-
top
;
const
float
tb_frac
=
y
-
top
;
const
float
x
=
c
*
x_scale
;
const
float
x
=
c
*
x_scale
;
const
int
left
=
static_cast
<
int
>
(
::
floor
(
x
));
const
int
left
=
static_cast
<
int
>
(
::
floor
f
(
x
));
const
int
right
=
::
min
(
left
+
1
,
snc
-
1
);
const
int
right
=
::
min
(
left
+
1
,
snc
-
1
);
const
float
lr_frac
=
x
-
left
;
const
float
lr_frac
=
x
-
left
;
...
@@ -1586,12 +1586,12 @@ namespace dlib
...
@@ -1586,12 +1586,12 @@ namespace dlib
const
int
didx
=
channel
*
dest_chan_size_strided
+
r
*
dest_row_stride
+
c
;
const
int
didx
=
channel
*
dest_chan_size_strided
+
r
*
dest_row_stride
+
c
;
const
float
y
=
r
*
y_scale
;
const
float
y
=
r
*
y_scale
;
const
int
top
=
static_cast
<
int
>
(
::
floor
(
y
));
const
int
top
=
static_cast
<
int
>
(
::
floor
f
(
y
));
const
int
bottom
=
::
min
(
top
+
1
,
snr
-
1
);
const
int
bottom
=
::
min
(
top
+
1
,
snr
-
1
);
const
float
tb_frac
=
y
-
top
;
const
float
tb_frac
=
y
-
top
;
const
float
x
=
c
*
x_scale
;
const
float
x
=
c
*
x_scale
;
const
int
left
=
static_cast
<
int
>
(
::
floor
(
x
));
const
int
left
=
static_cast
<
int
>
(
::
floor
f
(
x
));
const
int
right
=
::
min
(
left
+
1
,
snc
-
1
);
const
int
right
=
::
min
(
left
+
1
,
snc
-
1
);
const
float
lr_frac
=
x
-
left
;
const
float
lr_frac
=
x
-
left
;
...
@@ -1660,12 +1660,12 @@ namespace dlib
...
@@ -1660,12 +1660,12 @@ namespace dlib
const
int
c
=
idx
%
dnc
;
const
int
c
=
idx
%
dnc
;
const
float
y
=
r
*
y_scale
;
const
float
y
=
r
*
y_scale
;
const
int
top
=
static_cast
<
int
>
(
::
floor
(
y
));
const
int
top
=
static_cast
<
int
>
(
::
floor
f
(
y
));
const
int
bottom
=
::
min
(
top
+
1
,
snr
-
1
);
const
int
bottom
=
::
min
(
top
+
1
,
snr
-
1
);
const
float
tb_frac
=
y
-
top
;
const
float
tb_frac
=
y
-
top
;
const
float
x
=
c
*
x_scale
;
const
float
x
=
c
*
x_scale
;
const
int
left
=
static_cast
<
int
>
(
::
floor
(
x
));
const
int
left
=
static_cast
<
int
>
(
::
floor
f
(
x
));
const
int
right
=
::
min
(
left
+
1
,
snc
-
1
);
const
int
right
=
::
min
(
left
+
1
,
snc
-
1
);
const
float
lr_frac
=
x
-
left
;
const
float
lr_frac
=
x
-
left
;
...
@@ -1696,12 +1696,12 @@ namespace dlib
...
@@ -1696,12 +1696,12 @@ namespace dlib
const
float
tmp
=
d
[
didx
+
r
*
dest_row_stride
+
c
];
const
float
tmp
=
d
[
didx
+
r
*
dest_row_stride
+
c
];
const
float
y
=
r
*
y_scale
;
const
float
y
=
r
*
y_scale
;
const
int
top
=
static_cast
<
int
>
(
::
floor
(
y
));
const
int
top
=
static_cast
<
int
>
(
::
floor
f
(
y
));
const
int
bottom
=
::
min
(
top
+
1
,
snr
-
1
);
const
int
bottom
=
::
min
(
top
+
1
,
snr
-
1
);
const
float
tb_frac
=
y
-
top
;
const
float
tb_frac
=
y
-
top
;
const
float
x
=
c
*
x_scale
;
const
float
x
=
c
*
x_scale
;
const
int
left
=
static_cast
<
int
>
(
::
floor
(
x
));
const
int
left
=
static_cast
<
int
>
(
::
floor
f
(
x
));
const
int
right
=
::
min
(
left
+
1
,
snc
-
1
);
const
int
right
=
::
min
(
left
+
1
,
snc
-
1
);
const
float
lr_frac
=
x
-
left
;
const
float
lr_frac
=
x
-
left
;
...
...
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