mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 01:30:22 +00:00
15 lines
258 B
Perl
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
|
|
})
|