with Exp_Tss; use Exp_Tss;
with Exp_Util; use Exp_Util;
with Freeze; use Freeze;
+with GNAT_CUDA; use GNAT_CUDA;
with Lib; use Lib;
with Nlists; use Nlists;
with Nmake; use Nmake;
Build_Static_Dispatch_Tables (N);
end if;
+ -- If procedures marked with CUDA_Global have been defined within N,
+ -- we need to register them with the CUDA runtime at program startup.
+ -- This requires multiple declarations and function calls which need
+ -- to be appended to N's declarations.
+
+ Build_And_Insert_CUDA_Initialization (N);
+
Build_Task_Activation_Call (N);
-- Verify the run-time semantics of pragma Initial_Condition at the
with Exp_Dbug; use Exp_Dbug;
with Freeze; use Freeze;
with Ghost; use Ghost;
-with GNAT_CUDA; use GNAT_CUDA;
with Lib; use Lib;
with Lib.Xref; use Lib.Xref;
with Namet; use Namet;
Analyze_List (Declarations (N));
end if;
- -- If procedures marked with CUDA_Global have been defined within N, we
- -- need to register them with the CUDA runtime at program startup. This
- -- requires multiple declarations and function calls which need to be
- -- appended to N's declarations.
-
- Build_And_Insert_CUDA_Initialization (N);
-
HSS := Handled_Statement_Sequence (N);
if Present (HSS) then