Skip to content

Commit 8b178a0

Browse files
committed
[UR] Move stream_queue.hpp to common UR directory
1 parent 1c59e6e commit 8b178a0

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ llvm/include/llvm/SYCLLowerIR/SYCLCreateNVVMAnnotations.h @intel/llvm-reviewers-
7575
llvm/lib/SYCLLowerIR/SYCLCreateNVVMAnnotations.cpp @intel/llvm-reviewers-cuda
7676
llvm/lib/Target/NVPTX @intel/llvm-reviewers-cuda
7777
llvm/lib/Target/AMDGPU @intel/llvm-reviewers-cuda
78+
unified-runtime/source/common/cuda-hip @intel/llvm-reviewers-cuda
7879

7980
# XPTI instrumentation utilities
8081
xpti/ @intel/llvm-reviewers-runtime

unified-runtime/source/adapters/cuda/queue.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <mutex>
1818
#include <vector>
1919

20-
#include "stream_queue.hpp"
20+
#include <common/cuda-hip/stream_queue.hpp>
2121

2222
/// UR queue mapping on to CUstream objects.
2323
///

unified-runtime/source/adapters/hip/queue.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <mutex>
1515
#include <vector>
1616

17-
#include "../cuda/stream_queue.hpp"
17+
#include <common/cuda-hip/stream_queue.hpp>
1818

1919
/// UR queue mapping on to hipStream_t objects.
2020
///

unified-runtime/source/adapters/cuda/stream_queue.hpp renamed to unified-runtime/source/common/cuda-hip/stream_queue.hpp

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
//===--------- stream_queue.hpp - CUDA Adapter ----------------------------===//
2-
//
3-
// Copyright (C) 2025 Intel Corporation
4-
//
5-
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6-
// Exceptions. See LICENSE.TXT
7-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8-
//
9-
//===----------------------------------------------------------------------===//
10-
#pragma once
1+
/*
2+
*
3+
* Copyright (C) 2025 Intel Corporation
4+
*
5+
* Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
* Exceptions. See LICENSE.TXT
7+
*
8+
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9+
*
10+
*/
1111

12-
#include <ur/ur.hpp>
12+
#pragma once
1313

1414
#include <algorithm>
1515
#include <mutex>
1616
#include <vector>
1717

1818
using ur_stream_guard = std::unique_lock<std::mutex>;
1919

20-
/// Generic implementation of out-of-order queue using in-order streams.
20+
/// Generic implementation of an out-of-order UR queue based on in-order
21+
/// backend 'stream' objects.
2122
///
23+
/// This class is specifically designed for the CUDA and HIP adapters.
2224
template <typename ST, int CS, int TS> struct stream_queue_t {
2325
using native_type = ST;
2426
static constexpr int DefaultNumComputeStreams = CS;

0 commit comments

Comments
 (0)