mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
CUDA: Add tests to verify CUDA compiler works properly.
This commit is contained in:
committed by
Brad King
parent
9cf5b98d54
commit
7b9131da64
@@ -0,0 +1,20 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
int static_func(int);
|
||||
int file1_sq_func(int);
|
||||
|
||||
void test_functions()
|
||||
{
|
||||
file1_sq_func(static_func(42));
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
test_functions();
|
||||
std::cout
|
||||
<< "this executable doesn't use cuda code, just call methods defined"
|
||||
<< std::endl;
|
||||
std::cout << "in object files that have cuda code" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user