Skip to content

Commit dbbc8e0

Browse files
committed
Merge branch 'main' into cooperative_kernel_functions
Signed-off-by: Michael Aziz <michael.aziz@intel.com>
2 parents 8e7b98d + 8d3233a commit dbbc8e0

File tree

83 files changed

+7990
-684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+7990
-684
lines changed

.github/workflows/cmake.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ jobs:
166166
strategy:
167167
matrix:
168168
adapter: [
169-
{name: CUDA, triplet: nvptx64-nvidia-cuda, platform: ""},
170-
{name: HIP, triplet: amdgcn-amd-amdhsa, platform: ""},
171-
{name: L0, triplet: spir64, platform: ""},
172-
{name: OPENCL, triplet: spir64, platform: "Intel(R) OpenCL"}
169+
{name: CUDA, platform: ""},
170+
{name: HIP, platform: ""},
171+
{name: L0, platform: ""},
172+
{name: OPENCL, platform: "Intel(R) OpenCL"}
173173
]
174174
build_type: [Debug, Release]
175175
compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
@@ -201,8 +201,7 @@ jobs:
201201
-DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
202202
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
203203
-DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
204-
-DUR_CONFORMANCE_TARGET_TRIPLES=${{matrix.adapter.triplet}}
205-
${{ matrix.adapter.name == 'HIP' && '-DAMD_ARCH=gfx1030' || '' }}
204+
${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
206205
${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
207206
208207
- name: Build

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ option(UR_BUILD_ADAPTER_NATIVE_CPU "Build the Native-CPU adapter" OFF)
4545
option(UR_BUILD_ADAPTER_ALL "Build all currently supported adapters" OFF)
4646
option(UR_BUILD_EXAMPLE_CODEGEN "Build the codegen example." OFF)
4747
option(VAL_USE_LIBBACKTRACE_BACKTRACE "enable libbacktrace validation backtrace for linux" OFF)
48+
option(UR_ENABLE_ASSERTIONS "Enable assertions for all build types" OFF)
4849
set(UR_DPCXX "" CACHE FILEPATH "Path of the DPC++ compiler executable")
4950
set(UR_SYCL_LIBRARY_DIR "" CACHE PATH
5051
"Path of the SYCL runtime library directory")
51-
option(UR_ENABLE_ASSERTIONS "Enable assertions for all build types" OFF)
52+
set(UR_CONFORMANCE_TARGET_TRIPLES "" CACHE STRING
53+
"List of sycl targets to build CTS device binaries for")
54+
set(UR_CONFORMANCE_AMD_ARCH "" CACHE STRING "AMD device target ID to build CTS binaries for")
5255

5356
include(Assertions)
5457

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ List of options provided by CMake:
128128
| UR_ENABLE_TRACING | Enable XPTI-based tracing layer | ON/OFF | OFF |
129129
| UR_ENABLE_SANITIZER | Enable device sanitizer layer | ON/OFF | ON |
130130
| UR_CONFORMANCE_TARGET_TRIPLES | SYCL triples to build CTS device binaries for | Comma-separated list | spir64 |
131+
| UR_CONFORMANCE_AMD_ARCH | AMD device target ID to build CTS binaries for | string | `""` |
131132
| UR_BUILD_ADAPTER_L0 | Build the Level-Zero adapter | ON/OFF | OFF |
132133
| UR_BUILD_ADAPTER_OPENCL | Build the OpenCL adapter | ON/OFF | OFF |
133134
| UR_BUILD_ADAPTER_CUDA | Build the CUDA adapter | ON/OFF | OFF |

cmake/FindRocmAgentEnumerator.cmake

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright (C) 2023 Intel Corporation
2+
# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
3+
# See LICENSE.TXT
4+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5+
6+
#
7+
# FindRocmAgentEnumerator.cmake -- module searching for rocm_agent_enumerator.
8+
# ROCM_AGENT_ENUMERATOR_FOUND is set to true if
9+
# rocm_agent_enumerator is found.
10+
#
11+
12+
find_program(ROCM_AGENT_ENUMERATOR NAMES not_rocm_agent_enumerator)
13+
14+
if(ROCM_AGENT_ENUMERATOR)
15+
set(ROCM_AGENT_ENUMERATOR_FOUND TRUE)
16+
endif()
17+
18+
include(FindPackageHandleStandardArgs)
19+
find_package_handle_standard_args(RocmAgentEnumerator DEFAULT_MSG ROCM_AGENT_ENUMERATOR)

include/ur_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5103,7 +5103,7 @@ urKernelCreateWithNativeHandle(
51035103
///////////////////////////////////////////////////////////////////////////////
51045104
/// @brief Query queue info
51055105
typedef enum ur_queue_info_t {
5106-
UR_QUEUE_INFO_CONTEXT = 0, ///< [::ur_queue_handle_t] context associated with this queue.
5106+
UR_QUEUE_INFO_CONTEXT = 0, ///< [::ur_context_handle_t] context associated with this queue.
51075107
UR_QUEUE_INFO_DEVICE = 1, ///< [::ur_device_handle_t] device associated with this queue.
51085108
UR_QUEUE_INFO_DEVICE_DEFAULT = 2, ///< [::ur_queue_handle_t] the current default queue of the underlying
51095109
///< device.

0 commit comments

Comments
 (0)