Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17249 Discussions

64bit integer support

Altera_Forum
Honored Contributor II
1,458 Views

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?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
698 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
698 Views

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'"
0 Kudos
Altera_Forum
Honored Contributor II
698 Views

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.

0 Kudos
Reply