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
MMCV
Commits
4f51a937
Unverified
Commit
4f51a937
authored
Jun 21, 2023
by
xiabo123
Committed by
GitHub
Jun 21, 2023
Browse files
Fix the support for ROCm (#2827)
parent
99a8d057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/ops/csrc/pytorch/cuda/filtered_lrelu.cu
mmcv/ops/csrc/pytorch/cuda/filtered_lrelu.cu
+1
-1
No files found.
mmcv/ops/csrc/pytorch/cuda/filtered_lrelu.cu
View file @
4f51a937
...
...
@@ -1678,7 +1678,7 @@ std::tuple<torch::Tensor, torch::Tensor, int> filtered_lrelu_op(
int
maxSharedBytes
=
0
;
#ifdef MMCV_WITH_HIP
cudaDeviceGetAttribute
(
&
maxSharedBytes
,
hipDeviceAttributeSharedMemPerBlock
Optin
,
hipDeviceAttribute
Max
SharedMem
ory
PerBlock
,
x
.
device
().
index
());
#else
AT_CUDA_CHECK
(
cudaDeviceGetAttribute
(
&
maxSharedBytes
,
...
...
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