Несмотря на то, что у меня есть карта fermi (gtx 560), я получаю эту ошибку на VS2010:
error : calling a host function("printf") from a __device__/__global__ function("kernel") is not allowed
Код:
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
__global__ void kernel()
{
printf("hello");
}
int main()
{
kernel<<<1, 1>>>();
return 0;
}
Я что-то пропустил?