diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/cuda/2 split | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/cuda/2 split')
-rw-r--r-- | meson/test cases/cuda/2 split/lib.cu | 13 | ||||
-rw-r--r-- | meson/test cases/cuda/2 split/main.cpp | 7 | ||||
-rw-r--r-- | meson/test cases/cuda/2 split/meson.build | 7 | ||||
-rw-r--r-- | meson/test cases/cuda/2 split/static/lib.cu | 13 | ||||
-rw-r--r-- | meson/test cases/cuda/2 split/static/libsta.cu | 13 | ||||
-rw-r--r-- | meson/test cases/cuda/2 split/static/main_static.cpp | 7 | ||||
-rw-r--r-- | meson/test cases/cuda/2 split/static/meson.build | 4 |
7 files changed, 64 insertions, 0 deletions
diff --git a/meson/test cases/cuda/2 split/lib.cu b/meson/test cases/cuda/2 split/lib.cu new file mode 100644 index 000000000..850d7ddfb --- /dev/null +++ b/meson/test cases/cuda/2 split/lib.cu @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <iostream> + +__global__ void kernel (void){ +} + +int do_cuda_stuff(void) { + kernel<<<1,1>>>(); + + printf("Hello, World!\n"); + return 0; +} + diff --git a/meson/test cases/cuda/2 split/main.cpp b/meson/test cases/cuda/2 split/main.cpp new file mode 100644 index 000000000..ce79003e5 --- /dev/null +++ b/meson/test cases/cuda/2 split/main.cpp @@ -0,0 +1,7 @@ +#include<iostream> + +int do_cuda_stuff(void); + +int main(void) { + return do_cuda_stuff(); +} diff --git a/meson/test cases/cuda/2 split/meson.build b/meson/test cases/cuda/2 split/meson.build new file mode 100644 index 000000000..51bf6ce23 --- /dev/null +++ b/meson/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/meson/test cases/cuda/2 split/static/lib.cu b/meson/test cases/cuda/2 split/static/lib.cu new file mode 100644 index 000000000..c0471d048 --- /dev/null +++ b/meson/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/meson/test cases/cuda/2 split/static/libsta.cu b/meson/test cases/cuda/2 split/static/libsta.cu new file mode 100644 index 000000000..c0471d048 --- /dev/null +++ b/meson/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/meson/test cases/cuda/2 split/static/main_static.cpp b/meson/test cases/cuda/2 split/static/main_static.cpp new file mode 100644 index 000000000..ce79003e5 --- /dev/null +++ b/meson/test cases/cuda/2 split/static/main_static.cpp @@ -0,0 +1,7 @@ +#include<iostream> + +int do_cuda_stuff(void); + +int main(void) { + return do_cuda_stuff(); +} diff --git a/meson/test cases/cuda/2 split/static/meson.build b/meson/test cases/cuda/2 split/static/meson.build new file mode 100644 index 000000000..9078198d5 --- /dev/null +++ b/meson/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) |