Skip to content

Commit 00c7edb

Browse files
authored
[CUDA] Update license headers and fix compilation issues (#900)
- Update license headers for the CUDA adapter - Add virtual memory entrypoints to ur_interface_loader.cpp - Add missing source files to the CUDA adapter cmake - Fix compilation error in image.cpp (uninitialized variable)
1 parent e72d570 commit 00c7edb

34 files changed

+174
-66
lines changed

source/adapters/cuda/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ add_ur_adapter(${TARGET_NAME}
2323
${CMAKE_CURRENT_SOURCE_DIR}/enqueue.cpp
2424
${CMAKE_CURRENT_SOURCE_DIR}/event.hpp
2525
${CMAKE_CURRENT_SOURCE_DIR}/event.cpp
26+
${CMAKE_CURRENT_SOURCE_DIR}/image.hpp
27+
${CMAKE_CURRENT_SOURCE_DIR}/image.cpp
2628
${CMAKE_CURRENT_SOURCE_DIR}/kernel.hpp
2729
${CMAKE_CURRENT_SOURCE_DIR}/kernel.cpp
2830
${CMAKE_CURRENT_SOURCE_DIR}/memory.hpp

source/adapters/cuda/adapter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//===--------- adapter.cpp - CUDA Adapter ---------------------------------===//
22
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
3+
// Copyright (C) 2023 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
57
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
68
//
79
//===----------------------------------------------------------------------===//

source/adapters/cuda/adapter.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//===--------- adapter.hpp - CUDA Adapter ---------------------------------===//
22
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
3+
// Copyright (C) 2023 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
57
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
68
//
79
//===----------------------------------------------------------------------===//

source/adapters/cuda/command_buffer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//===--------- command_buffer.cpp - CUDA Adapter --------------------------===//
22
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
3+
// Copyright (C) 2023 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
57
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
68
//
79
//===----------------------------------------------------------------------===//

source/adapters/cuda/command_buffer.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//===--------- command_buffer.hpp - CUDA Adapter --------------------------===//
22
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
3+
// Copyright (C) 2023 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
57
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
68
//
79
//===----------------------------------------------------------------------===//

source/adapters/cuda/common.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//===--------- common.cpp - CUDA Adapter ----------------------------------===//
22
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
3+
// Copyright (C) 2023 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
57
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
68
//
79
//===----------------------------------------------------------------------===//

source/adapters/cuda/common.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//===--------- common.hpp - CUDA Adapter ----------------------------------===//
22
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
3+
// Copyright (C) 2023 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
57
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
68
//
79
//===----------------------------------------------------------------------===//

source/adapters/cuda/context.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//===--------- context.cpp - CUDA Adapter ---------------------------------===//
22
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
3+
// Copyright (C) 2023 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
57
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
68
//
79
//===----------------------------------------------------------------------===//

source/adapters/cuda/context.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//===--------- context.hpp - CUDA Adapter ---------------------------------===//
22
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
3+
// Copyright (C) 2023 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
57
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
68
//
79
//===----------------------------------------------------------------------===//

source/adapters/cuda/device.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//===--------- device.cpp - CUDA Adapter ----------------------------------===//
22
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
3+
// Copyright (C) 2023 Intel Corporation
4+
//
5+
// Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM
6+
// Exceptions. See LICENSE.TXT
57
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
68
//
79
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)