Skip to content

Commit

Permalink
Drop prototypes for bar() in attempt to silence spurious error.
Browse files Browse the repository at this point in the history
error: 'overloadable' function 'bar' must have a prototype
  • Loading branch information
preda committed Dec 19, 2024
1 parent cf5ef23 commit 2c38c27
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/cl/base.cl
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,6 @@ typedef global const double2* BigTab;

#define KERNEL(x) kernel __attribute__((reqd_work_group_size(x, 1, 1))) void

// Prototypes
void read(u32 WG, u32 N, T2 *u, const global T2 *in, u32 base);
void write(u32 WG, u32 N, T2 *u, global T2 *out, u32 base);
OVERLOAD void bar();
OVERLOAD void bar(u32);

void read(u32 WG, u32 N, T2 *u, const global T2 *in, u32 base) {
in += base + (u32) get_local_id(0);
for (u32 i = 0; i < N; ++i) { u[i] = in[i * WG]; }
Expand Down

0 comments on commit 2c38c27

Please sign in to comment.