Files
linguist/samples/Terra/cudaconst2.t
2016-01-28 11:22:27 +07:00

15 lines
258 B
Perl

if not terralib.cudacompile then
print("CUDA not enabled, not performing test...")
return
end
local const = cudalib.constantmemory(float, 1)
local terra kernel(data: &float)
end
local M = terralib.cudacompile({
kernel = kernel,
const = const
})