Skip to content

Commit c4017cd

Browse files
authored
[Offload][NFC] Remove header license in CMake files (#92544)
Summary: No other project has these in the CMake itself, and they're wildly inconsistent even within the project. These don't really add anything so I think they should be removed.
1 parent fa9881d commit c4017cd

File tree

12 files changed

+3
-141
lines changed

12 files changed

+3
-141
lines changed

offload/CMakeLists.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
##===----------------------------------------------------------------------===##
2-
#
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.
5-
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
#
7-
##===----------------------------------------------------------------------===##
8-
#
9-
# Build offloading library and related plugins.
10-
#
11-
##===----------------------------------------------------------------------===##
1+
# See for https://openmp.llvm.org/SupportAndFAQ.html for instructions on how
2+
# to build offload with CMake.
123

134
cmake_minimum_required(VERSION 3.20.0)
145

offload/DeviceRTL/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
##===----------------------------------------------------------------------===##
2-
#
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.
5-
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
#
7-
##===----------------------------------------------------------------------===##
8-
#
9-
# Build the DeviceRTL for all toolchains that are available
10-
#
11-
##===----------------------------------------------------------------------===##
12-
131
set(LIBOMPTARGET_BUILD_DEVICERTL_BCLIB TRUE CACHE BOOL
142
"Can be set to false to disable building this library.")
153

offload/cmake/Modules/LibomptargetGetDependencies.cmake

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
#
2-
#//===----------------------------------------------------------------------===//
3-
#//
4-
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5-
#// See https://llvm.org/LICENSE.txt for license information.
6-
#// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7-
#//
8-
#//===----------------------------------------------------------------------===//
9-
#
10-
111
# Try to detect in the system several dependencies required by the different
122
# components of libomptarget. These are the dependencies we have:
133
#

offload/cmake/Modules/LibomptargetUtils.cmake

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
#
2-
#//===----------------------------------------------------------------------===//
3-
#//
4-
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5-
#// See https://llvm.org/LICENSE.txt for license information.
6-
#// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7-
#//
8-
#//===----------------------------------------------------------------------===//
9-
#
10-
111
# void libomptarget_say(string message_to_user);
122
# - prints out message_to_user
133
macro(libomptarget_say message_to_user)

offload/plugins-nextgen/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
##===----------------------------------------------------------------------===##
2-
#
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.
5-
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
#
7-
##===----------------------------------------------------------------------===##
8-
#
9-
# Build plugins for the user system if available.
10-
#
11-
##===----------------------------------------------------------------------===##
12-
131
# Common interface to handle creating a plugin library.
142
set(common_dir ${CMAKE_CURRENT_SOURCE_DIR}/common)
153
add_subdirectory(common)

offload/plugins-nextgen/amdgpu/CMakeLists.txt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
1-
##===----------------------------------------------------------------------===##
2-
#
3-
# The LLVM Compiler Infrastructure
4-
#
5-
# This file is dual licensed under the MIT and the University of Illinois Open
6-
# Source Licenses. See LICENSE.txt for details.
7-
#
8-
##===----------------------------------------------------------------------===##
9-
#
10-
# Build a plugin for an AMDGPU machine if available.
11-
#
12-
##===----------------------------------------------------------------------===##
13-
14-
################################################################################
15-
# as of rocm-3.7, hsa is installed with cmake packages and kmt is found via hsa
1+
# As of rocm-3.7, hsa is installed with cmake packages and kmt is found via hsa
162
find_package(hsa-runtime64 QUIET 1.2.0 HINTS ${CMAKE_INSTALL_PREFIX} PATHS /opt/rocm)
173

184
if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux"))

offload/plugins-nextgen/common/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
##===----------------------------------------------------------------------===##
2-
#
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.
5-
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
#
7-
##===----------------------------------------------------------------------===##
8-
#
9-
# Common parts which can be used by all plugins
10-
#
11-
##===----------------------------------------------------------------------===##
12-
131
# NOTE: Don't try to build `PluginInterface` using `add_llvm_library` because we
142
# don't want to export `PluginInterface` while `add_llvm_library` requires that.
153
add_library(PluginCommon OBJECT

offload/plugins-nextgen/cuda/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
##===----------------------------------------------------------------------===##
2-
#
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.
5-
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
#
7-
##===----------------------------------------------------------------------===##
8-
#
9-
# Build a plugin for a CUDA machine if available.
10-
#
11-
##===----------------------------------------------------------------------===##
121
if (NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
132
libomptarget_say("Not building CUDA NextGen offloading plugin: only support CUDA in Linux x86_64, ppc64le, or aarch64 hosts.")
143
return()

offload/src/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
##===----------------------------------------------------------------------===##
2-
#
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.
5-
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
#
7-
##===----------------------------------------------------------------------===##
8-
#
9-
# Build offloading library libomptarget.so.
10-
#
11-
##===----------------------------------------------------------------------===##
12-
131
libomptarget_say("Building offloading runtime library libomptarget.")
142

153
if(LIBOMP_STANDALONE)

offload/tools/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
##===----------------------------------------------------------------------===##
2-
#
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.
5-
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
#
7-
##===----------------------------------------------------------------------===##
8-
#
9-
# Adding omptarget tools
10-
#
11-
##===----------------------------------------------------------------------===##
12-
131
set(OPENMP_TOOLS_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}" CACHE PATH
142
"Path for binary subdirectory (defaults to '${CMAKE_INSTALL_BINDIR}')")
153
mark_as_advanced(OPENMP_TOOLS_INSTALL_DIR)

offload/tools/deviceinfo/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
##===----------------------------------------------------------------------===##
2-
#
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.
5-
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
#
7-
##===----------------------------------------------------------------------===##
8-
#
9-
# Build llvm-omp-device-info tool
10-
#
11-
##===----------------------------------------------------------------------===##
12-
131
libomptarget_say("Building the llvm-omp-device-info tool")
142

153
add_openmp_tool(llvm-omp-device-info llvm-omp-device-info.cpp)

offload/tools/kernelreplay/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
##===----------------------------------------------------------------------===##
2-
#
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.
5-
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
#
7-
##===----------------------------------------------------------------------===##
8-
#
9-
# Build llvm-omp-kernel-replay tool
10-
#
11-
##===----------------------------------------------------------------------===##
12-
131
libomptarget_say("Building the llvm-omp-kernel-replay tool")
142

153
add_openmp_tool(llvm-omp-kernel-replay llvm-omp-kernel-replay.cpp)

0 commit comments

Comments
 (0)