Bug 81378 - [nvptx] Add openacc testcase using generated ptx but bypassing libgomp
Summary: [nvptx] Add openacc testcase using generated ptx but bypassing libgomp
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: libgomp (show other bugs)
Version: 8.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: openacc
Depends on:
Blocks:
 
Reported: 2017-07-10 12:34 UTC by Tom de Vries
Modified: 2017-07-12 09:21 UTC (History)
2 users (show)

See Also:
Host:
Target: nvptx
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom de Vries 2017-07-10 12:34:05 UTC
An openacc test-case uses libgomp and the libgomp nvptx plugin to offload ptx code to a cuda device.

When reporting ptx bugs to nvidia, we send standalone test-cases that do not use libgomp. These test-cases use a harness.c that, not surprisingly, contains a lot of code from libgomp/plugin/plugin-nvptx.c.

It would be good to add harness.c to libgomp, factor out the common code into a reusable form, and add a test-case that:
- compiles and runs an openacc test-case
- extracts the ptx
- uses the harness.c to compile and run the ptx, in the same way as the plugin
  would do