From 20b567caac2c9ca94560f9ec986528e7023073e9 Mon Sep 17 00:00:00 2001 From: gilbertlee-amd <44450918+gilbertlee-amd@users.noreply.github.com> Date: Wed, 7 Jun 2023 09:45:03 -0600 Subject: [PATCH] Updating NOTICES.txt and LICENSE.txt (#770) --- .jenkins/common.groovy | 1 + .jenkins/extended.groovy | 1 + .jenkins/precheckin.groovy | 2 + .jenkins/staticanalysis.groovy | 5 +- .jenkins/staticlibrary.groovy | 19 +++--- LICENSE.txt | 2 +- NOTICES.txt | 113 +++++++++++++++++---------------- tools/scripts/rccl_bw_test.py | 25 ++++++-- 8 files changed, 97 insertions(+), 71 deletions(-) diff --git a/.jenkins/common.groovy b/.jenkins/common.groovy index 24cefcdb47..55768304ee 100644 --- a/.jenkins/common.groovy +++ b/.jenkins/common.groovy @@ -1,3 +1,4 @@ +// Copyright (c) 2020-2023 Advanced Micro Devices, Inc. All rights reserved. // This file is for internal AMD use. // If you are interested in running your own Jenkins, please raise a github issue for assistance. diff --git a/.jenkins/extended.groovy b/.jenkins/extended.groovy index 7e2f2f123e..6133305f5f 100644 --- a/.jenkins/extended.groovy +++ b/.jenkins/extended.groovy @@ -1,4 +1,5 @@ #!/usr/bin/env groovy +// Copyright (c) 2020-2023 Advanced Micro Devices, Inc. All rights reserved. // This shared library is available at https://github.com/ROCmSoftwarePlatform/rocJENKINS/ @Library('rocJenkins@pong') _ diff --git a/.jenkins/precheckin.groovy b/.jenkins/precheckin.groovy index b093ba41d8..b10fc118fc 100644 --- a/.jenkins/precheckin.groovy +++ b/.jenkins/precheckin.groovy @@ -1,4 +1,6 @@ #!/usr/bin/env groovy + +// Copyright (c) 2020-2023 Advanced Micro Devices, Inc. All rights reserved. // This shared library is available at https://github.com/ROCmSoftwarePlatform/rocJENKINS/ @Library('rocJenkins@pong') _ diff --git a/.jenkins/staticanalysis.groovy b/.jenkins/staticanalysis.groovy index 7d1c5ea431..44f5a49fc1 100644 --- a/.jenkins/staticanalysis.groovy +++ b/.jenkins/staticanalysis.groovy @@ -1,4 +1,5 @@ #!/usr/bin/env groovy +// Copyright (c) 2020-2023 Advanced Micro Devices, Inc. All rights reserved. // This shared library is available at https://github.com/ROCmSoftwarePlatform/rocJENKINS/ @Library('rocJenkins@pong') _ @@ -14,7 +15,7 @@ def runCompileCommand(platform, project, jobName, boolean debug=false) project.paths.construct_build_prefix() } -def runCI = +def runCI = { nodeDetails, jobName-> @@ -36,7 +37,7 @@ def runCI = buildProject(prj , formatCheck, nodes.dockerArray, compileCommand, null, null, staticAnalysis) } -ci: { +ci: { String urlJobName = auxiliary.getTopJobName(env.BUILD_URL) properties(auxiliary.addCommonProperties([pipelineTriggers([cron('0 1 * * 6')])])) diff --git a/.jenkins/staticlibrary.groovy b/.jenkins/staticlibrary.groovy index 2ab669613d..e75ff7ec97 100644 --- a/.jenkins/staticlibrary.groovy +++ b/.jenkins/staticlibrary.groovy @@ -1,4 +1,5 @@ #!/usr/bin/env groovy +// Copyright (c) 2020-2023 Advanced Micro Devices, Inc. All rights reserved. @Library('rocJenkins@pong') _ import com.amd.project.* import com.amd.docker.* @@ -7,18 +8,18 @@ import java.nio.file.Path; def runCI = { nodeDetails, jobName-> - + def prj = new rocProject('rccl', 'Static Library PreCheckin') prj.timeout.test = 1440 prj.paths.build_command = './install.sh -t --static' - + def nodes = new dockerNodes(nodeDetails, jobName, prj) def commonGroovy boolean formatCheck = false - + def compileCommand = { platform, project-> @@ -27,7 +28,7 @@ def runCI = commonGroovy.runCompileCommand(platform, project, jobName) } - + def testCommand = { platform, project-> @@ -45,20 +46,20 @@ def runCI = buildProject(prj, formatCheck, nodes.dockerArray, compileCommand, testCommand, packageCommand) } -ci: { +ci: { String urlJobName = auxiliary.getTopJobName(env.BUILD_URL) - def propertyList = ["compute-rocm-dkms-no-npi":[pipelineTriggers([cron('0 1 * * 0')])], + def propertyList = ["compute-rocm-dkms-no-npi":[pipelineTriggers([cron('0 1 * * 0')])], "compute-rocm-dkms-no-npi-hipclang":[pipelineTriggers([cron('0 1 * * 0')])], "rocm-docker":[]] propertyList = auxiliary.appendPropertyList(propertyList) - def jobNameList = ["compute-rocm-dkms-no-npi":([ubuntu16:['gfx900'],centos7:['gfx906'],sles15sp1:['gfx908']]), - "compute-rocm-dkms-no-npi-hipclang":([ubuntu16:['gfx900'],centos7:['gfx906'],sles15sp1:['gfx908']]), + def jobNameList = ["compute-rocm-dkms-no-npi":([ubuntu16:['gfx900'],centos7:['gfx906'],sles15sp1:['gfx908']]), + "compute-rocm-dkms-no-npi-hipclang":([ubuntu16:['gfx900'],centos7:['gfx906'],sles15sp1:['gfx908']]), "rocm-docker":([ubuntu16:['gfx900'],centos7:['gfx906'],sles15sp1:['gfx908']])] jobNameList = auxiliary.appendJobNameList(jobNameList) - propertyList.each + propertyList.each { jobName, property-> if (urlJobName == jobName) diff --git a/LICENSE.txt b/LICENSE.txt index 9138f86bf8..a511ac00cc 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -4,7 +4,7 @@ Attributions Contains contributions from NVIDIA. Copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved. -Modifications Copyright (c) 2019-2022 Advanced Micro Devices, Inc. All rights reserved. +Modifications Copyright (c) 2019-2023 Advanced Micro Devices, Inc. All rights reserved. Modifications Copyright (c) Microsoft Corporation. Licensed under the MIT License. Redistribution and use in source and binary forms, with or without diff --git a/NOTICES.txt b/NOTICES.txt index 75794b0934..5fe8f31a80 100644 --- a/NOTICES.txt +++ b/NOTICES.txt @@ -1,66 +1,69 @@ Notices and Licenses file _______________________________________________________________ -Dependencies on nvidia-nccl v2.3.7-1 (BSD3) -Copyright (c) 2015-2018, NVIDIA CORPORATION. -Modifications Copyright (c) 2019-2020 Advanced Micro Devices, Inc. +Dependencies on nvidia-nccl v2.17.1-1 (BSD3) -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 NVIDIA CORPORATION, Lawrence Berkeley National - Laboratory, the U.S. Department of Energy, nor the names of their - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. +Copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved. +Modifications Copyright (c) 2019-2023 Advanced Micro Devices, Inc. All rights reserved. +Modifications Copyright (c) Microsoft Corporation. Licensed under the MIT License. -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``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 OWNER 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. + 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 NVIDIA CORPORATION, Lawrence Berkeley National + Laboratory, the U.S. Department of Energy, nor the names of their + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. -The U.S. Department of Energy funded the development of this software -under subcontract 7078610 with Lawrence Berkeley National Laboratory. + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``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 OWNER 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. + + The U.S. Department of Energy funded the development of this software + under subcontract 7078610 with Lawrence Berkeley National Laboratory. -nvidia-nccl v2.3.7-1 (BSD2) -Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved. +This code also includes files from the NVIDIA Tools Extension SDK project. -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 NVIDIA CORPORATION, Lawrence Berkeley National - Laboratory, the U.S. Department of Energy, nor the names of their - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. +See: -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``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 OWNER 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. + https://github.com/NVIDIA/NVTX -The U.S. Department of Energy funded the development of this software -under subcontract 7078610 with Lawrence Berkeley National Laboratory. +for more information and license details. + +_______________________________________________________________ + +Dependencies on NPKit (MIT License) + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/tools/scripts/rccl_bw_test.py b/tools/scripts/rccl_bw_test.py index 3e7177a2bb..2fca1a8cab 100644 --- a/tools/scripts/rccl_bw_test.py +++ b/tools/scripts/rccl_bw_test.py @@ -1,5 +1,26 @@ #!/usr/bin/python3 +# Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. +# Licensed under the MIT License. +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: + +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + import numpy as np import os import argparse @@ -50,7 +71,3 @@ for i in range (1, args.test_iteration): res = os.popen(cmd) output = res.read() print(output) - - - -