A library and framework for developing CPU-CUDA compatible applications under one unified code.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

9 lines
227 B

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