I have this simple routine for dynamic global memory allocation:
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include