diff --git a/test/conformance/CMakeLists.txt b/test/conformance/CMakeLists.txt index 5c14d3e34a..3b9292e13f 100644 --- a/test/conformance/CMakeLists.txt +++ b/test/conformance/CMakeLists.txt @@ -54,6 +54,7 @@ add_subdirectory(usm) add_subdirectory(event) add_subdirectory(queue) add_subdirectory(sampler) +add_subdirectory(virtual_memory) if(DEFINED UR_DPCXX) add_custom_target(generate_device_binaries) diff --git a/test/conformance/virtual_memory/CMakeLists.txt b/test/conformance/virtual_memory/CMakeLists.txt new file mode 100644 index 0000000000..6ae27f443b --- /dev/null +++ b/test/conformance/virtual_memory/CMakeLists.txt @@ -0,0 +1,17 @@ +# Copyright (C) 2023 Intel Corporation +# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +# See LICENSE.TXT +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +add_conformance_test_with_devices_environment(virtual_memory + urPhysicalMemCreate.cpp + urPhysicalMemRelease.cpp + urPhysicalMemRetain.cpp + urVirtualMemFree.cpp + urVirtualMemGetInfo.cpp + urVirtualMemGranularityGetInfo.cpp + urVirtualMemMap.cpp + urVirtualMemReserve.cpp + urVirtualMemSetAccess.cpp + urVirtualMemUnmap.cpp +) diff --git a/test/conformance/virtual_memory/urPhysicalMemCreate.cpp b/test/conformance/virtual_memory/urPhysicalMemCreate.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urPhysicalMemCreate.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception diff --git a/test/conformance/virtual_memory/urPhysicalMemRelease.cpp b/test/conformance/virtual_memory/urPhysicalMemRelease.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urPhysicalMemRelease.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception diff --git a/test/conformance/virtual_memory/urPhysicalMemRetain.cpp b/test/conformance/virtual_memory/urPhysicalMemRetain.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urPhysicalMemRetain.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception diff --git a/test/conformance/virtual_memory/urVirtualMemFree.cpp b/test/conformance/virtual_memory/urVirtualMemFree.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urVirtualMemFree.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception diff --git a/test/conformance/virtual_memory/urVirtualMemGetInfo.cpp b/test/conformance/virtual_memory/urVirtualMemGetInfo.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urVirtualMemGetInfo.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception diff --git a/test/conformance/virtual_memory/urVirtualMemGranularityGetInfo.cpp b/test/conformance/virtual_memory/urVirtualMemGranularityGetInfo.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urVirtualMemGranularityGetInfo.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception diff --git a/test/conformance/virtual_memory/urVirtualMemMap.cpp b/test/conformance/virtual_memory/urVirtualMemMap.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urVirtualMemMap.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception diff --git a/test/conformance/virtual_memory/urVirtualMemReserve.cpp b/test/conformance/virtual_memory/urVirtualMemReserve.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urVirtualMemReserve.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception diff --git a/test/conformance/virtual_memory/urVirtualMemSetAccess.cpp b/test/conformance/virtual_memory/urVirtualMemSetAccess.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urVirtualMemSetAccess.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception diff --git a/test/conformance/virtual_memory/urVirtualMemUnmap.cpp b/test/conformance/virtual_memory/urVirtualMemUnmap.cpp new file mode 100644 index 0000000000..281aa8badb --- /dev/null +++ b/test/conformance/virtual_memory/urVirtualMemUnmap.cpp @@ -0,0 +1,4 @@ +// Copyright (C) 2023 Intel Corporation +// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions. +// See LICENSE.TXT +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception