mirror of
https://github.com/AdaCore/cuda.git
synced 2026-02-12 13:05:54 -08:00
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
16 lines
527 B
Plaintext
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;
|