diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-20 19:26:42 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-21 23:35:38 +0200 |
commit | 8eca221aac333489004953c4149011b5d74df176 (patch) | |
tree | 6c46031c8b4f6f57a33661d43e5f4152029954c9 /test cases/cuda | |
parent | 396e355c940d1427ccd7be7435499074f56bab7e (diff) | |
download | meson-8eca221aac333489004953c4149011b5d74df176.zip meson-8eca221aac333489004953c4149011b5d74df176.tar.gz meson-8eca221aac333489004953c4149011b5d74df176.tar.bz2 |
More tests and pic.
Diffstat (limited to 'test cases/cuda')
-rw-r--r-- | test cases/cuda/2 split/lib.cu | 13 | ||||
-rw-r--r-- | test cases/cuda/2 split/main.cpp | 7 | ||||
-rw-r--r-- | test cases/cuda/2 split/meson.build | 7 | ||||
-rw-r--r-- | test cases/cuda/2 split/static/lib.cu | 13 | ||||
-rw-r--r-- | test cases/cuda/2 split/static/libsta.cu | 13 | ||||
-rw-r--r-- | test cases/cuda/2 split/static/main_static.cpp | 7 | ||||
-rw-r--r-- | test cases/cuda/2 split/static/meson.build | 4 |
7 files changed, 64 insertions, 0 deletions
diff --git a/test cases/cuda/2 split/lib.cu b/test cases/cuda/2 split/lib.cu new file mode 100644 index 0000000..c0471d0 --- /dev/null +++ b/test cases/cuda/2 split/lib.cu @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <iostream> + +__global__ void kernel (void){ +} + +int do_cuda_stuff() { + kernel<<<1,1>>>(); + + printf("Hello, World!\n"); + return 0; +} + diff --git a/test cases/cuda/2 split/main.cpp b/test cases/cuda/2 split/main.cpp new file mode 100644 index 0000000..e5e6bda --- /dev/null +++ b/test cases/cuda/2 split/main.cpp @@ -0,0 +1,7 @@ +#include<iostream> + +int do_cuda_stuff(); + +int main(int argc, char **argv) { + return do_cuda_stuff(); +} diff --git a/test cases/cuda/2 split/meson.build b/test cases/cuda/2 split/meson.build new file mode 100644 index 0000000..51bf6ce --- /dev/null +++ b/test cases/cuda/2 split/meson.build @@ -0,0 +1,7 @@ +project('simple', 'cuda', 'cpp') + +exe = executable('prog', 'main.cpp', 'lib.cu') +test('cudatest', exe) + +subdir('static') + diff --git a/test cases/cuda/2 split/static/lib.cu b/test cases/cuda/2 split/static/lib.cu new file mode 100644 index 0000000..c0471d0 --- /dev/null +++ b/test cases/cuda/2 split/static/lib.cu @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <iostream> + +__global__ void kernel (void){ +} + +int do_cuda_stuff() { + kernel<<<1,1>>>(); + + printf("Hello, World!\n"); + return 0; +} + diff --git a/test cases/cuda/2 split/static/libsta.cu b/test cases/cuda/2 split/static/libsta.cu new file mode 100644 index 0000000..c0471d0 --- /dev/null +++ b/test cases/cuda/2 split/static/libsta.cu @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <iostream> + +__global__ void kernel (void){ +} + +int do_cuda_stuff() { + kernel<<<1,1>>>(); + + printf("Hello, World!\n"); + return 0; +} + diff --git a/test cases/cuda/2 split/static/main_static.cpp b/test cases/cuda/2 split/static/main_static.cpp new file mode 100644 index 0000000..e5e6bda --- /dev/null +++ b/test cases/cuda/2 split/static/main_static.cpp @@ -0,0 +1,7 @@ +#include<iostream> + +int do_cuda_stuff(); + +int main(int argc, char **argv) { + return do_cuda_stuff(); +} diff --git a/test cases/cuda/2 split/static/meson.build b/test cases/cuda/2 split/static/meson.build new file mode 100644 index 0000000..9078198 --- /dev/null +++ b/test cases/cuda/2 split/static/meson.build @@ -0,0 +1,4 @@ +l = static_library('clib', 'lib.cu') +exe = executable('staexe', 'main_static.cpp', + link_with : l) +test('static Cuda test', exe) |