CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
49 lines
1.9 KiB
C++
49 lines
1.9 KiB
C++
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#include <gtest/gtest.h>
|
|
#include <gtest/group_conv.hpp>
|
|
|
|
#include <miopen/tensor.hpp>
|
|
#include <miopen/conv/problem_description.hpp>
|
|
#include <miopen/conv/solvers.hpp>
|
|
#include <miopen/solver/ck_impl_lib_loader.hpp>
|
|
|
|
using Problem = miopen::conv::ProblemDescription;
|
|
using Config = miopen::solver::conv::PerformanceConfigHipImplicitGemm3DGroupBwdXdlops;
|
|
|
|
static Problem MakeSearchProblem(group_conv::GroupConvTestConfig<3u> conv,
|
|
miopenDataType_t data_type,
|
|
miopenTensorLayout_t layout)
|
|
{
|
|
const auto x_desc = miopen::TensorDescriptor(data_type, layout, conv.GetInput());
|
|
const auto w_desc = miopen::TensorDescriptor(data_type, layout, conv.GetWeights());
|
|
const auto conv_desc = conv.GetConv();
|
|
const auto y_desc = conv_desc.GetForwardOutputTensor(x_desc, w_desc, data_type);
|
|
|
|
return Problem(y_desc, w_desc, x_desc, conv_desc, miopen::conv::Direction::BackwardData);
|
|
}
|
|
|
|
TEST(GPU_PerfConfig_HipImplicitGemm3DGroupBwdXdlops_FP16, SearchStartsAtKernelZero)
|
|
{
|
|
const auto device_name = miopen::solver::GetCurrentDeviceName();
|
|
if(device_name.empty())
|
|
GTEST_SKIP() << "No ROCm-capable device is detected";
|
|
|
|
const auto& loader = miopen::solver::CkImplLibLoader::Get(device_name);
|
|
if(!loader.IsLoaded())
|
|
GTEST_SKIP() << "CK grouped conv library not installed for " << device_name;
|
|
|
|
const auto problem =
|
|
MakeSearchProblem({1, 1, 4, 4, {8, 28, 28}, {3, 3, 3}, {0, 0, 0}, {1, 1, 1}, {1, 1, 1}},
|
|
miopenHalf,
|
|
miopenTensorNDHWC);
|
|
|
|
Config cfg(false);
|
|
ASSERT_TRUE(cfg.SetNextValue(problem));
|
|
ASSERT_FALSE(cfg.valid_kernels.empty());
|
|
EXPECT_EQ(cfg.index, 0);
|
|
EXPECT_EQ(cfg.kernel_id, cfg.valid_kernels.front());
|
|
EXPECT_TRUE(cfg.IsValid(problem));
|
|
}
|