diff --git a/.github/workflows/bin/license b/.github/workflows/bin/license new file mode 100644 index 000000000..1d51b734c --- /dev/null +++ b/.github/workflows/bin/license @@ -0,0 +1,184 @@ +#!/bin/env python3 +# +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import print_function + +import os +import re +from collections import defaultdict +import sys + +#: SPDX license id must appear in the first lines of a file +license_lines = 7 + +#: Benchpark's license identifier +apache_spdx = "Apache-2.0" + +#: regular expressions for licensed files. +licensed_files = [ + r"^bin\/benchpark", + r"^configs\/[^\/]*\/[^\/]*", + r"^docs\/[^\/]*\.rst$", + r"^experiments\/[^\/]*\/[^\/]*", + r"^repo\/[^\/]*\/[^\/]*", +] + + +def _all_files(root="."): + """Generates root-relative paths of all files in the repository.""" + visited = set() + for cur_root, folders, files in os.walk(root): + for filename in files: + path = os.path.realpath(os.path.join(cur_root, filename)) + + if path not in visited: + yield os.path.relpath(path, root) + visited.add(path) + + +def _licensed_files(root): + for relpath in _all_files(root): + if any(regex.match(relpath) for regex in licensed_files): + yield relpath + + +def list_files(root): + """List files that should have license headers""" + for relpath in sorted(_licensed_files(root)): + print(os.path.join(".", relpath)) + + +# Error codes for license verification. All values are chosen such that +# bool(value) evaluates to True +SPDX_MISMATCH, GENERAL_MISMATCH, COPYRIGHT_YEAR_MISMATCH = range(1, 4) + +#: Latest year that copyright applies. UPDATE THIS when bumping copyright. +latest_year = 2023 +strict_date = r"Copyright %s" % latest_year + +#: regexes for valid license lines at tops of files +license_line_regexes = [ + r"Copyright (%d|[0-9]{4}) Lawrence Livermore National Security, LLC and other" + % latest_year, + r"Benchpark Project Developers. See the top-level COPYRIGHT file for details.", + r"SPDX-License-Identifier: Apache-2.0", +] + + +class LicenseError(object): + def __init__(self): + self.error_counts = defaultdict(int) + + def add_error(self, error): + self.error_counts[error] += 1 + + def has_errors(self): + return sum(self.error_counts.values()) > 0 + + def error_messages(self): + total = sum(self.error_counts.values()) + missing = self.error_counts[GENERAL_MISMATCH] + spdx_mismatch = self.error_counts[SPDX_MISMATCH] + copyright_year_mismatch = self.error_counts[COPYRIGHT_YEAR_MISMATCH] + return ( + "%d improperly licensed files\n" % (total), + "files with wrong SPDX-License-Identifier: %d\n" % spdx_mismatch, + "files not containing expected license: %d\n" % missing, + "files with wrong copyright year: %d\n" % copyright_year_mismatch, + ) + + +def _check_license(lines, path): + found = [] + + for line in lines: + line = re.sub(r"^[\s#\%\.\!\/\/]*", "", line) + line = line.rstrip() + for i, line_regex in enumerate(license_line_regexes): + if re.match(line_regex, line): + # The first line of the license contains the copyright date. + # We allow it to be out of date but print a warning if it is + # out of date. + if i == 0: + if not re.search(strict_date, line): + print("{0}: Copyright date mismatch".format(path)) + return COPYRIGHT_YEAR_MISMATCH + found.append(i) + + if len(found) == len(license_line_regexes) and found == list(sorted(found)): + return + + # If the SPDX identifier is present, then there is a mismatch (since it + # did not match the above regex) + def wrong_spdx_identifier(line, path): + m = re.search(r"SPDX-License-Identifier: [^\n]*", line) + if m and m.group(1) != apache_spdx: + print( + "{0}: SPDX license identifier mismatch" + "(expecting {1}, found {2})".format(path, apache_spdx, m.group(1)) + ) + return SPDX_MISMATCH + else: + print("{0}: SPDX license identifier missing".format(path)) + return GENERAL_MISMATCH + + checks = [wrong_spdx_identifier] + + for line in lines: + for check in checks: + error = check(line, path) + if error: + return error + + print( + "{0}: the license header at the top of the file does not match the" + " expected format".format(path) + ) + return GENERAL_MISMATCH + + +def verify(root): + """Verify that files have the right license header""" + + license_errors = LicenseError() + + for relpath in _licensed_files(root): + path = os.path.join(root, relpath) + with open(path) as f: + lines = [line for line in f][:license_lines] + + error = _check_license(lines, path) + if error: + license_errors.add_error(error) + + if license_errors.has_errors(): + print(*license_errors.error_messages()) + sys.exit(1) + else: + print("No license issues found.") + return + + +if __name__ == "__main__": + valid_options = ["list-files", "verify"] + + if len(sys.argv) != 2: + print("Please specify a valid option: {}".format(valid_options)) + sys.exit() + + cmd = sys.argv[1] + if cmd not in valid_options: + print("Invalid argument. Valid options are {}".format(valid_options)) + sys.exit() + + licensed_files[:] = [re.compile(regex) for regex in licensed_files] + root = os.path.abspath(os.curdir) + + if cmd == "list-files": + list_files(root) + elif cmd == "verify": + verify(root) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ed24751f..c1b1fd2d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,7 @@ jobs: docs: ${{ steps.filter.outputs.docs }} style: ${{ steps.filter.outputs.style }} run: ${{ steps.filter.outputs.run }} + license: ${{ steps.filter.outputs.license }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # @v2 @@ -49,6 +50,13 @@ jobs: - 'configs/**' - 'experiments/**' - 'repo/**' + license: + - '.github/**' + - 'bin/**' + - 'configs/**' + - 'docs/**' + - 'experiments/**' + - 'repo/**' docs: if: ${{ needs.changes.outputs.docs == 'true' }} @@ -64,3 +72,8 @@ jobs: if: ${{ needs.changes.outputs.run == 'true' }} needs: changes uses: ./.github/workflows/run.yml + + license: + if: ${{ needs.changes.outputs.license == 'true' }} + needs: changes + uses: ./.github/workflows/license.yml diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml new file mode 100644 index 000000000..851f684de --- /dev/null +++ b/.github/workflows/license.yml @@ -0,0 +1,21 @@ +name: License Checks +on: + # This Workflow can be triggered manually + workflow_dispatch: + workflow_call: + +jobs: + verify-license: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + + - name: Set up Python 3.11 + uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 + with: + python-version: '3.11' + cache: 'pip' + + - name: Verify license headers + run: | + python .github/workflows/bin/license verify diff --git a/COPYRIGHT b/COPYRIGHT new file mode 100644 index 000000000..f806bfd29 --- /dev/null +++ b/COPYRIGHT @@ -0,0 +1,16 @@ +Intellectual Property Notice +------------------------------ + +Benchpark is licensed under the Apache License, Version 2.0 (LICENSE-APACHE +or http://www.apache.org/licenses/LICENSE-2.0). + +Copyrights and patents in the Benchpark project are retained by contributors. +No copyright assignment is required to contribute to Benchpark. + + +SPDX usage +------------ + +Individual files contain SPDX tags instead of the full license text. +This enables machine processing of license information based on the SPDX +License Identifiers that are available here: https://spdx.org/licenses/ diff --git a/NOTICE b/NOTICE new file mode 100644 index 000000000..3737d5a86 --- /dev/null +++ b/NOTICE @@ -0,0 +1,21 @@ +This work was produced under the auspices of the U.S. Department of +Energy by Lawrence Livermore National Laboratory under Contract +DE-AC52-07NA27344. + +This work was prepared as an account of work sponsored by an agency of +the United States Government. Neither the United States Government nor +Lawrence Livermore National Security, LLC, nor any of their employees +makes any warranty, expressed or implied, or assumes any legal liability +or responsibility for the accuracy, completeness, or usefulness of any +information, apparatus, product, or process disclosed, or represents that +its use would not infringe privately owned rights. + +Reference herein to any specific commercial product, process, or service +by trade name, trademark, manufacturer, or otherwise does not necessarily +constitute or imply its endorsement, recommendation, or favoring by the +United States Government or Lawrence Livermore National Security, LLC. + +The views and opinions of authors expressed herein do not necessarily +state or reflect those of the United States Government or Lawrence +Livermore National Security, LLC, and shall not be used for advertising +or product endorsement purposes. diff --git a/bin/benchpark b/bin/benchpark index f614be2d0..31a7bc8d9 100755 --- a/bin/benchpark +++ b/bin/benchpark @@ -1,4 +1,9 @@ #!/usr/bin/env python3 +# +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 import argparse import subprocess diff --git a/configs/AWS-x86-ParallelCluster-3.7.2/README.txt b/configs/AWS-x86-ParallelCluster-3.7.2/README.txt index dea80ad5c..6864ab012 100644 --- a/configs/AWS-x86-ParallelCluster-3.7.2/README.txt +++ b/configs/AWS-x86-ParallelCluster-3.7.2/README.txt @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + AWS x86 ParallelCluster 3.7.2 ----------------------------- diff --git a/configs/AWS-x86-ParallelCluster-3.7.2/auxiliary_software_files/compilers.yaml b/configs/AWS-x86-ParallelCluster-3.7.2/auxiliary_software_files/compilers.yaml index 05b641ee7..31758ea83 100644 --- a/configs/AWS-x86-ParallelCluster-3.7.2/auxiliary_software_files/compilers.yaml +++ b/configs/AWS-x86-ParallelCluster-3.7.2/auxiliary_software_files/compilers.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + compilers: - compiler: spec: gcc@7.3.1 diff --git a/configs/AWS-x86-ParallelCluster-3.7.2/auxiliary_software_files/packages.yaml b/configs/AWS-x86-ParallelCluster-3.7.2/auxiliary_software_files/packages.yaml index 248ea0e2b..60e9df4dc 100644 --- a/configs/AWS-x86-ParallelCluster-3.7.2/auxiliary_software_files/packages.yaml +++ b/configs/AWS-x86-ParallelCluster-3.7.2/auxiliary_software_files/packages.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + packages: tar: externals: diff --git a/configs/AWS-x86-ParallelCluster-3.7.2/spack.yaml b/configs/AWS-x86-ParallelCluster-3.7.2/spack.yaml index 69c35d334..15ddc2bbf 100644 --- a/configs/AWS-x86-ParallelCluster-3.7.2/spack.yaml +++ b/configs/AWS-x86-ParallelCluster-3.7.2/spack.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + spack: packages: default-compiler: diff --git a/configs/AWS-x86-ParallelCluster-3.7.2/variables.yaml b/configs/AWS-x86-ParallelCluster-3.7.2/variables.yaml index b8a404d5b..fd0dbf964 100644 --- a/configs/AWS-x86-ParallelCluster-3.7.2/variables.yaml +++ b/configs/AWS-x86-ParallelCluster-3.7.2/variables.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + variables: batch_time: '02:00' mpi_command: 'srun -N {n_nodes} -n {n_ranks} --mpi=pmix --export=ALL,FI_EFA_USE_DEVICE_RDMA=1,FI_PROVIDER="efa",OMPI_MCA_mtl_base_verbose=100' diff --git a/configs/ats2/auxiliary_software_files/compilers.yaml b/configs/ats2/auxiliary_software_files/compilers.yaml index 3232c1fe3..501522dcf 100644 --- a/configs/ats2/auxiliary_software_files/compilers.yaml +++ b/configs/ats2/auxiliary_software_files/compilers.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + compilers: - compiler: spec: xl@16.1.1-2022.08.19-cuda-11.7.0 diff --git a/configs/ats2/auxiliary_software_files/packages.yaml b/configs/ats2/auxiliary_software_files/packages.yaml index ba3625c54..dd43a66ba 100644 --- a/configs/ats2/auxiliary_software_files/packages.yaml +++ b/configs/ats2/auxiliary_software_files/packages.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + packages: tar: externals: diff --git a/configs/ats2/spack.yaml b/configs/ats2/spack.yaml index 8f0dca8df..bdebba667 100644 --- a/configs/ats2/spack.yaml +++ b/configs/ats2/spack.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + spack: packages: default-compiler: diff --git a/configs/ats2/variables.yaml b/configs/ats2/variables.yaml index a02f3cf97..717ed9d76 100644 --- a/configs/ats2/variables.yaml +++ b/configs/ats2/variables.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + variables: gtl_flag: '' # to be overwritten by tests that need GTL batch_time: '02:00' diff --git a/configs/ats4/auxiliary_software_files/compilers.yaml b/configs/ats4/auxiliary_software_files/compilers.yaml index 60f0272f5..e3a97b0ac 100644 --- a/configs/ats4/auxiliary_software_files/compilers.yaml +++ b/configs/ats4/auxiliary_software_files/compilers.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + compilers: - compiler: spec: cce@16.0.0-rocm5.5.1 diff --git a/configs/ats4/auxiliary_software_files/packages.yaml b/configs/ats4/auxiliary_software_files/packages.yaml index b47bf4772..1b2825fd7 100644 --- a/configs/ats4/auxiliary_software_files/packages.yaml +++ b/configs/ats4/auxiliary_software_files/packages.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + packages: all: require: target=x86_64 diff --git a/configs/ats4/spack.yaml b/configs/ats4/spack.yaml index 9c5b75b2c..e969f2fe6 100644 --- a/configs/ats4/spack.yaml +++ b/configs/ats4/spack.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + spack: packages: default-compiler: diff --git a/configs/ats4/variables.yaml b/configs/ats4/variables.yaml index ba46c9b78..e4145451a 100644 --- a/configs/ats4/variables.yaml +++ b/configs/ats4/variables.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + variables: gtl_flag: '' # to be overwritten by tests that need GTL rocm_arch: 'gfx90a' diff --git a/configs/cts1/auxiliary_software_files/compilers.yaml b/configs/cts1/auxiliary_software_files/compilers.yaml index 1027a214e..2e71df790 100644 --- a/configs/cts1/auxiliary_software_files/compilers.yaml +++ b/configs/cts1/auxiliary_software_files/compilers.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + compilers: - compiler: spec: gcc@12.1.1 diff --git a/configs/cts1/auxiliary_software_files/packages.yaml b/configs/cts1/auxiliary_software_files/packages.yaml index 2103edbed..941b8a7a6 100644 --- a/configs/cts1/auxiliary_software_files/packages.yaml +++ b/configs/cts1/auxiliary_software_files/packages.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + packages: tar: externals: diff --git a/configs/cts1/spack.yaml b/configs/cts1/spack.yaml index 556a47d94..5668e42f7 100644 --- a/configs/cts1/spack.yaml +++ b/configs/cts1/spack.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + spack: packages: default-compiler: diff --git a/configs/cts1/variables.yaml b/configs/cts1/variables.yaml index a8407aead..e4674cde0 100644 --- a/configs/cts1/variables.yaml +++ b/configs/cts1/variables.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + variables: batch_time: '02:00' mpi_command: 'srun -N {n_nodes} -n {n_ranks}' diff --git a/configs/x86/variables.yaml b/configs/x86/variables.yaml index 097ac05c4..b9c418080 100644 --- a/configs/x86/variables.yaml +++ b/configs/x86/variables.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + variables: batch_time: '' mpi_command: 'mpirun -n {n_nodes} -c {n_ranks} --oversubscribe' diff --git a/docs/1-getting-started.rst b/docs/1-getting-started.rst index 92e0228f5..9b26b4dca 100644 --- a/docs/1-getting-started.rst +++ b/docs/1-getting-started.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ============================== Getting Started with Benchpark ============================== diff --git a/docs/2-benchpark-list.rst b/docs/2-benchpark-list.rst index 85262a7e3..90cb5f6a4 100644 --- a/docs/2-benchpark-list.rst +++ b/docs/2-benchpark-list.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ============== Benchpark List ============== diff --git a/docs/3-opt-edit-experiment.rst b/docs/3-opt-edit-experiment.rst index 187c137ee..e35ca1758 100644 --- a/docs/3-opt-edit-experiment.rst +++ b/docs/3-opt-edit-experiment.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ========================== (optional) Edit experiment ========================== diff --git a/docs/4-benchpark-setup.rst b/docs/4-benchpark-setup.rst index f1e63cfbb..ecffdeb54 100644 --- a/docs/4-benchpark-setup.rst +++ b/docs/4-benchpark-setup.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + =============== Benchpark Setup =============== diff --git a/docs/5-build-experiment.rst b/docs/5-build-experiment.rst index 9021ac368..c8ecfd010 100644 --- a/docs/5-build-experiment.rst +++ b/docs/5-build-experiment.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ================ Build experiment ================ diff --git a/docs/6-run-experiment.rst b/docs/6-run-experiment.rst index e382d67e3..7af222991 100644 --- a/docs/6-run-experiment.rst +++ b/docs/6-run-experiment.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ================================== Running an Experiment in Benchpark ================================== diff --git a/docs/7-analyze-experiment.rst b/docs/7-analyze-experiment.rst index 9e82e4440..8502d91f1 100644 --- a/docs/7-analyze-experiment.rst +++ b/docs/7-analyze-experiment.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ================================== Analyzing Experiments in Benchpark ================================== diff --git a/docs/FAQ-what-to-rerun.rst b/docs/FAQ-what-to-rerun.rst index 2e705f022..a9c387f37 100644 --- a/docs/FAQ-what-to-rerun.rst +++ b/docs/FAQ-what-to-rerun.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ========================================== FAQ: I made changes. What should I rerun? ========================================== diff --git a/docs/add-a-benchmark.rst b/docs/add-a-benchmark.rst index 41eb980e5..fbd466beb 100644 --- a/docs/add-a-benchmark.rst +++ b/docs/add-a-benchmark.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ================== Adding a Benchmark ================== diff --git a/docs/add-a-system-config.rst b/docs/add-a-system-config.rst index db7a4ca4e..1e8ed09ab 100644 --- a/docs/add-a-system-config.rst +++ b/docs/add-a-system-config.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ============================= Adding a System Configuration ============================= diff --git a/docs/add-an-experiment.rst b/docs/add-an-experiment.rst index 0d063018a..878833c12 100644 --- a/docs/add-an-experiment.rst +++ b/docs/add-an-experiment.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ================= Add an Experiment ================= diff --git a/docs/experiments_root_structure.rst b/docs/experiments_root_structure.rst index 9fac7b94c..145dcb396 100644 --- a/docs/experiments_root_structure.rst +++ b/docs/experiments_root_structure.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + For each ``experiment`` (``benchmark`` x ``ProgrammingModel`` x ), Ramble sets up the following ``workspace`` directory structure to build and run the experiment:: diff --git a/docs/index.rst b/docs/index.rst index ae7d83727..58ddaec74 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + .. include:: ../README.rst .. toctree:: diff --git a/docs/set-of-experiments.rst b/docs/set-of-experiments.rst index a85f57824..a4e01437c 100644 --- a/docs/set-of-experiments.rst +++ b/docs/set-of-experiments.rst @@ -1,3 +1,8 @@ +.. Copyright 2023 Lawrence Livermore National Security, LLC and other + Benchpark Project Developers. See the top-level COPYRIGHT file for details. + + SPDX-License-Identifier: Apache-2.0 + ============== Working with a set of experiments ============== diff --git a/experiments/amg2023/cuda/execute_experiment.tpl b/experiments/amg2023/cuda/execute_experiment.tpl index 3c846b037..1343ccb0c 100755 --- a/experiments/amg2023/cuda/execute_experiment.tpl +++ b/experiments/amg2023/cuda/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_timeout} diff --git a/experiments/amg2023/openmp/execute_experiment.tpl b/experiments/amg2023/openmp/execute_experiment.tpl index 26ff98b18..b803b4898 100755 --- a/experiments/amg2023/openmp/execute_experiment.tpl +++ b/experiments/amg2023/openmp/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/amg2023/openmp/ramble.yaml b/experiments/amg2023/openmp/ramble.yaml index 95b5bf028..a6612e3d1 100644 --- a/experiments/amg2023/openmp/ramble.yaml +++ b/experiments/amg2023/openmp/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml diff --git a/experiments/amg2023/rocm/execute_experiment.tpl b/experiments/amg2023/rocm/execute_experiment.tpl index 115df1c45..af9908524 100755 --- a/experiments/amg2023/rocm/execute_experiment.tpl +++ b/experiments/amg2023/rocm/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/amg2023/rocm/ramble.yaml b/experiments/amg2023/rocm/ramble.yaml index daae0d3a5..d1ec1dda2 100644 --- a/experiments/amg2023/rocm/ramble.yaml +++ b/experiments/amg2023/rocm/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: config: deprecated: true diff --git a/experiments/hpcc/mpi-only/execute_experiment.tpl b/experiments/hpcc/mpi-only/execute_experiment.tpl index f2026d0e2..b803b4898 100755 --- a/experiments/hpcc/mpi-only/execute_experiment.tpl +++ b/experiments/hpcc/mpi-only/execute_experiment.tpl @@ -1,9 +1,9 @@ +#!/bin/bash # Copyright 2023 Lawrence Livermore National Security, LLC and other # Benchpark Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: Apache-2.0 -#!/bin/bash {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/hpcg/openmp/execute_experiment.tpl b/experiments/hpcg/openmp/execute_experiment.tpl index 11bf418a9..d24437712 100755 --- a/experiments/hpcg/openmp/execute_experiment.tpl +++ b/experiments/hpcg/openmp/execute_experiment.tpl @@ -1,9 +1,9 @@ +#!/bin/bash # Copyright 2023 Lawrence Livermore National Security, LLC and other # Benchpark Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: Apache-2.0 -#!/bin/bash {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/hpl/openmp/execute_experiment.tpl b/experiments/hpl/openmp/execute_experiment.tpl index 26ff98b18..b803b4898 100755 --- a/experiments/hpl/openmp/execute_experiment.tpl +++ b/experiments/hpl/openmp/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/hpl/openmp/ramble.yaml b/experiments/hpl/openmp/ramble.yaml index 153ab13d4..05462a12a 100644 --- a/experiments/hpl/openmp/ramble.yaml +++ b/experiments/hpl/openmp/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml diff --git a/experiments/lammps/openmp/execute_experiment.tpl b/experiments/lammps/openmp/execute_experiment.tpl index 07a2c3dde..d24437712 100644 --- a/experiments/lammps/openmp/execute_experiment.tpl +++ b/experiments/lammps/openmp/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/lammps/openmp/ramble.yaml b/experiments/lammps/openmp/ramble.yaml index 7d5af6795..5c1bd7890 100644 --- a/experiments/lammps/openmp/ramble.yaml +++ b/experiments/lammps/openmp/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml diff --git a/experiments/md-test/mpi-only/execute_experiment.tpl b/experiments/md-test/mpi-only/execute_experiment.tpl index f2026d0e2..b803b4898 100755 --- a/experiments/md-test/mpi-only/execute_experiment.tpl +++ b/experiments/md-test/mpi-only/execute_experiment.tpl @@ -1,9 +1,9 @@ +#!/bin/bash # Copyright 2023 Lawrence Livermore National Security, LLC and other # Benchpark Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: Apache-2.0 -#!/bin/bash {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/osu-micro-benchmarks/mpi-only/execute_experiment.tpl b/experiments/osu-micro-benchmarks/mpi-only/execute_experiment.tpl index 07a2c3dde..d24437712 100644 --- a/experiments/osu-micro-benchmarks/mpi-only/execute_experiment.tpl +++ b/experiments/osu-micro-benchmarks/mpi-only/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/osu-micro-benchmarks/mpi-only/ramble.yaml b/experiments/osu-micro-benchmarks/mpi-only/ramble.yaml index f40d3e327..7dc7325fb 100644 --- a/experiments/osu-micro-benchmarks/mpi-only/ramble.yaml +++ b/experiments/osu-micro-benchmarks/mpi-only/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml @@ -32,4 +37,4 @@ ramble: osu-micro-benchmarks: packages: - default-mpi - - osu-micro-benchmarks \ No newline at end of file + - osu-micro-benchmarks diff --git a/experiments/raja-perf/cuda/execute_experiment.tpl b/experiments/raja-perf/cuda/execute_experiment.tpl index 07a2c3dde..d24437712 100644 --- a/experiments/raja-perf/cuda/execute_experiment.tpl +++ b/experiments/raja-perf/cuda/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/raja-perf/mpi-only/execute_experiment.tpl b/experiments/raja-perf/mpi-only/execute_experiment.tpl index 07a2c3dde..d24437712 100644 --- a/experiments/raja-perf/mpi-only/execute_experiment.tpl +++ b/experiments/raja-perf/mpi-only/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/raja-perf/mpi-only/ramble.yaml b/experiments/raja-perf/mpi-only/ramble.yaml index 79d6b3254..6e19371c1 100644 --- a/experiments/raja-perf/mpi-only/ramble.yaml +++ b/experiments/raja-perf/mpi-only/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml diff --git a/experiments/raja-perf/openmp/execute_experiment.tpl b/experiments/raja-perf/openmp/execute_experiment.tpl index 07a2c3dde..d24437712 100644 --- a/experiments/raja-perf/openmp/execute_experiment.tpl +++ b/experiments/raja-perf/openmp/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/raja-perf/openmp/ramble.yaml b/experiments/raja-perf/openmp/ramble.yaml index 521c266ff..648952a40 100644 --- a/experiments/raja-perf/openmp/ramble.yaml +++ b/experiments/raja-perf/openmp/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml diff --git a/experiments/raja-perf/rocm/execute_experiment.tpl b/experiments/raja-perf/rocm/execute_experiment.tpl index 07a2c3dde..d24437712 100644 --- a/experiments/raja-perf/rocm/execute_experiment.tpl +++ b/experiments/raja-perf/rocm/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/raja-perf/rocm/ramble.yaml b/experiments/raja-perf/rocm/ramble.yaml index 44bab2eab..925003c92 100644 --- a/experiments/raja-perf/rocm/ramble.yaml +++ b/experiments/raja-perf/rocm/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml diff --git a/experiments/saxpy/cuda/execute_experiment.tpl b/experiments/saxpy/cuda/execute_experiment.tpl index 07a2c3dde..d24437712 100755 --- a/experiments/saxpy/cuda/execute_experiment.tpl +++ b/experiments/saxpy/cuda/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/saxpy/openmp/execute_experiment.tpl b/experiments/saxpy/openmp/execute_experiment.tpl index 07a2c3dde..d24437712 100755 --- a/experiments/saxpy/openmp/execute_experiment.tpl +++ b/experiments/saxpy/openmp/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/saxpy/openmp/ramble.yaml b/experiments/saxpy/openmp/ramble.yaml index 9bf2fa569..96e6efa04 100644 --- a/experiments/saxpy/openmp/ramble.yaml +++ b/experiments/saxpy/openmp/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml diff --git a/experiments/saxpy/rocm/execute_experiment.tpl b/experiments/saxpy/rocm/execute_experiment.tpl index 07a2c3dde..d24437712 100755 --- a/experiments/saxpy/rocm/execute_experiment.tpl +++ b/experiments/saxpy/rocm/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/saxpy/rocm/ramble.yaml b/experiments/saxpy/rocm/ramble.yaml index 1bdd3ac01..b5657b34d 100644 --- a/experiments/saxpy/rocm/ramble.yaml +++ b/experiments/saxpy/rocm/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml diff --git a/experiments/stream/openmp/execute_experiment.tpl b/experiments/stream/openmp/execute_experiment.tpl index 07a2c3dde..d24437712 100755 --- a/experiments/stream/openmp/execute_experiment.tpl +++ b/experiments/stream/openmp/execute_experiment.tpl @@ -1,4 +1,9 @@ #!/bin/bash +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + {batch_nodes} {batch_ranks} {batch_timeout} diff --git a/experiments/stream/openmp/ramble.yaml b/experiments/stream/openmp/ramble.yaml index 533a5574e..da4112483 100644 --- a/experiments/stream/openmp/ramble.yaml +++ b/experiments/stream/openmp/ramble.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + ramble: include: - ./configs/spack.yaml diff --git a/repo/amg2023/application.py b/repo/amg2023/application.py index 00905141f..3baef63b4 100644 --- a/repo/amg2023/application.py +++ b/repo/amg2023/application.py @@ -1,10 +1,7 @@ -# Copyright 2022 Google LLC +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. # -# Licensed under the Apache License, Version 2.0 or the MIT license -# , at your -# option. This file may not be copied, modified, or distributed -# except according to those terms. +# SPDX-License-Identifier: Apache-2.0 from ramble.appkit import * diff --git a/repo/cray-mpich/package.py b/repo/cray-mpich/package.py index f0358be31..46bbba1da 100644 --- a/repo/cray-mpich/package.py +++ b/repo/cray-mpich/package.py @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + from spack.package import * from spack.pkg.builtin.cray_mpich import CrayMpich as BuiltinCM diff --git a/repo/cublas/package.py b/repo/cublas/package.py index 33138222b..91aa07e0d 100644 --- a/repo/cublas/package.py +++ b/repo/cublas/package.py @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + from spack.package import * class Cublas(Package): diff --git a/repo/hypre/package.py b/repo/hypre/package.py index e0d4b2a3e..7255e10d5 100644 --- a/repo/hypre/package.py +++ b/repo/hypre/package.py @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + from spack.package import * from spack.pkg.builtin.hypre import Hypre as BuiltinHypre diff --git a/repo/lapack-xl/package.py b/repo/lapack-xl/package.py index 9348b3fc4..4b4cdee0a 100644 --- a/repo/lapack-xl/package.py +++ b/repo/lapack-xl/package.py @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + from spack.package import * class LapackXl(Package): diff --git a/repo/raja-perf/application.py b/repo/raja-perf/application.py index b7cf1b7ba..42864ecba 100644 --- a/repo/raja-perf/application.py +++ b/repo/raja-perf/application.py @@ -1,10 +1,7 @@ -# Copyright 2022 Google LLC +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. # -# Licensed under the Apache License, Version 2.0 or the MIT license -# , at your -# option. This file may not be copied, modified, or distributed -# except according to those terms. +# SPDX-License-Identifier: Apache-2.0 from ramble.appkit import * diff --git a/repo/raja-perf/package.py b/repo/raja-perf/package.py index c116f1339..9e2b8d02e 100644 --- a/repo/raja-perf/package.py +++ b/repo/raja-perf/package.py @@ -1,7 +1,7 @@ -# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other -# Spack Project Developers. See the top-level COPYRIGHT file for details. +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. # -# SPDX-License-Identifier: (Apache-2.0 OR MIT) +# SPDX-License-Identifier: Apache-2.0 import os import socket diff --git a/repo/repo.yaml b/repo/repo.yaml index 23ed59a45..3398d1438 100644 --- a/repo/repo.yaml +++ b/repo/repo.yaml @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + repo: namespace: benchpark subdirectory: '' diff --git a/repo/rocblas/package.py b/repo/rocblas/package.py index 4226c03da..084a88276 100644 --- a/repo/rocblas/package.py +++ b/repo/rocblas/package.py @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + from spack.package import * from spack.pkg.builtin.rocblas import Rocblas as BuiltinRocblas diff --git a/repo/rocsolver/package.py b/repo/rocsolver/package.py index 5ed4d642c..1a3b33539 100644 --- a/repo/rocsolver/package.py +++ b/repo/rocsolver/package.py @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + from spack.package import * from spack.pkg.builtin.rocsolver import Rocsolver as BuiltinRocsolver diff --git a/repo/saxpy/CMakeLists.txt b/repo/saxpy/CMakeLists.txt index 33a538dca..8382198cd 100644 --- a/repo/saxpy/CMakeLists.txt +++ b/repo/saxpy/CMakeLists.txt @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + cmake_minimum_required(VERSION 3.23) option(USE_OPNEMP "Use OpenMP" OFF) diff --git a/repo/saxpy/application.py b/repo/saxpy/application.py index 220dbdf4a..19ea06c80 100644 --- a/repo/saxpy/application.py +++ b/repo/saxpy/application.py @@ -1,10 +1,7 @@ -# Copyright 2022 Google LLC +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. # -# Licensed under the Apache License, Version 2.0 or the MIT license -# , at your -# option. This file may not be copied, modified, or distributed -# except according to those terms. +# SPDX-License-Identifier: Apache-2.0 from ramble.appkit import * diff --git a/repo/saxpy/package.py b/repo/saxpy/package.py index 4d426389a..2e96ea643 100644 --- a/repo/saxpy/package.py +++ b/repo/saxpy/package.py @@ -1,3 +1,8 @@ +# Copyright 2023 Lawrence Livermore National Security, LLC and other +# Benchpark Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: Apache-2.0 + from spack.package import * import os import shutil diff --git a/repo/saxpy/saxpy.cc b/repo/saxpy/saxpy.cc index 7928457f4..74f9f8a03 100644 --- a/repo/saxpy/saxpy.cc +++ b/repo/saxpy/saxpy.cc @@ -1,3 +1,8 @@ +// Copyright 2023 Lawrence Livermore National Security, LLC and other +// Benchpark Project Developers. See the top-level COPYRIGHT file for details. +// +// SPDX-License-Identifier: Apache-2.0 + #include #include #include