Skip to content

Commit

Permalink
[UR] Fix gcc diagnostic warning for deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Vesely committed Aug 14, 2023
1 parent fb46fd0 commit 5afcd60
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/conformance/adapters/hip/test_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,16 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "context.hpp"
#include "hip_fixtures.h"
#include "queue.hpp"

using urHipContextTest = uur::urDeviceTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urHipContextTest);

// https://sep5.readthedocs.io/en/latest/ROCm_API_References/
// HIP_API/Context-Management.html#_CPPv419hipCtxGetApiVersion8hipCtx_tPi
constexpr int HIP_DRIVER_API_VERSION = 4;

TEST_P(urHipContextTest, ActiveContexts) {

ur_context_handle_t context = nullptr;
ASSERT_SUCCESS(urContextCreate(1, &device, nullptr, &context));
ASSERT_NE(context, nullptr);
Expand Down Expand Up @@ -109,3 +106,4 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {

ASSERT_SUCCESS(urContextRelease(context2));
}
#pragma GCC diagnostic pop

0 comments on commit 5afcd60

Please sign in to comment.