Skip to content

Commit 29f9bb0

Browse files
committed
Use void* for argument types
1 parent 4c3cbee commit 29f9bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c/parallel/src/kernels/operators.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ constexpr std::string_view binary_op_template = R"XXX(
3434
)XXX";
3535

3636
constexpr std::string_view stateless_binary_op_template = R"XXX(
37-
extern "C" __device__ void OP_NAME(LHS_T* lhs, RHS_T* rhs, {0}* out);
37+
extern "C" __device__ void OP_NAME(void* lhs, void* rhs, void* out);
3838
struct op_wrapper {{
3939
__device__ {0} operator()(LHS_T lhs, RHS_T rhs) const {{
4040
{0} ret;
@@ -107,7 +107,7 @@ std::string make_kernel_user_unary_operator(std::string_view input_t, std::strin
107107
)XXX";
108108

109109
constexpr std::string_view stateless_op = R"XXX(
110-
extern "C" __device__ void OP_NAME(INPUT_T* val, OUTPUT_T* result);
110+
extern "C" __device__ void OP_NAME(void* val, void* result);
111111
struct op_wrapper {
112112
__device__ OUTPUT_T operator()(INPUT_T val) const {
113113
OUTPUT_T out;

0 commit comments

Comments
 (0)