Layer_rows - 2 * min_margin > 0 in function 'SURF_CUDA_Invoker'

Hello i want to get feature points with surf_cuda. but when image is smaller it gives me error below.

layer_rows - 2 * min_margin > 0 in function ‘SURF_CUDA_Invoker’

how can i solver it?

MRL