-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xe: jit: gemm: move catalog generation to its own compilation unit
GCC 11 can take upwards of 15 minutes to compile the gemm catalog. This patch moves kcatalog generation to its own compilation unit and removes -fvar-tracking to limit compile times.
- Loading branch information
Showing
4 changed files
with
82 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/******************************************************************************* | ||
* Copyright 2025 Intel Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*******************************************************************************/ | ||
|
||
#include "gpu/intel/jit/gemm/gen_gemm_kernel_db.hpp" | ||
|
||
namespace dnnl { | ||
namespace impl { | ||
namespace gpu { | ||
namespace intel { | ||
namespace jit { | ||
|
||
#define _CATALOG_ gemm_catalog | ||
#include "selector/db/kernel.db" | ||
#undef _CATALOG_ | ||
|
||
const kcatalog::Catalog &catalog() { | ||
static const kcatalog::Catalog c = gemm_catalog; | ||
return c; | ||
}; | ||
|
||
} // namespace jit | ||
} // namespace intel | ||
} // namespace gpu | ||
} // namespace impl | ||
} // namespace dnnl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/******************************************************************************* | ||
* Copyright 2025 Intel Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*******************************************************************************/ | ||
|
||
#ifndef GPU_INTEL_JIT_GEMM_GEN_GEMM_KERNEL_DB_HPP | ||
#define GPU_INTEL_JIT_GEMM_GEN_GEMM_KERNEL_DB_HPP | ||
|
||
#include "gpu/intel/jit/gemm/include/kernel_catalog.hpp" | ||
|
||
namespace dnnl { | ||
namespace impl { | ||
namespace gpu { | ||
namespace intel { | ||
namespace jit { | ||
|
||
const kcatalog::Catalog &catalog(); | ||
|
||
} | ||
} // namespace intel | ||
} // namespace gpu | ||
} // namespace impl | ||
} // namespace dnnl | ||
|
||
#endif |