diff options
author | Beau Johnston <beau@inbeta.org> | 2018-07-02 07:36:24 +1000 |
---|---|---|
committer | Beau Johnston <beau@inbeta.org> | 2018-07-02 07:36:24 +1000 |
commit | 46b57da393c71355ab7304b31189641a87713aa4 (patch) | |
tree | 8c6fe9d68d698eebd762edd9c6c324ea21639062 | |
parent | 9f2621b0339567c086e803f617d3b2f2c81182b6 (diff) | |
download | meson-flob.tar.gz |
added cuda test caseflob
-rw-r--r-- | mesonbuild/compilers/cuda.py | 3 | ||||
-rw-r--r-- | test cases/cuda/1 simple/meson.build | 5 | ||||
-rw-r--r-- | test cases/cuda/1 simple/prog.cu | 13 |
3 files changed, 21 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cuda.py b/mesonbuild/compilers/cuda.py index 7cc82f118..f398bad81 100644 --- a/mesonbuild/compilers/cuda.py +++ b/mesonbuild/compilers/cuda.py @@ -32,6 +32,9 @@ class CudaCompiler(Compiler): '2': default_warn_args + ['-Wextra'], '3': default_warn_args + ['-Wextra', '-Wpedantic']} + def needs_static_linker(self): + return False + def get_display_language(self): return 'Cuda' diff --git a/test cases/cuda/1 simple/meson.build b/test cases/cuda/1 simple/meson.build new file mode 100644 index 000000000..19af734af --- /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 000000000..ed21152af --- /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; +} + |