OpenMP on iOS / Android

OpenMP is supported in GCC, which is cross-platform ... but does this mean that OpenMP is supported on all target platforms? In particular, iOS and Android ** ... since phones / tablets switch to quad-core processors without using all the cores in games, this will be a huge drawback.

** As a non-mobile developer, I don’t know if you can write C ++ applications for Android at all?

+6
source share
1 answer

This is not necessarily the case. Example: http://groups.google.com/group/android-ndk/browse_thread/thread/a547eac5446035b4?pli=1

OMP is not supported on all GCC target platforms. It is of course not available for Gameboy Advance, for example, although GCC can customize ARM / Thumb architectures.

On the iOS side, I'm not sure if OMP is supported or not, but Apple probably would strongly recommend using their Grand Central Dispatch library with a focus on the asynchronous task queue (Apple really pushes it to perfect existence that applications should never stop and show an icon loading, which is very different from just parallel loops to speed up sequential processing).

As a non-mobile developer, I don’t know if you can write C ++ applications for Android in the first place?

Yes, C and C ++ with the Android NDK are two languages ​​supported for creating native Android applications, while iOS focuses on C, C ++, and Objective-C.

+3
source

Source: https://habr.com/ru/post/909532/


All Articles