Skip to content

Commit

Permalink
Merge pull request oneapi-src#811 from veselypeta/petr/fix-prefixes
Browse files Browse the repository at this point in the history
[UR] Remove `cuda_`/`hip_` prefixes from tests files.
  • Loading branch information
veselypeta committed Aug 21, 2023
2 parents 318ef5a + fa89ec4 commit 12c0cdf
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions test/conformance/adapters/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

set(USE_LOCAL_TEST_CONFIGURATION ON)
add_conformance_test_with_devices_environment(adapter-cuda
cuda_fixtures.h
fixtures.h
context_tests.cpp
cuda_urContextGetNativeHandle.cpp
cuda_urDeviceGetNativeHandle.cpp
cuda_urDeviceCreateWithNativeHandle.cpp
cuda_urEventGetNativeHandle.cpp
cuda_urEventCreateWithNativeHandle.cpp
urContextGetNativeHandle.cpp
urDeviceGetNativeHandle.cpp
urDeviceCreateWithNativeHandle.cpp
urEventGetNativeHandle.cpp
urEventCreateWithNativeHandle.cpp
kernel_tests.cpp
memory_tests.cpp
)
Expand Down
2 changes: 1 addition & 1 deletion test/conformance/adapters/cuda/context_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "context.hpp"
#include "cuda_fixtures.h"
#include "fixtures.h"
#include "queue.hpp"
#include <thread>

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/conformance/adapters/cuda/memory_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "cuda_fixtures.h"
#include "fixtures.h"

using cudaMemoryTest = uur::urContextTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(cudaMemoryTest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "cuda_fixtures.h"
#include "fixtures.h"

using urCudaContextGetNativeHandle = uur::urContextTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urCudaContextGetNativeHandle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "cuda_fixtures.h"
#include "fixtures.h"

using urCudaDeviceCreateWithNativeHandle = uur::urPlatformTest;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "cuda_fixtures.h"
#include "fixtures.h"

using urCudaGetDeviceNativeHandle = uur::urDeviceTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urCudaGetDeviceNativeHandle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "cuda_fixtures.h"
#include "fixtures.h"

using urCudaEventCreateWithNativeHandleTest = uur::urQueueTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urCudaEventCreateWithNativeHandleTest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "cuda_fixtures.h"
#include "fixtures.h"

using urCudaEventGetNativeHandleTest = uur::urQueueTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urCudaEventGetNativeHandleTest);
Expand Down
8 changes: 4 additions & 4 deletions test/conformance/adapters/hip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

set(USE_LOCAL_TEST_CONFIGURATION ON)
add_conformance_test_with_devices_environment(adapter-hip
hip_fixtures.h
hip_urContextGetNativeHandle.cpp
hip_urDeviceGetNativeHandle.cpp
hip_urEventGetNativeHandle.cpp
fixtures.h
urContextGetNativeHandle.cpp
urDeviceGetNativeHandle.cpp
urEventGetNativeHandle.cpp
test_context.cpp
)
target_link_libraries(test-adapter-hip PRIVATE rocmdrv)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/conformance/adapters/hip/test_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "context.hpp"
#include "hip_fixtures.h"
#include "fixtures.h"
#include "queue.hpp"

using urHipContextTest = uur::urDeviceTest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "hip_fixtures.h"
#include "fixtures.h"

using urHipContextGetNativeHandleTest = uur::urContextTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urHipContextGetNativeHandleTest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "hip_fixtures.h"
#include "fixtures.h"

using urHipGetDeviceNativeHandle = uur::urDeviceTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urHipGetDeviceNativeHandle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See LICENSE.TXT
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "hip_fixtures.h"
#include "fixtures.h"

using urHipEventGetNativeHandleTest = uur::urQueueTest;
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urHipEventGetNativeHandleTest);
Expand Down

0 comments on commit 12c0cdf

Please sign in to comment.