    def _create_gemm_table(self):
        """Creates gemm table."""
        version = self.gemm_cache_version
        if not self._table_exists("gemm", version):
            _LOGGER.info(
                "Temporarily keeping the old gemm cache versions if exist",
            )
            # FIXME: will delete unmatched version once we get into production
            # self._delete_existing_table("gemm")

            _LOGGER.info(
                f"Creating a new gemm table with {version=}",
            )
            sql = GEMM_INIT_TEMPLATE.render(
                dev=self._target,
                version=version,
            )
            self._cur.execute(sql)
            self._con.commit()
Creates gemm table.
python/aitemplate/backend/profiler_cache.py