mirror of
https://github.com/AdaCore/cuda.git
synced 2026-02-12 13:05:54 -08:00
Rename cuda_host to CUDA_HOST in order to comply with common environment variable naming conventions. Solves eng/toolchain/cuda#32
31 lines
909 B
Plaintext
31 lines
909 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");
|
|
|
|
CUDA_Root := external ("CUDA_ROOT");
|
|
|
|
for Target use CUDA_Host;
|
|
|
|
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" & CUDA_Root & "/targets/" & CUDA_Host & "/lib",
|
|
"-L" & CUDA_Root &"/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;
|