13 lines
220 B
C++
13 lines
220 B
C++
#define CUDATOOLS_IMPLEMENTATION
|
|
#include <Core.h>
|
|
|
|
DEFINE_KERNEL(add, int x, int y) {
|
|
printf("Kernel: %i\n", x + y);
|
|
}
|
|
|
|
int main() {
|
|
KERNEL(add, CudaTools::Kernel::basic(1), 1, 1); // Prints 2.
|
|
return 0;
|
|
}
|
|
|