I have an mx130 laptop gpu and ive been trying for days now get started on cuda. Everything is installed correctly but i cannot get the kernel to print an output. Printf doesnt work, and cuprintf isnt available anymore. There are no errors.
#include<stdio.h>
#include<cuda.h>
global void c_hello()
{
printf(“hello %d”,4);
return;
}
int main()
{
printf(“cpv”);
//cudaMalloc((void**)&d_a, sizeof(int) * 1024);
c_hello<<<10,10>>>();
cudaDeviceSynchronize();
cudaThreadSynchronize();
return 0;
}
I have nearly given up on life trying to solve this, please give me a solution if you can.