The capture function now queries the device for sm configuration, and uses that information at kernel code generation