aboutsummaryrefslogtreecommitdiff
path: root/test cases/cuda
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-12-23 17:25:29 -0500
committerMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-12-23 17:25:35 -0500
commit9aa766da6442bf1649e1f54540bca9f17e563298 (patch)
treef144f5570f40ca4088c5a022cd6b32bb93158197 /test cases/cuda
parenta910ba133ac330fad6e4dd459da797ba3df982f7 (diff)
downloadmeson-9aa766da6442bf1649e1f54540bca9f17e563298.zip
meson-9aa766da6442bf1649e1f54540bca9f17e563298.tar.gz
meson-9aa766da6442bf1649e1f54540bca9f17e563298.tar.bz2
refactor: cuda no unused args
Diffstat (limited to 'test cases/cuda')
-rw-r--r--test cases/cuda/1 simple/prog.cu2
-rw-r--r--test cases/cuda/10 cuda dependency/c/prog.c2
-rw-r--r--test cases/cuda/11 cuda dependency (nvcc)/modules/prog.cu6
-rw-r--r--test cases/cuda/11 cuda dependency (nvcc)/version_reqs/prog.cu4
-rw-r--r--test cases/cuda/12 cuda dependency (mixed)/kernel.cu2
-rw-r--r--test cases/cuda/12 cuda dependency (mixed)/prog.cpp2
-rw-r--r--test cases/cuda/2 split/lib.cu2
-rw-r--r--test cases/cuda/2 split/main.cpp4
-rw-r--r--test cases/cuda/2 split/static/main_static.cpp4
-rw-r--r--test cases/cuda/3 cudamodule/prog.cu2
-rw-r--r--test cases/cuda/4 shared/main.cu2
-rw-r--r--test cases/cuda/5 threads/main.cu2
-rw-r--r--test cases/cuda/6 std/main.cu4
-rw-r--r--test cases/cuda/7 static vs runtime/main.cu4
-rw-r--r--test cases/cuda/8 release/main.cu4
-rw-r--r--test cases/cuda/9 optimize for space/main.cu4
16 files changed, 25 insertions, 25 deletions
diff --git a/test cases/cuda/1 simple/prog.cu b/test cases/cuda/1 simple/prog.cu
index 7eab673..b893bd3 100644
--- a/test cases/cuda/1 simple/prog.cu
+++ b/test cases/cuda/1 simple/prog.cu
@@ -1,6 +1,6 @@
#include <iostream>
-int main(int argc, char **argv) {
+int main(void) {
int cuda_devices = 0;
std::cout << "CUDA version: " << CUDART_VERSION << "\n";
cudaGetDeviceCount(&cuda_devices);
diff --git a/test cases/cuda/10 cuda dependency/c/prog.c b/test cases/cuda/10 cuda dependency/c/prog.c
index e2429a6..ed9333e 100644
--- a/test cases/cuda/10 cuda dependency/c/prog.c
+++ b/test cases/cuda/10 cuda dependency/c/prog.c
@@ -1,7 +1,7 @@
#include <cuda_runtime.h>
#include <stdio.h>
-int cuda_devices() {
+int cuda_devices(void) {
int result = 0;
cudaGetDeviceCount(&result);
return result;
diff --git a/test cases/cuda/11 cuda dependency (nvcc)/modules/prog.cu b/test cases/cuda/11 cuda dependency (nvcc)/modules/prog.cu
index 7c52b3f..b4af4d4 100644
--- a/test cases/cuda/11 cuda dependency (nvcc)/modules/prog.cu
+++ b/test cases/cuda/11 cuda dependency (nvcc)/modules/prog.cu
@@ -2,13 +2,13 @@
#include <cublas_v2.h>
#include <iostream>
-int cuda_devices() {
+int cuda_devices(void) {
int result = 0;
cudaGetDeviceCount(&result);
return result;
}
-int main() {
+int main(void) {
int n = cuda_devices();
if (n == 0) {
std::cout << "No CUDA hardware found. Exiting.\n";
@@ -24,7 +24,7 @@ int main() {
}
std::cout << "Initialized cuBLAS\n";
- if (cublasDestroy(handle) != CUBLAS_STATUS_SUCCESS) {
+ if (cublasDestroy(handle) != CUBLAS_STATUS_SUCCESS) {
std::cout << "cuBLAS de-initialization failed. Exiting.\n";
return -1;
}
diff --git a/test cases/cuda/11 cuda dependency (nvcc)/version_reqs/prog.cu b/test cases/cuda/11 cuda dependency (nvcc)/version_reqs/prog.cu
index e3adabf..5668830 100644
--- a/test cases/cuda/11 cuda dependency (nvcc)/version_reqs/prog.cu
+++ b/test cases/cuda/11 cuda dependency (nvcc)/version_reqs/prog.cu
@@ -1,13 +1,13 @@
#include <cuda_runtime.h>
#include <iostream>
-int cuda_devices() {
+int cuda_devices(void) {
int result = 0;
cudaGetDeviceCount(&result);
return result;
}
-int main() {
+int main(void) {
std::cout << "Compiled against CUDA version: " << CUDART_VERSION << "\n";
int runtime_version = 0;
cudaError_t r = cudaRuntimeGetVersion(&runtime_version);
diff --git a/test cases/cuda/12 cuda dependency (mixed)/kernel.cu b/test cases/cuda/12 cuda dependency (mixed)/kernel.cu
index a7490b5..7daaa68 100644
--- a/test cases/cuda/12 cuda dependency (mixed)/kernel.cu
+++ b/test cases/cuda/12 cuda dependency (mixed)/kernel.cu
@@ -3,6 +3,6 @@
__global__ void kernel (void){
}
-void do_cuda_stuff() {
+void do_cuda_stuff(void) {
kernel<<<1,1>>>();
}
diff --git a/test cases/cuda/12 cuda dependency (mixed)/prog.cpp b/test cases/cuda/12 cuda dependency (mixed)/prog.cpp
index 85e5148..50bb156 100644
--- a/test cases/cuda/12 cuda dependency (mixed)/prog.cpp
+++ b/test cases/cuda/12 cuda dependency (mixed)/prog.cpp
@@ -2,7 +2,7 @@
#include <cublas_v2.h>
#include <iostream>
-void do_cuda_stuff();
+void do_cuda_stuff(void);
int cuda_devices(void) {
int result = 0;
diff --git a/test cases/cuda/2 split/lib.cu b/test cases/cuda/2 split/lib.cu
index c0471d0..850d7dd 100644
--- a/test cases/cuda/2 split/lib.cu
+++ b/test cases/cuda/2 split/lib.cu
@@ -4,7 +4,7 @@
__global__ void kernel (void){
}
-int do_cuda_stuff() {
+int do_cuda_stuff(void) {
kernel<<<1,1>>>();
printf("Hello, World!\n");
diff --git a/test cases/cuda/2 split/main.cpp b/test cases/cuda/2 split/main.cpp
index e5e6bda..ce79003 100644
--- a/test cases/cuda/2 split/main.cpp
+++ b/test cases/cuda/2 split/main.cpp
@@ -1,7 +1,7 @@
#include<iostream>
-int do_cuda_stuff();
+int do_cuda_stuff(void);
-int main(int argc, char **argv) {
+int main(void) {
return do_cuda_stuff();
}
diff --git a/test cases/cuda/2 split/static/main_static.cpp b/test cases/cuda/2 split/static/main_static.cpp
index e5e6bda..ce79003 100644
--- a/test cases/cuda/2 split/static/main_static.cpp
+++ b/test cases/cuda/2 split/static/main_static.cpp
@@ -1,7 +1,7 @@
#include<iostream>
-int do_cuda_stuff();
+int do_cuda_stuff(void);
-int main(int argc, char **argv) {
+int main(void) {
return do_cuda_stuff();
}
diff --git a/test cases/cuda/3 cudamodule/prog.cu b/test cases/cuda/3 cudamodule/prog.cu
index 7eab673..b893bd3 100644
--- a/test cases/cuda/3 cudamodule/prog.cu
+++ b/test cases/cuda/3 cudamodule/prog.cu
@@ -1,6 +1,6 @@
#include <iostream>
-int main(int argc, char **argv) {
+int main(void) {
int cuda_devices = 0;
std::cout << "CUDA version: " << CUDART_VERSION << "\n";
cudaGetDeviceCount(&cuda_devices);
diff --git a/test cases/cuda/4 shared/main.cu b/test cases/cuda/4 shared/main.cu
index d251167..1235914 100644
--- a/test cases/cuda/4 shared/main.cu
+++ b/test cases/cuda/4 shared/main.cu
@@ -3,7 +3,7 @@
#include "shared/kernels.h"
-int main(int argc, char **argv) {
+int main(void) {
int cuda_devices = 0;
cudaGetDeviceCount(&cuda_devices);
if(cuda_devices == 0) {
diff --git a/test cases/cuda/5 threads/main.cu b/test cases/cuda/5 threads/main.cu
index d251167..1235914 100644
--- a/test cases/cuda/5 threads/main.cu
+++ b/test cases/cuda/5 threads/main.cu
@@ -3,7 +3,7 @@
#include "shared/kernels.h"
-int main(int argc, char **argv) {
+int main(void) {
int cuda_devices = 0;
cudaGetDeviceCount(&cuda_devices);
if(cuda_devices == 0) {
diff --git a/test cases/cuda/6 std/main.cu b/test cases/cuda/6 std/main.cu
index a010307..a2ffba4 100644
--- a/test cases/cuda/6 std/main.cu
+++ b/test cases/cuda/6 std/main.cu
@@ -1,14 +1,14 @@
#include <cuda_runtime.h>
#include <iostream>
-auto cuda_devices() {
+auto cuda_devices(void) {
int result = 0;
cudaGetDeviceCount(&result);
return result;
}
-int main() {
+int main(void) {
int n = cuda_devices();
if (n == 0) {
std::cout << "No Cuda hardware found. Exiting.\n";
diff --git a/test cases/cuda/7 static vs runtime/main.cu b/test cases/cuda/7 static vs runtime/main.cu
index 4d62e9c..bd1dbc4 100644
--- a/test cases/cuda/7 static vs runtime/main.cu
+++ b/test cases/cuda/7 static vs runtime/main.cu
@@ -1,14 +1,14 @@
#include <cuda_runtime.h>
#include <iostream>
-int cuda_devices() {
+int cuda_devices(void) {
int result = 0;
cudaGetDeviceCount(&result);
return result;
}
-int main() {
+int main(void) {
int n = cuda_devices();
if (n == 0) {
std::cout << "No Cuda hardware found. Exiting.\n";
diff --git a/test cases/cuda/8 release/main.cu b/test cases/cuda/8 release/main.cu
index 4d62e9c..bd1dbc4 100644
--- a/test cases/cuda/8 release/main.cu
+++ b/test cases/cuda/8 release/main.cu
@@ -1,14 +1,14 @@
#include <cuda_runtime.h>
#include <iostream>
-int cuda_devices() {
+int cuda_devices(void) {
int result = 0;
cudaGetDeviceCount(&result);
return result;
}
-int main() {
+int main(void) {
int n = cuda_devices();
if (n == 0) {
std::cout << "No Cuda hardware found. Exiting.\n";
diff --git a/test cases/cuda/9 optimize for space/main.cu b/test cases/cuda/9 optimize for space/main.cu
index 4d62e9c..bd1dbc4 100644
--- a/test cases/cuda/9 optimize for space/main.cu
+++ b/test cases/cuda/9 optimize for space/main.cu
@@ -1,14 +1,14 @@
#include <cuda_runtime.h>
#include <iostream>
-int cuda_devices() {
+int cuda_devices(void) {
int result = 0;
cudaGetDeviceCount(&result);
return result;
}
-int main() {
+int main(void) {
int n = cuda_devices();
if (n == 0) {
std::cout << "No Cuda hardware found. Exiting.\n";