aboutsummaryrefslogtreecommitdiff
path: root/test cases/cuda
diff options
context:
space:
mode:
authorBeau Johnston <beau@inbeta.org>2018-06-10 07:42:50 +1000
committerJussi Pakkanen <jpakkane@gmail.com>2019-01-21 23:35:38 +0200
commit54b6afa675a248ca46897acf47f9bf8cf06f047d (patch)
treeac60157874c8d9a592bbfc1684340a2213f64798 /test cases/cuda
parent72486afd08d66d6323c2113739dcfff74813058b (diff)
downloadmeson-54b6afa675a248ca46897acf47f9bf8cf06f047d.zip
meson-54b6afa675a248ca46897acf47f9bf8cf06f047d.tar.gz
meson-54b6afa675a248ca46897acf47f9bf8cf06f047d.tar.bz2
added cuda compiler
Diffstat (limited to 'test cases/cuda')
-rw-r--r--test cases/cuda/1 simple/meson.build5
-rw-r--r--test cases/cuda/1 simple/prog.cu13
2 files changed, 18 insertions, 0 deletions
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 <stdio.h>
+#include <iostream>
+
+__global__ void kernel (void){
+
+}
+
+int main( void ) {
+ kernel<<<1,1>>>();
+ printf( "Hello, World!\n" );
+ return 0;
+}
+