Forum Discussion

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

64bit integer support

Hello.

Programming guide says, that 64bit integer feauture of Embedded Profile is supported, but aoc gives an error to declaration of variable as ulong or long.

Does altera support 64bit integers?

3 Replies

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

    Can you copy your declaration to this forum post. I was able to take your code from the other post, and change the uint types to ulong and compile it in 13.1 and later versions of the compiler.

    The compiler is supposed to support 64-bit integer types and I have not seen any issues using 64-bit integer types before.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    What about support for the 64-bit atomic operations?

    I queried the platform extensions and got only those: "cl_khr_byte_addressable_store cles_khr_int64 cl_altera_live_object_tracking cl_altera_compiler_mode"

    Thus, the OpenCL parser tells me: " error: call to unavailable function 'atomic_inc'"
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    64-bit atomics are not supported at the moment. I was going to copy and paste the text about this from the programming guide but the formatting gets all messed up. If you go to the AOC programming guide and search for "Atomic Functions" you'll find that section says only 32-bit atomics are supported.