1/*******************************************************************************
2* Copyright 2019-2021 Intel Corporation
3*
4* Licensed under the Apache License, Version 2.0 (the "License");
5* you may not use this file except in compliance with the License.
6* You may obtain a copy of the License at
7*
8* http://www.apache.org/licenses/LICENSE-2.0
9*
10* Unless required by applicable law or agreed to in writing, software
11* distributed under the License is distributed on an "AS IS" BASIS,
12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13* See the License for the specific language governing permissions and
14* limitations under the License.
15*******************************************************************************/
16
17#ifndef GPU_GPU_GEMM_PD_HPP
18#define GPU_GPU_GEMM_PD_HPP
19
20#include <assert.h>
21
22#include "common/c_types_map.hpp"
23#include "common/gemm_pd.hpp"
24#include "common/type_helpers.hpp"
25#include "common/utils.hpp"
26
27namespace dnnl {
28namespace impl {
29namespace gpu {
30
31struct gpu_gemm_pd_t : public gemm_pd_t {
32 using gemm_pd_t::gemm_pd_t;
33
34 bool has_blocks() const {
35 return desc()->a_desc.format_desc.blocking.inner_nblks
36 || desc()->b_desc.format_desc.blocking.inner_nblks
37 || desc()->c_desc.format_desc.blocking.inner_nblks;
38 }
39};
40
41} // namespace gpu
42} // namespace impl
43} // namespace dnnl
44
45#endif
46