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.
|
#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;
|
|
}
|
|
|
|
|