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
vision
Commits
e395a79c
Unverified
Commit
e395a79c
authored
Jun 01, 2021
by
Nicolas Hug
Committed by
GitHub
Jun 01, 2021
Browse files
Fix DeformConvTester::test_backward_cuda by setting threads per block to 512 (#3942)
parent
2cc83594
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu
torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu
+1
-4
No files found.
torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu
View file @
e395a79c
...
@@ -85,10 +85,7 @@ inline unsigned int GET_THREADS() {
...
@@ -85,10 +85,7 @@ inline unsigned int GET_THREADS() {
#ifdef __HIP_PLATFORM_HCC__
#ifdef __HIP_PLATFORM_HCC__
return
256
;
return
256
;
#endif
#endif
if
(
at
::
cuda
::
getCurrentDeviceProperties
()
->
major
>=
6
)
{
return
512
;
return
1024
;
}
return
512
;
}
}
inline
unsigned
int
GET_BLOCKS
(
inline
unsigned
int
GET_BLOCKS
(
...
...
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