Skip to content

Commit 20e78e1

Browse files
committed
Fix reduce test for custom types
1 parent 29f9bb0 commit 20e78e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/parallel/test/test_reduce.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ TEST_CASE("Reduce works with custom types", "[reduce]")
7777
operation_t op = make_operation(
7878
"op",
7979
"struct pair { short a; size_t b; };\n"
80-
"extern \"C\" __device__ op(pair* lhs, pair* rhs, pair* out) {\n"
80+
"extern \"C\" __device__ void op(pair* lhs, pair* rhs, pair* out) {\n"
8181
" *out = pair{ lhs->a + rhs->a, lhs->b + rhs->b };\n"
8282
"}");
8383
const std::vector<short> a = generate<short>(num_items);

0 commit comments

Comments
 (0)