aboutsummaryrefslogtreecommitdiff
path: root/gcc/COPYING
diff options
context:
space:
mode:
authorGhjuvan Lacambre <lacambre@adacore.com>2022-04-19 10:01:49 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-30 08:29:00 +0000
commit96b2e170668673d417e9fabac041027614507eaa (patch)
treecaaa249e9c627dc6e6410f2b8250c95a94dc699f /gcc/COPYING
parentb4e04a78bbdd39021c1d643af309a24e48623796 (diff)
downloadgcc-96b2e170668673d417e9fabac041027614507eaa.zip
gcc-96b2e170668673d417e9fabac041027614507eaa.tar.gz
gcc-96b2e170668673d417e9fabac041027614507eaa.tar.bz2
[Ada] Fix new CUDA kernel registration scheme
Removal of the previous kernel registration scheme unearthed mistakes in the new one, which were: - The new kernel registration code relied on the binder expansion phase, which didn't happen because the registration code was already generated by the binder. - The kernel handle passed to CUDA_Register_Function was the first eight bytes of the code of the host-side procedure representing the kernel rather than its address. gcc/ada/ * bindgen.adb (Gen_CUDA_Init): Remove code generating CUDA definitions. (Gen_CUDA_Defs): New function, generating definitions initialized by Gen_CUDA_Init. (Gen_Output_File_Ada): Call Gen_CUDA_Defs instead of Gen_CUDA_Init. (Gen_Adainit): Call Gen_CUDA_Init.
Diffstat (limited to 'gcc/COPYING')
0 files changed, 0 insertions, 0 deletions