Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Atomic opertations

Hi,

I'm learning to program an FPGA using the OpenCL, in particular use DE1-Soc.

I'm trying to use atomic operations as atom_add, atom_inc ecc.

However, the compiler says: "ERROR: no matching function for call to 'atom_add.'"

I also tried using atomic_add, but with same result.

I also set# pragma OpenCL EXTENSION cl_khr_local_int32_base_atomics: enable.

What else should I do?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The error seems like something from the C compiler. Do you have the atomic add in the host or kernel code?