https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101544
--- Comment #18 from Benjamin Schulz <schulz.benjamin at googlemail dot com> --- Interesting. Similarly as in clang, after the printf issue was resolved, a simple test script shows: Number of available devices 1 but also, firsttest runs on target Well, I have a gpu, and a cpu. that would be two devices..... On clang, target enter data and target exit data were confused by this. With #pragma omp target enter data(alloc: ) device(0) and target exit data map(release) deleting the host data at the beginning, fortunately #pragma omp target map(tofrom: was working.... I guess i have to test whether this problem is also there on gcc. It is in any case a bit confusing, if one has one target and one host, both where you can map to, and your omp device number is just 1.....