From a0a897ea2480542d4fec5c25196dc1ba3fc26d2a Mon Sep 17 00:00:00 2001 From: David Beckingsale Date: Wed, 16 Oct 2019 07:25:22 -0700 Subject: [PATCH] Switch to SPDX license --- COPYRIGHT | 15 +++++++ LICENSE | 4 +- benchmarks/chai_arraymanager_benchmarks.cpp | 46 +++---------------- benchmarks/chai_benchmark_utils.hpp | 46 +++---------------- benchmarks/chai_managedarray_benchmarks.cpp | 46 +++---------------- docs/sphinx/conf.py | 49 +++------------------ examples/chai-umpire-allocators.cpp | 46 +++---------------- examples/ex1.cpp | 46 +++---------------- examples/example.cpp | 6 +++ scripts/apply-license-info.sh | 35 +++++++++++++++ scripts/format-source.sh | 6 +++ scripts/license.txt | 4 ++ scripts/make_release_tarball.sh | 48 +++----------------- scripts/travis/build_and_test.sh | 6 +++ scripts/travis/install_llvm.sh | 6 +++ scripts/update-copyright-year.sh | 49 +++------------------ src/chai/ArrayManager.cpp | 46 +++---------------- src/chai/ArrayManager.hpp | 46 +++---------------- src/chai/ChaiMacros.hpp | 46 +++---------------- src/chai/ExecutionSpaces.hpp | 46 +++---------------- src/chai/ManagedArray.hpp | 46 +++---------------- src/chai/PointerRecord.hpp | 46 +++---------------- src/chai/Types.hpp | 46 +++---------------- src/util/forall.hpp | 46 +++---------------- tests/integration/managed_array_tests.cpp | 48 +++----------------- tests/unit/array_manager_unit_tests.cpp | 46 +++---------------- tests/unit/managed_array_unit_tests.cpp | 46 +++---------------- 27 files changed, 178 insertions(+), 788 deletions(-) create mode 100644 COPYRIGHT create mode 100755 scripts/apply-license-info.sh create mode 100644 scripts/license.txt diff --git a/COPYRIGHT b/COPYRIGHT new file mode 100644 index 00000000..3bc5dea5 --- /dev/null +++ b/COPYRIGHT @@ -0,0 +1,15 @@ +Intellectual Property Notice +------------------------------ + +CHAI is licensed under the BSD 3 Clause license (LICENSE or +https://opensource.org/licenses/BSD-3-Clause). + +Copyrights and patents in the CHAI project are retained by contributors. No +copyright assignment is required to contribute to CHAI. + +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/LICENSE b/LICENSE index 89442d9a..8f8fd45a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,4 @@ -BSD 3-Clause License - -Copyright (c) 2018, Lawrence Livermore National Security, LLC +Copyright (c) 2016-2019, Lawrence Livermore National Security, LLC. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/chai_arraymanager_benchmarks.cpp b/benchmarks/chai_arraymanager_benchmarks.cpp index 78430582..c58a4987 100644 --- a/benchmarks/chai_arraymanager_benchmarks.cpp +++ b/benchmarks/chai_arraymanager_benchmarks.cpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #include #include "benchmark/benchmark_api.h" diff --git a/benchmarks/chai_benchmark_utils.hpp b/benchmarks/chai_benchmark_utils.hpp index 659ff197..977f5b65 100644 --- a/benchmarks/chai_benchmark_utils.hpp +++ b/benchmarks/chai_benchmark_utils.hpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #ifndef CHAI_chai_benchmark_utils_HPP #define CHAI_chai_benchmark_utils_HPP diff --git a/benchmarks/chai_managedarray_benchmarks.cpp b/benchmarks/chai_managedarray_benchmarks.cpp index 74409725..4fcb33bf 100644 --- a/benchmarks/chai_managedarray_benchmarks.cpp +++ b/benchmarks/chai_managedarray_benchmarks.cpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #include #include "benchmark/benchmark_api.h" diff --git a/docs/sphinx/conf.py b/docs/sphinx/conf.py index e7e4a883..bd3f0ee1 100644 --- a/docs/sphinx/conf.py +++ b/docs/sphinx/conf.py @@ -1,48 +1,11 @@ +############################################################################## +# Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +# project contributors. See the COPYRIGHT file for details. +# +# SPDX-License-Identifier: BSD-3-Clause +############################################################################## # -*- coding: utf-8 -*- -####################################################################### -# Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -# rights reserved. -# -# Produced at the Lawrence Livermore National Laboratory -# -# This file is part of CHAI. -# -# LLNL-CODE-705877 -# -# For details, see https:://github.com/LLNL/CHAI -# Please also see the NOTICE and LICENSE files. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the -# distribution. -# -# - Neither the name of the LLNS/LLNL nor the names of its contributors -# may be used to endorse or promote products derived from this -# software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -# WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -####################################################################### - # # CHAI documentation build configuration file, created by # sphinx-quickstart on Thu Mar 30 12:14:09 2017. diff --git a/examples/chai-umpire-allocators.cpp b/examples/chai-umpire-allocators.cpp index 4486a56c..15fa4fa9 100644 --- a/examples/chai-umpire-allocators.cpp +++ b/examples/chai-umpire-allocators.cpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #include "umpire/ResourceManager.hpp" #include "umpire/strategy/DynamicPool.hpp" diff --git a/examples/ex1.cpp b/examples/ex1.cpp index 11479716..fdec4b3b 100644 --- a/examples/ex1.cpp +++ b/examples/ex1.cpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #include "chai/ManagedArray.hpp" #include "chai/util/forall.hpp" diff --git a/examples/example.cpp b/examples/example.cpp index a7a3b2d6..e3405160 100644 --- a/examples/example.cpp +++ b/examples/example.cpp @@ -1,3 +1,9 @@ +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. +// +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// // --------------------------------------------------------------------- // Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All // rights reserved. diff --git a/scripts/apply-license-info.sh b/scripts/apply-license-info.sh new file mode 100755 index 00000000..99f7aea3 --- /dev/null +++ b/scripts/apply-license-info.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env zsh +############################################################################## +# Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +# project contributors. See the COPYRIGHT file for details. +# +# SPDX-License-Identifier: BSD-3-Clause +############################################################################## + +setopt extended_glob + +RED="\033[1;31m" +GREEN="\033[1;32m" +NOCOLOR="\033[0m" + +LIC_CMD=$(which lic) +if [ ! $LIC_CMD ]; then + echo "${RED} [!] This script requires the lic command." + exit 255 +fi + +echo "Applying licenses to files" + +files_no_license=$(grep -L 'This file is part of Umpire.' \ + benchmarks/**/*(^/) \ + cmake/**/*(^/) \ + docs/**/*~*rst(^/)\ + examples/**/*(^/) \ + scripts/**/*(^/) \ + src/**/*~*tpl*(^/) \ + tests/**/*(^/) \ + CMakeLists.txt) + +echo $files_no_license | xargs $LIC_CMD -f scripts/license.txt + +echo "${GREEN} [Ok] License text applied. ${NOCOLOR}" diff --git a/scripts/format-source.sh b/scripts/format-source.sh index f14ab078..0206cfbe 100755 --- a/scripts/format-source.sh +++ b/scripts/format-source.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash +############################################################################## +# Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +# project contributors. See the COPYRIGHT file for details. +# +# SPDX-License-Identifier: BSD-3-Clause +############################################################################## find . -type f -iname '*.hpp' -o -iname '*.cpp' | grep -v -e blt -e tpl | xargs clang-format -i diff --git a/scripts/license.txt b/scripts/license.txt new file mode 100644 index 00000000..5b1c9027 --- /dev/null +++ b/scripts/license.txt @@ -0,0 +1,4 @@ +Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +project contributors. See the COPYRIGHT file for details. + +SPDX-License-Identifier: BSD-3-Clause diff --git a/scripts/make_release_tarball.sh b/scripts/make_release_tarball.sh index a8deba89..6a062604 100755 --- a/scripts/make_release_tarball.sh +++ b/scripts/make_release_tarball.sh @@ -1,46 +1,10 @@ #!/bin/bash -####################################################################### -# Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -# rights reserved. -# -# Produced at the Lawrence Livermore National Laboratory. -# -# This file is part of CHAI. -# -# LLNL-CODE-705877 -# -# For details, see https:://github.com/LLNL/CHAI -# Please also see the NOTICE and LICENSE files. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the -# distribution. -# -# - Neither the name of the LLNS/LLNL nor the names of its contributors -# may be used to endorse or promote products derived from this -# software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -# WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -####################################################################### +############################################################################## +# Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +# project contributors. See the COPYRIGHT file for details. +# +# SPDX-License-Identifier: BSD-3-Clause +############################################################################## TAR_CMD=gtar VERSION=1.2.0 diff --git a/scripts/travis/build_and_test.sh b/scripts/travis/build_and_test.sh index 1dd79681..44eb570c 100755 --- a/scripts/travis/build_and_test.sh +++ b/scripts/travis/build_and_test.sh @@ -1,4 +1,10 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +# project contributors. See the COPYRIGHT file for details. +# +# SPDX-License-Identifier: BSD-3-Clause +############################################################################## function or_die () { "$@" diff --git a/scripts/travis/install_llvm.sh b/scripts/travis/install_llvm.sh index fb6a87fb..2b6c69fd 100755 --- a/scripts/travis/install_llvm.sh +++ b/scripts/travis/install_llvm.sh @@ -1,3 +1,9 @@ +############################################################################## +# Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +# project contributors. See the COPYRIGHT file for details. +# +# SPDX-License-Identifier: BSD-3-Clause +############################################################################## # /bin/bash export LLVM_PATH=${HOME}/llvm/clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-14.04 diff --git a/scripts/update-copyright-year.sh b/scripts/update-copyright-year.sh index 4bf2492e..6b411e07 100755 --- a/scripts/update-copyright-year.sh +++ b/scripts/update-copyright-year.sh @@ -1,47 +1,10 @@ #!/usr/bin/env zsh -####################################################################### -# Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -# rights reserved. -# -# Produced at the Lawrence Livermore National Laboratory. -# -# This file is part of CHAI. -# -# LLNL-CODE-705877 -# -# For details, see https:://github.com/LLNL/CHAI -# Please also see the NOTICE and LICENSE files. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# - Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the -# distribution. -# -# - Neither the name of the LLNS/LLNL nor the names of its contributors -# may be used to endorse or promote products derived from this -# software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -# WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. -####################################################################### - +############################################################################## +# Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +# project contributors. See the COPYRIGHT file for details. +# +# SPDX-License-Identifier: BSD-3-Clause +############################################################################## # This is used for the ~*tpl* line to ignore files in bundled tpls setopt extended_glob diff --git a/src/chai/ArrayManager.cpp b/src/chai/ArrayManager.cpp index 54a32176..5effcbc9 100644 --- a/src/chai/ArrayManager.cpp +++ b/src/chai/ArrayManager.cpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2017, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #include "chai/ArrayManager.hpp" #include "chai/config.hpp" diff --git a/src/chai/ArrayManager.hpp b/src/chai/ArrayManager.hpp index 82221d24..14e4c420 100644 --- a/src/chai/ArrayManager.hpp +++ b/src/chai/ArrayManager.hpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #ifndef CHAI_ArrayManager_HPP #define CHAI_ArrayManager_HPP diff --git a/src/chai/ChaiMacros.hpp b/src/chai/ChaiMacros.hpp index e05dac6d..14cbaae7 100644 --- a/src/chai/ChaiMacros.hpp +++ b/src/chai/ChaiMacros.hpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #ifndef CHAI_ChaiMacros_HPP #define CHAI_ChaiMacros_HPP diff --git a/src/chai/ExecutionSpaces.hpp b/src/chai/ExecutionSpaces.hpp index f75ec0ec..02f1c889 100644 --- a/src/chai/ExecutionSpaces.hpp +++ b/src/chai/ExecutionSpaces.hpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #ifndef CHAI_ExecutionSpaces_HPP #define CHAI_ExecutionSpaces_HPP diff --git a/src/chai/ManagedArray.hpp b/src/chai/ManagedArray.hpp index c4593549..37d16e91 100644 --- a/src/chai/ManagedArray.hpp +++ b/src/chai/ManagedArray.hpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #ifndef CHAI_ManagedArray_HPP #define CHAI_ManagedArray_HPP diff --git a/src/chai/PointerRecord.hpp b/src/chai/PointerRecord.hpp index da4f344e..9250a8e0 100644 --- a/src/chai/PointerRecord.hpp +++ b/src/chai/PointerRecord.hpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #ifndef CHAI_PointerRecord_HPP #define CHAI_PointerRecord_HPP diff --git a/src/chai/Types.hpp b/src/chai/Types.hpp index 0937e473..37a57b86 100644 --- a/src/chai/Types.hpp +++ b/src/chai/Types.hpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #ifndef CHAI_Types_HPP #define CHAI_Types_HPP diff --git a/src/util/forall.hpp b/src/util/forall.hpp index 4cb537f0..f1ae1835 100644 --- a/src/util/forall.hpp +++ b/src/util/forall.hpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #ifndef CHAI_forall_HPP #define CHAI_forall_HPP diff --git a/tests/integration/managed_array_tests.cpp b/tests/integration/managed_array_tests.cpp index 842293e7..506b7c70 100644 --- a/tests/integration/managed_array_tests.cpp +++ b/tests/integration/managed_array_tests.cpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #include "gtest/gtest.h" #define GPU_TEST(X, Y) \ @@ -1394,4 +1358,4 @@ GPU_TEST(ManagedArray, CopyZero) array.free(); } -#endif \ No newline at end of file +#endif diff --git a/tests/unit/array_manager_unit_tests.cpp b/tests/unit/array_manager_unit_tests.cpp index 66edf586..b50d0cce 100644 --- a/tests/unit/array_manager_unit_tests.cpp +++ b/tests/unit/array_manager_unit_tests.cpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #include "gtest/gtest.h" #include "chai/ArrayManager.hpp" diff --git a/tests/unit/managed_array_unit_tests.cpp b/tests/unit/managed_array_unit_tests.cpp index f893027d..50fb1696 100644 --- a/tests/unit/managed_array_unit_tests.cpp +++ b/tests/unit/managed_array_unit_tests.cpp @@ -1,45 +1,9 @@ -// --------------------------------------------------------------------- -// Copyright (c) 2016-2018, Lawrence Livermore National Security, LLC. All -// rights reserved. +////////////////////////////////////////////////////////////////////////////// +// Copyright (c) 2016-19, Lawrence Livermore National Security, LLC and CHAI +// project contributors. See the COPYRIGHT file for details. // -// Produced at the Lawrence Livermore National Laboratory. -// -// This file is part of CHAI. -// -// LLNL-CODE-705877 -// -// For details, see https:://github.com/LLNL/CHAI -// Please also see the NOTICE and LICENSE files. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// -// - Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the -// distribution. -// -// - Neither the name of the LLNS/LLNL nor the names of its contributors -// may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS -// OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -// AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY -// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// --------------------------------------------------------------------- +// SPDX-License-Identifier: BSD-3-Clause +////////////////////////////////////////////////////////////////////////////// #include "gtest/gtest.h" #define GPU_TEST(X, Y) \