From 54b6afa675a248ca46897acf47f9bf8cf06f047d Mon Sep 17 00:00:00 2001 From: Beau Johnston Date: Sun, 10 Jun 2018 07:42:50 +1000 Subject: added cuda compiler --- test cases/cuda/1 simple/meson.build | 5 +++++ test cases/cuda/1 simple/prog.cu | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test cases/cuda/1 simple/meson.build create mode 100644 test cases/cuda/1 simple/prog.cu (limited to 'test cases/cuda') diff --git a/test cases/cuda/1 simple/meson.build b/test cases/cuda/1 simple/meson.build new file mode 100644 index 0000000..19af734 --- /dev/null +++ b/test cases/cuda/1 simple/meson.build @@ -0,0 +1,5 @@ +project('simple', 'cuda', version : '1.0.0') + +exe = executable('prog', 'prog.cu') +test('cudatest', exe) + diff --git a/test cases/cuda/1 simple/prog.cu b/test cases/cuda/1 simple/prog.cu new file mode 100644 index 0000000..ed21152 --- /dev/null +++ b/test cases/cuda/1 simple/prog.cu @@ -0,0 +1,13 @@ +#include +#include + +__global__ void kernel (void){ + +} + +int main( void ) { + kernel<<<1,1>>>(); + printf( "Hello, World!\n" ); + return 0; +} + -- cgit v1.1