[nvptx] Use nvptx-sm.def for t-omp-device
authorTom de Vries <tdevries@suse.de>
Fri, 25 Feb 2022 11:18:17 +0000 (12:18 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 1 Mar 2022 07:58:36 +0000 (08:58 +0100)
commit22adaa5e565a0355dc013b4c1eeefd8ff4a96d9a
treed967ad8a0b2b68207b404a934bc9635cd3c2a063
parent7efe46935c5fce8db13e00aa6f4b0f1599b330e4
[nvptx] Use nvptx-sm.def for t-omp-device

Add a script gen-omp-device-properties.sh that uses nvptx-sm.def to generate
omp-device-properties-nvptx.

Tested on x86_64 with nvptx accelerator.

gcc/ChangeLog:

2022-02-25  Tom de Vries  <tdevries@suse.de>

* config/nvptx/gen-omp-device-properties.sh: New file.
* config/nvptx/t-omp-device: Use gen-omp-device-properties.sh.
gcc/config/nvptx/gen-omp-device-properties.sh [new file with mode: 0644]
gcc/config/nvptx/t-omp-device