On 6/18/20 12:39 PM, Alexandre Oliva wrote:
Thanks.  I see the main problem besides the dumppfx constness is the
double dot before target, fixed in the revised patch below.

With this, I think the libgomp testsuite might work with offloading
again.

Thanks. I have only tried the first one of the list Thomas has sent.

Result as follows – seems to work: PASS :-)
(last but one line: 'scan-…'):

UNSUPPORTED: libgomp.oacc-c/../libgomp.oacc-c-c++-common/nvptx-merged-loop.c 
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none  -O0
PASS: libgomp.oacc-c/../libgomp.oacc-c-c++-common/nvptx-merged-loop.c 
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none  -O2  (test 
for excess errors)
PASS: libgomp.oacc-c/../libgomp.oacc-c-c++-common/nvptx-merged-loop.c 
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none  -O2  
execution test
PASS: libgomp.oacc-c/../libgomp.oacc-c-c++-common/nvptx-merged-loop.c 
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none  -O2   
scan-offload-rtl-dump mach "Merging loop .* into "
UNSUPPORTED: libgomp.oacc-c/../libgomp.oacc-c-c++-common/nvptx-merged-loop.c 
-DACC_DEVICE_TYPE_host=1 -DACC_MEM_SHARED=1 -foffload=disable  -O2

[As previously mentioned, the libgomp OpenACC tests cycle through:
-foffload=nvptx-none + ...=disable  plus the -D… defines.
(That build supports neither amdgcn, hsa nor intelmic.)]

and intelmic.
How does intelmic get into the picture?

No idea – I just know that it counts as offloading platform,
ENABLE_OFFLOAD is set for it (but not for has).
I just wanted to mention it GCC supports it, in principle.
(What I have heard is that it does not exist in silicon but
only as simulator, which can be used for testing with GCC,
but I did not follow this at all.)

   I looked for a mkoffload
program for it in the GCC source tree and couldn't find one.  This
suggests that the addition of -dumpbase to the mkoffload interface might
require changes elsewhere.

Maybe. I think Thomas is the only one who runs GCC with
emulated intelmic once in a while – thus, he surely knows a bit more about it.
But also Jakub should have an idea.

Tobias

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander 
Walter

Reply via email to