summaryrefslogtreecommitdiff
path: root/test cases/cuda/12 cuda dependency (mixed)/prog.cpp
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com>2019-11-18 15:21:37 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-18 22:21:36 +0200
commit83b4e981c4dd8b8ea521a6150a34636d10a67211 (patch)
tree3ac84e307e6a2589073a7542a0d7127738f09576 /test cases/cuda/12 cuda dependency (mixed)/prog.cpp
parent0435691e83fb7172e2a9635d2eb32d5521089916 (diff)
downloadmeson-83b4e981c4dd8b8ea521a6150a34636d10a67211.tar.gz
Use strict function prototypes
Diffstat (limited to 'test cases/cuda/12 cuda dependency (mixed)/prog.cpp')
-rw-r--r--test cases/cuda/12 cuda dependency (mixed)/prog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test cases/cuda/12 cuda dependency (mixed)/prog.cpp b/test cases/cuda/12 cuda dependency (mixed)/prog.cpp
index daf910207..85e51481b 100644
--- a/test cases/cuda/12 cuda dependency (mixed)/prog.cpp
+++ b/test cases/cuda/12 cuda dependency (mixed)/prog.cpp
@@ -4,13 +4,13 @@
void do_cuda_stuff();
-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";
@@ -28,7 +28,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;
}