While I'm far from a specialist, I suspect a nuclear detention on land delivered from a MIRV, which would each be in the Kt not Mt, wouldn't impact too much.Well, realistically, they'd stay as far away as possible to not damage themselves...
Obviously on land it would obliterate a lot, but a boat at depth should be safe from an attack on land.