Hello. Ever since I tried switching over to openMP 4.0 from LEO my code was not working properly. Finally figured out that during the offload transfer the map clause copies arrays but DOES NOT COPY SCALARS.
The only way to get scalars copied to the device is to call target update to(scalar)
Can someone please explain this behaviour?
Using icc 15.0.1
EDIT: Scalars created in the same file are copied, but scalars imported from a different file using USE do not get copied. Arrays get copied no matter where they originate from.