Is there a preprocessor in the chain? Because
add<<<1, 1>>>(N, x, y);
isn't regular C++. Sorry if I missed something. add<<<1, 1>>>(N, x, y);
isn't regular C++. Sorry if I missed something.