- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
error LNK2019: unresolved external symbol __tgt_push_mapper_component referenced in function anon_type$_implicit_mapper
Visual Studio 2022 17.6.5
Windows 10
Fortran 2024.0.1
Its a shame as its the furthest I got with IFX. The compile went fine.
Does this look like something supplied by the Fortran libraries?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like part of LLVM OpenMP support. Did you enable an OpenMP build?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes its using openMP. Two of my object files were referred to as callees for the missing __tgt... things and each is using do concurrent, but not within a parallel region. Reverting to serial loops eliminated the issue.
I tried to make a small re-producer with same project settings and use of do concurrent but it didn't replicate the link issue.
My use of do concurrent was questionable, it was done when this construct started to be supported and well before it was parallelised by the compiler. It is no benefit since the work in the loop was too small to justify the overhead of starting up threads so its simplest for me to change these to serial loops.
New discovery is that the original link error only occurred in my debug build. Maybe the do concurrent was not parallelised in the release build because of the small amount of work seen by the optimiser.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I didn't appreciate that the IFORT/IFX switch was configuration based so release build was still ifort. IFX release would probably have had the link issue too
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page