[Ada] Improve CUDA host-side and device-side binder support
authorSteve Baird <baird@adacore.com>
Wed, 7 Sep 2022 21:15:46 +0000 (14:15 -0700)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 12 Sep 2022 08:16:53 +0000 (10:16 +0200)
commitbd548d67e7141c29d4a7b81ca893402bc2ef100a
tree0add1189211698c57ae6ca16e9f4c4653cfb839c
parentf64bfc1224be499d16d8f89596fc0791dc1c3594
[Ada] Improve CUDA host-side and device-side binder support

On the host-side, the binder now generates CUDA_Execute pragmas to
invoke initialization and finalization on the device-side. The
front end's expansion of these pragmas includes references to
entities declared in package CUDA.Internal. Generate a with-clause so
that unit will be available.

gcc/ada/

* bindgen.adb: When the binder is invoked for the host, generate a
"with CUDA.Internal;" with clause.
gcc/ada/bindgen.adb