Files
cuda/api/cuda_host.gpr
Pat Bernardi eaa78925fd Split API project cuda.gpr into seperate device and host projects
Using a single project file for device and host libraries felt unwieldy,
particularly as the user's project would typically need to use seperate
project files since the host project would need to incorporate other
projects that are incompatible with device code (e.g. opengl libraries).

TN: U114-058
2021-03-23 20:59:03 +11:00

16 lines
527 B
Plaintext

project CUDA_Host is
for Create_Missing_Dirs use "True";
for Source_Dirs use ("host/cuda_api", "host/cuda_raw_binding", "cuda_internal", "host_static");
for Object_Dir use "obj";
package Compiler is
for Switches ("Ada") use ("-gnatp");
end Compiler;
package Linker is
for Default_Switches ("ada") use ("-L/usr/local/cuda/targets/x86_64-linux/lib/stubs", "-L/usr/local/cuda/targets/x86_64-linux/lib", "-lcudadevrt","-lcudart_static", "-lrt", "-lpthread", "-ldl");
end Linker;
end CUDA_Host;