fiberglass boat ?
is the carpet glued directly to the gelcoat or some kind of wood, like plywood.
if it is glued directly to the gelcoat, I would imagine it is Weldwood Contact Cement.
another question: does it appear to be customer applied or factory applied ?
what kind of carpet ? how old do you think it is ?
photos "may" be of some help to the gallery.
for a beginning, I would start with the least aggressive method and move up from there.
like ~ pouring a glass of scalding hot boiling water on an edge of the carpet and pry up with a putty knife to see what happens.
try to avoid the more harsh stuff like hot solvents and paint removers.
.