I'm new to CUDA programing and I am trying to use the dynamic kernel call in a simple program but I'm getting an error. "
I think I have setup the properties correctly but I'm no expert so I am not sure. Regular cuda programs without kernel to kernel calls work fine.
Here is the simple program I wrote.
#include <cuda.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
__global__ void childKernel() {
printf("Hello %d", threadIdx.x);
}
__global__ void parentKernel() {
childKernel<<<1, 10>>>();
cudaDeviceSynchronize();
}
int main() {
parentKernel<<<1, 1>>>();
cudaDeviceSynchronize();
return 0;
}
Here is the project properties I used.