[Ada] Implement initialization of CUDA runtime
authorGhjuvan Lacambre <lacambre@adacore.com>
Thu, 30 Jan 2020 10:47:00 +0000 (11:47 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 19 Oct 2020 09:53:39 +0000 (05:53 -0400)
commitb0a16e6d4c91120dd9a2900da0831e83e65f2046
treefddf91c6ac35ddec55df092cb2927cff6a1cc151
parent2bb7741fbeee2f4fd472cd7e9791ae0b54e7a2b4
[Ada] Implement initialization of CUDA runtime

gcc/ada/

* debug.adb: Document -gnatd_c flag as being used for CUDA.
* gnat_cuda.ads: New file.
* gnat_cuda.adb: New file.
* rtsfind.ads: Add Interfaces_C_Strings package and
RE_Fatbin_Wrapper, RE_Register_Fat_Binary,
RE_Register_Fat_Binary_End, RE_Register_Function, RE_Chars_Ptr,
RE_New_Char_Array entities.
* rtsfind.adb: Create new Interfaces_C_Descendant subtype,
handle it.
* sem_ch7.adb (Analyze_Package_Body_Helper): Call CUDA init
procedure.
* sem_prag.adb (Analyze_Pragma): Call Add_Cuda_Kernel procedure.
* gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Add gnat_cuda.o.
gcc/ada/debug.adb
gcc/ada/gcc-interface/Make-lang.in
gcc/ada/gnat_cuda.adb [new file with mode: 0644]
gcc/ada/gnat_cuda.ads [new file with mode: 0644]
gcc/ada/rtsfind.adb
gcc/ada/rtsfind.ads
gcc/ada/sem_ch7.adb
gcc/ada/sem_prag.adb