mirror of
https://github.com/AdaCore/cuda.git
synced 2026-02-12 13:05:54 -08:00
The example now makes use of the new device-cuda runtime. The project file has also been split into seperate device and host projects because the host code depends on the opengl project which is incompatible with the device-cuda runtime, and I don't believe there's an easy way to use scenario variables to work around that. Beside, the device code is conceptionally different code anyway; ideally we could find a way to to make the device project a subproject of the host project. Source code has also been moved around to give the example a bit more structure. TN: U114-058
19 lines
428 B
Plaintext
19 lines
428 B
Plaintext
with "../../api/cuda_device.gpr";
|
|
|
|
project Marching_Device_Code is
|
|
|
|
for Languages use ("Ada");
|
|
for Source_Dirs use ("src/device_code", "src/common");
|
|
for Object_Dir use "obj";
|
|
|
|
for Target use "cuda";
|
|
for Runtime ("ada") use "device-cuda";
|
|
|
|
for Create_Missing_Dirs use "True";
|
|
|
|
package Compiler is
|
|
for Switches ("ada") use ("-gnatX", "-O2", "-gnatn", "-v");
|
|
end Compiler;
|
|
end Marching_Device_Code;
|
|
|