2014-02-21 19:41 GMT+04:00 Bernd Schmidt <ber...@codesourcery.com>: > The problem is that ptx does not have a linker, so we cannot exactly > reproduce what happens on the host side. We have to process all host .o > files in one single invocation of ptx lto1, and produce a single ptx > assembly file, with a single function/variable table, from there. Having > functions and variables separated gives us at least a small chance that the > order will match that found in the host tables if the host table is produced > by linking multiple fragments.
If ptx lto1 will process all .o files in order as they were passed to it, the resulting table should be consistent with the table produced by host's lto1. > What kind of dependencies between liba and libb do you expect to be able to > support on the target side? References to each other's functions and > variables? Yes, references to global variables and calls to functions, marked with "omp declare target".