mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
27 lines
481 B
C++
27 lines
481 B
C++
#include <iostream>
|
|
|
|
#include "file1.h"
|
|
#include "file2.h"
|
|
|
|
#ifdef _WIN32
|
|
# define IMPORT __declspec(dllimport)
|
|
#else
|
|
# define IMPORT
|
|
#endif
|
|
|
|
IMPORT int choose_cuda_device();
|
|
IMPORT int call_cuda_seperable_code(int x);
|
|
IMPORT int mixed_launch_kernel(int x);
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
int ret = choose_cuda_device();
|
|
if (ret) {
|
|
return 0;
|
|
}
|
|
|
|
int r1 = call_cuda_seperable_code(42);
|
|
int r2 = mixed_launch_kernel(42);
|
|
return (r1 == 42 || r2 == 42) ? 1 : 0;
|
|
}
|