Files
cuda/api/cuda_api_host.gpr
2022-11-10 19:56:08 -05:00

27 lines
835 B
Plaintext

project CUDA_API_Host is
type CUDA_Host_Option is ("x86_64-linux", "aarch64-linux");
CUDA_Host : CUDA_Host_Option := external ("cuda_host", "x86_64-linux");
for Source_Dirs use ("host/cuda_api", "host/cuda_raw_binding", "cuda_internal", "host_static");
for Object_Dir use "obj/host";
Compiler_Options := ("-gnatX0", "-gnatd_c");
Linker_Options := (
"-L/usr/local/cuda/targets/" & CUDA_Host & "/lib",
"-L/usr/local/cuda/targets/" & CUDA_Host & "/lib/stubs",
"-lcudadevrt",
"-lcudart_static",
"-lrt",
"-lpthread",
"-ldl",
"-Wl,--unresolved-symbols=ignore-all"
);
Binder_Options := ("-d_c=device");
package Compiler is
for Switches ("Ada") use Compiler_Options;
end Compiler;
end CUDA_API_Host;