Skip to content

Commit 73ee089

Browse files
committed
fix attempt for hipcc
1 parent 6c37f29 commit 73ee089

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

include/ddc/detail/macros.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,3 @@
5252
#else
5353
#define DDC_HIP_5_7_ANONYMOUS_NAMESPACE_WORKAROUND(NAME)
5454
#endif
55-
56-
#if defined(__HIPCC__)
57-
#define HIPCC_COMPATIBLE_MAYBE_UNUSED
58-
#else
59-
#define HIPCC_COMPATIBLE_MAYBE_UNUSED [[maybe_unused]]
60-
#endif

tests/for_each.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void TestAnnotatedForEachSerialDevice1D(ddc::ChunkSpan<
9393
ddc::parallel_for_each(
9494
Kokkos::DefaultExecutionSpace(),
9595
DDom0D(),
96-
KOKKOS_LAMBDA(HIPCC_COMPATIBLE_MAYBE_UNUSED DElem0D unused_elem) {
96+
KOKKOS_LAMBDA(DElem0D) {
9797
ddc::annotated_for_each(view.domain(), [=](DElemX const ix) { view(ix) = 1; });
9898
});
9999
}
@@ -127,7 +127,7 @@ void TestAnnotatedForEachSerialDevice2D(ddc::ChunkSpan<
127127
ddc::parallel_for_each(
128128
Kokkos::DefaultExecutionSpace(),
129129
DDom0D(),
130-
KOKKOS_LAMBDA(HIPCC_COMPATIBLE_MAYBE_UNUSED DElem0D unused_elem) {
130+
KOKKOS_LAMBDA(DElem0D) {
131131
ddc::annotated_for_each(view.domain(), [=](DElemXY const ixy) { view(ixy) = 1; });
132132
});
133133
}

tests/transform_reduce.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ int TestAnnotatedTransformReduce(ddc::ChunkSpan<
8787
ddc::parallel_for_each(
8888
Kokkos::DefaultExecutionSpace(),
8989
DDom0D(),
90-
KOKKOS_LAMBDA(HIPCC_COMPATIBLE_MAYBE_UNUSED DElem0D unused_elem) {
90+
KOKKOS_LAMBDA(DElem0D) {
9191
count() = ddc::annotated_transform_reduce(
9292
chunk.domain(),
9393
0,

0 commit comments

Comments
 (0)