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
c7118e58
Commit
c7118e58
authored
Jun 08, 2023
by
xiabo
Browse files
Adapt to rocm
parent
95d5f333
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmcv/ops/csrc/pytorch/cuda/filtered_lrelu.cu
mmcv/ops/csrc/pytorch/cuda/filtered_lrelu.cu
+2
-1
No files found.
mmcv/ops/csrc/pytorch/cuda/filtered_lrelu.cu
View file @
c7118e58
...
@@ -1675,7 +1675,8 @@ std::tuple<torch::Tensor, torch::Tensor, int> filtered_lrelu_op(
...
@@ -1675,7 +1675,8 @@ std::tuple<torch::Tensor, torch::Tensor, int> filtered_lrelu_op(
int
maxSharedBytes
=
0
;
int
maxSharedBytes
=
0
;
int
result
=
cudaDeviceGetAttribute
(
&
maxSharedBytes
,
int
result
=
cudaDeviceGetAttribute
(
&
maxSharedBytes
,
// cudaDevAttrMaxSharedMemoryPerBlockOptin,
// cudaDevAttrMaxSharedMemoryPerBlockOptin,
hipDeviceAttributeSharedMemPerBlockOptin
,
// hipDeviceAttributeSharedMemPerBlockOptin,
hipDeviceAttributeMaxSharedMemoryPerBlock
,
x
.
device
().
index
());
x
.
device
().
index
());
int
sharedKB
=
maxSharedBytes
>>
10
;
int
sharedKB
=
maxSharedBytes
>>
10
;
...
...
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