Relax nvcc check on shared memory usage

When compiling using nvcc it checks for the shared memory usage of the kernel. Is there a way to relax this check?

Because even if the kernel exceeds this shared memory limit, at execution I can try to increase the available shared memory by setting the Function Attribute - Shared Memory Carveout.