-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable building DPP kernels by default (#1804)
* Disable building DPP kernels by default * Disable building dpp instances, examples, or tests if DPP_KERNELS is not set * Add new DPP_KERNELS flag to readme
- Loading branch information
1 parent
ad697c7
commit 26b3829
Showing
9 changed files
with
127 additions
and
40 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
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
65 changes: 65 additions & 0 deletions
65
library/include/ck/library/tensor_operation_instance/gpu/gemm_dpp.inc
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,65 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved. | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
#include <vector> | ||
#include "ck/ck.hpp" | ||
#include "ck/tensor_operation/gpu/device/tensor_layout.hpp" | ||
#include "ck/tensor_operation/gpu/device/device_gemm.hpp" | ||
#include "ck/tensor_operation/gpu/element/element_wise_operation.hpp" | ||
|
||
#include "ck/library/tensor_operation_instance/device_operation_instance_factory.hpp" | ||
|
||
namespace ck { | ||
namespace tensor_operation { | ||
namespace device { | ||
namespace instance { | ||
|
||
#if defined(CK_ENABLE_FP16) | ||
void add_device_gemm_dpp_f16_f16_f16_km_kn_mn_instances( | ||
std::vector<std::unique_ptr< | ||
DeviceGemm<Col, Row, Row, F16, F16, F16, PassThrough, PassThrough, PassThrough>>>& | ||
instances); | ||
|
||
void add_device_gemm_dpp_f16_f16_f16_km_kn_mn_irregular_instances( | ||
std::vector<std::unique_ptr< | ||
DeviceGemm<Col, Row, Row, F16, F16, F16, PassThrough, PassThrough, PassThrough>>>& | ||
instances); | ||
|
||
void add_device_gemm_dpp_f16_f16_f16_km_nk_mn_instances( | ||
std::vector<std::unique_ptr< | ||
DeviceGemm<Col, Col, Row, F16, F16, F16, PassThrough, PassThrough, PassThrough>>>& | ||
instances); | ||
|
||
void add_device_gemm_dpp_f16_f16_f16_km_nk_mn_irregular_instances( | ||
std::vector<std::unique_ptr< | ||
DeviceGemm<Col, Col, Row, F16, F16, F16, PassThrough, PassThrough, PassThrough>>>& | ||
instances); | ||
|
||
void add_device_gemm_dpp_f16_f16_f16_mk_kn_mn_instances( | ||
std::vector<std::unique_ptr< | ||
DeviceGemm<Row, Row, Row, F16, F16, F16, PassThrough, PassThrough, PassThrough>>>& | ||
instances); | ||
|
||
void add_device_gemm_dpp_f16_f16_f16_mk_kn_mn_irregular_instances( | ||
std::vector<std::unique_ptr< | ||
DeviceGemm<Row, Row, Row, F16, F16, F16, PassThrough, PassThrough, PassThrough>>>& | ||
instances); | ||
|
||
void add_device_gemm_dpp_f16_f16_f16_mk_nk_mn_instances( | ||
std::vector<std::unique_ptr< | ||
DeviceGemm<Row, Col, Row, F16, F16, F16, PassThrough, PassThrough, PassThrough>>>& | ||
instances); | ||
|
||
void add_device_gemm_dpp_f16_f16_f16_mk_nk_mn_irregular_instances( | ||
std::vector<std::unique_ptr< | ||
DeviceGemm<Row, Col, Row, F16, F16, F16, PassThrough, PassThrough, PassThrough>>>& | ||
instances); | ||
#endif | ||
|
||
} // namespace instance | ||
} // namespace device | ||
} // namespace tensor_operation | ||
} // namespace ck |
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