Quantcast
Viewing all articles
Browse latest Browse all 415

KNC OMP4.0 fortran offload - subroutine opt args, data serialization, transfer costs?

Hello all. I'm doing some testing on OpenMP target offload model and have a few questions:

In the code attached, what's causing the serialization warnings in regards to f128 data types?

I'm trying to set up optional arguments for a subroutine that's declared to be offloaded. I'm not passing any arguments yet, and if I do a check to see if the optional arg was present I seg fault. I'm guessing this has something to do with the argument not being allocated on the MIC? Anyone experience anything similar?

I'm also trying to measure the offload cost relative to the total execution time. Before I put all of my math into a subroutine I used omp_get_wtime(). If I try to do the same from a subroutine that's offloaded the comiler (2017) complains that it's not !$omp declare target'ed. Can I get the same information from OFFLOAD_REPORT=3? As in, does anyone have any insight in exactly what's measured under host time and under mic time ?

If anyone ends up looking at my test code any review or comments would be greatly appreciated.

Many thanks.

 


Viewing all articles
Browse latest Browse all 415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>