summaryrefslogtreecommitdiffstats
path: root/Tests/Cuda/ObjectLibrary/static.cu
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-14 15:16:32 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-14 15:21:48 (GMT)
commit33a65941fa5d7c12d79f9a4e002fed418ba6adc7 (patch)
treed3b7927977111ac2d90f233d4f8623feafefe7d9 /Tests/Cuda/ObjectLibrary/static.cu
parentfa5188d0edf081396ca0134d07cd8706549ddede (diff)
downloadCMake-33a65941fa5d7c12d79f9a4e002fed418ba6adc7.zip
CMake-33a65941fa5d7c12d79f9a4e002fed418ba6adc7.tar.gz
CMake-33a65941fa5d7c12d79f9a4e002fed418ba6adc7.tar.bz2
Tests: Run clang-format on CUDA code
Diffstat (limited to 'Tests/Cuda/ObjectLibrary/static.cu')
-rw-r--r--Tests/Cuda/ObjectLibrary/static.cu6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/Cuda/ObjectLibrary/static.cu b/Tests/Cuda/ObjectLibrary/static.cu
index a801153..aa35729 100644
--- a/Tests/Cuda/ObjectLibrary/static.cu
+++ b/Tests/Cuda/ObjectLibrary/static.cu
@@ -8,14 +8,14 @@ int __host__ file1_sq_func(int x)
cudaError_t err;
int nDevices = 0;
err = cudaGetDeviceCount(&nDevices);
- if(err != cudaSuccess)
- {
+ if (err != cudaSuccess) {
std::cerr << "nDevices: " << nDevices << std::endl;
std::cerr << "err: " << err << std::endl;
return 1;
}
std::cout << "this library uses cuda code" << std::endl;
- std::cout << "you have " << nDevices << " devices that support cuda" << std::endl;
+ std::cout << "you have " << nDevices << " devices that support cuda"
+ << std::endl;
return x * x;
}