aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/cuda/2 split
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/cuda/2 split')
-rw-r--r--meson/test cases/cuda/2 split/lib.cu13
-rw-r--r--meson/test cases/cuda/2 split/main.cpp7
-rw-r--r--meson/test cases/cuda/2 split/meson.build7
-rw-r--r--meson/test cases/cuda/2 split/static/lib.cu13
-rw-r--r--meson/test cases/cuda/2 split/static/libsta.cu13
-rw-r--r--meson/test cases/cuda/2 split/static/main_static.cpp7
-rw-r--r--meson/test cases/cuda/2 split/static/meson.build4
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)