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
dbdc7267
Unverified
Commit
dbdc7267
authored
Nov 16, 2020
by
Ashish Farmer
Committed by
GitHub
Nov 16, 2020
Browse files
fix GET_THREADS() for ROCm (#2997)
parent
8e878f0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
torchvision/csrc/cuda/DeformConv_cuda.cu
torchvision/csrc/cuda/DeformConv_cuda.cu
+3
-0
No files found.
torchvision/csrc/cuda/DeformConv_cuda.cu
View file @
dbdc7267
...
@@ -81,6 +81,9 @@
...
@@ -81,6 +81,9 @@
const
int
kMaxParallelImgs
=
32
;
const
int
kMaxParallelImgs
=
32
;
inline
unsigned
int
GET_THREADS
()
{
inline
unsigned
int
GET_THREADS
()
{
#ifdef __HIP_PLATFORM_HCC__
return
256
;
#endif
if
(
at
::
cuda
::
getCurrentDeviceProperties
()
->
major
>=
6
)
{
if
(
at
::
cuda
::
getCurrentDeviceProperties
()
->
major
>=
6
)
{
return
1024
;
return
1024
;
}
}
...
...
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