blob: 37bb8391e7d5c4e4dd7482213b30b18ec78d0fa5 [file] [log] [blame]
#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>
int __host__ cu1_sq_func(int x)
{
cudaError_t err;
int nDevices = 0;
err = cudaGetDeviceCount(&nDevices);
if (err != cudaSuccess) {
std::cerr << "nDevices: " << nDevices << std::endl;
std::cerr << "err: " << err << std::endl;
return 1;
}
return x * x;
}