On Mon, Nov 09, 2015 at 05:58:56PM +0100, Martin Jambor wrote: > > But I don't see any way to disable it on the command line? (no switch?) > > No, the switch is -foffload, which has missing documentation (PR > 67300) and is only described at https://gcc.gnu.org/wiki/Offloading > Nevertheless, the option allows the user to specify compiler option > -foffload=disable and no offloading should happen, not even HSA. The > user can also enumerate just the offload targets they want (and pass > them special command line stuff). > > It seems I have misplaced a hunk in the patch series. Nevertheless, > in the first patch (with configuration stuff), there is a change to > opts.c which scans the -foffload= contents and sets the flag variable > if hsa is not present. > > Whenever the compiler has to decide whether HSA is enabled for the > given compilation or not, it has to look at this variable (if > configured for HSA).
Buut what is the difference between -foffload=disable or -foffload={list not including hsa} and the new param? If you don't gridify, you don't emit any kernels... Jakub