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
27 lines
757 B
Plaintext
27 lines
757 B
Plaintext
-- Uncomment these if its decided to include the CUDA headers in the runtime:
|
|
|
|
-- with "runtime_build";
|
|
-- with "target_options";
|
|
|
|
project CUDA_Device is
|
|
|
|
-- ??? It's not clear yet how to generate bindings to the device side
|
|
-- as they are very C++ specific. work on the host generated files
|
|
-- for now to ensure at least compilation OK.
|
|
for Source_Dirs use ("device_static");
|
|
|
|
for Object_Dir use "obj";
|
|
|
|
-- Uncomment this line if its decided to include the CUDA headers in the
|
|
-- runtime:
|
|
|
|
-- package Compiler renames Target_Options.Compiler;
|
|
|
|
-- Remove these lines if its decided to include the CUDA headers in the
|
|
-- runtime:
|
|
|
|
for Target use "cuda";
|
|
for Runtime ("ada") use "device-cuda";
|
|
|
|
end CUDA_Device;
|