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
45 lines
1.7 KiB
C++
45 lines
1.7 KiB
C++
// Copyright © Advanced Micro Devices, Inc., or its affiliates.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// Integration-style coverage for the cuDNN-compatibility shim (RFC 0012).
|
|
// Unlike the unit-level compile/link check
|
|
// (frontend/tests/TestCudnnShimUmbrellaCompiles.cpp), this exercises the shim
|
|
// umbrella inside the *integration* executable — the same translation unit pulls
|
|
// in the real hipDNN frontend, the backend C-API, and a live device handle via
|
|
// IntegrationTestFixture — proving the shim header coexists with, and is usable
|
|
// alongside, a fully wired hipDNN stack.
|
|
//
|
|
// The umbrella is intentionally empty at the skeleton stage, so this test only
|
|
// establishes the integration scaffolding; it will grow to build/validate/execute
|
|
// a shim graph end-to-end against the in-tree test plugin as the shim's Graph and
|
|
// node wrappers land (RFC §7.2, §7.3 / §8.2).
|
|
//
|
|
// Gated behind HIPDNN_ENABLE_CUDNN_COMPATIBILITY in tests/frontend/CMakeLists.txt.
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <hipdnn_backend.h>
|
|
#include <hipdnn_frontend.hpp>
|
|
#include <hipdnn_test_sdk/utilities/IntegrationTestFixture.hpp>
|
|
|
|
#include <hipdnn_compatibility/cudnn/cudnn_frontend.h>
|
|
|
|
namespace
|
|
{
|
|
using hipdnn_tests::IntegrationTestFixture;
|
|
|
|
class IntegrationCudnnShim : public IntegrationTestFixture
|
|
{
|
|
};
|
|
|
|
// The shim umbrella compiles and links within the integration executable, and a
|
|
// live hipDNN handle is available for the (future) shim graph path. Skips on
|
|
// hosts without a device (via the fixture's SKIP_IF_NO_DEVICES()).
|
|
TEST_F(IntegrationCudnnShim, UmbrellaUsableWithLiveHandle)
|
|
{
|
|
ASSERT_NE(_handle, nullptr);
|
|
SUCCEED() << "cuDNN shim umbrella usable alongside a live hipDNN backend handle.";
|
|
}
|
|
|
|
} // namespace
|