Skip to content

Commit c0fc079

Browse files
Vincent R. Pascuzzimkrainiuk
authored andcommitted
Add LBL license to cuRAND files
1 parent 54703bc commit c0fc079

File tree

9 files changed

+205
-126
lines changed

9 files changed

+205
-126
lines changed

cmake/FindcuRAND.cmake

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
#===============================================================================
2-
# Copyright 2021 Intel Corporation
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing,
11-
# software distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions
14-
# and limitations under the License.
15-
#
16-
#
17-
# SPDX-License-Identifier: Apache-2.0
18-
#===============================================================================
1+
#--===============================================================================
2+
# Intel Math Kernel Library (oneMKL) Copyright (c) 2021, The Regents of
3+
# the University of California, through Lawrence Berkeley National
4+
# Laboratory (subject to receipt of any required approvals from the U.S.
5+
# Dept. of Energy). All rights reserved.
6+
#
7+
# If you have questions about your rights to use or distribute this software,
8+
# please contact Berkeley Lab's Intellectual Property Office at
9+
# IPO@lbl.gov.
10+
#
11+
# NOTICE. This Software was developed under funding from the U.S. Department
12+
# of Energy and the U.S. Government consequently retains certain rights. As
13+
# such, the U.S. Government has been granted for itself and others acting on
14+
# its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
15+
# Software to reproduce, distribute copies to the public, prepare derivative
16+
# works, and perform publicly and display publicly, and to permit others to do so.
17+
#=================================================================================
1918

2019
find_package(CUDA 10.0 REQUIRED)
2120
get_filename_component(SYCL_BINARY_DIR ${CMAKE_CXX_COMPILER} DIRECTORY)
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Intel Math Kernel Library (oneMKL) Copyright (c) 2021, The Regents of
2+
the University of California, through Lawrence Berkeley National
3+
Laboratory (subject to receipt of any required approvals from the U.S.
4+
Dept. of Energy). All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
(1) Redistributions of source code must retain the above copyright notice,
10+
this list of conditions and the following disclaimer.
11+
12+
(2) Redistributions in binary form must reproduce the above copyright
13+
notice, this list of conditions and the following disclaimer in the
14+
documentation and/or other materials provided with the distribution.
15+
16+
(3) Neither the name of the University of California, Lawrence Berkeley
17+
National Laboratory, U.S. Dept. of Energy nor the names of its contributors
18+
may be used to endorse or promote products derived from this software
19+
without specific prior written permission.
20+
21+
22+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32+
POSSIBILITY OF SUCH DAMAGE.
33+
34+
You are under no obligation whatsoever to provide any bug fixes, patches,
35+
or upgrades to the features, functionality or performance of the source
36+
code ("Enhancements") to anyone; however, if you choose to make your
37+
Enhancements available either publicly, or directly to Lawrence Berkeley
38+
National Laboratory, without imposing a separate written license agreement
39+
for such Enhancements, then you hereby grant the following license: a
40+
non-exclusive, royalty-free perpetual license to install, use, modify,
41+
prepare derivative works, incorporate into other computer software,
42+
distribute, and sublicense such enhancements or derivative works thereof,
43+
in binary and source code form.

include/oneapi/mkl/rng/detail/curand/onemkl_rng_curand.hpp

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
/*******************************************************************************
2-
* Copyright 2020-2021 Intel Corporation
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing,
11-
* software distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions
14-
* and limitations under the License.
15-
*
16-
*
17-
* SPDX-License-Identifier: Apache-2.0
18-
*******************************************************************************/
1+
/*********************************************************************************
2+
* Intel Math Kernel Library (oneMKL) Copyright (c) 2021, The Regents of
3+
* the University of California, through Lawrence Berkeley National
4+
* Laboratory (subject to receipt of any required approvals from the U.S.
5+
* Dept. of Energy). All rights reserved.
6+
*
7+
* If you have questions about your rights to use or distribute this software,
8+
* please contact Berkeley Lab's Intellectual Property Office at
9+
* IPO@lbl.gov.
10+
*
11+
* NOTICE. This Software was developed under funding from the U.S. Department
12+
* of Energy and the U.S. Government consequently retains certain rights. As
13+
* such, the U.S. Government has been granted for itself and others acting on
14+
* its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
15+
* Software to reproduce, distribute copies to the public, prepare derivative
16+
* works, and perform publicly and display publicly, and to permit others to do so.
17+
*********************************************************************************/
1918

2019
#ifndef _ONEMKL_RNG_CURAND_HPP_
2120
#define _ONEMKL_RNG_CURAND_HPP_

src/rng/backends/curand/CMakeLists.txt

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
#===============================================================================
2-
# Copyright 2021 Intel Corporation
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing,
11-
# software distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions
14-
# and limitations under the License.
15-
#
16-
#
17-
# SPDX-License-Identifier: Apache-2.0
18-
#===============================================================================
1+
#=================================================================================
2+
# Intel Math Kernel Library (oneMKL) Copyright (c) 2021, The Regents of
3+
# the University of California, through Lawrence Berkeley National
4+
# Laboratory (subject to receipt of any required approvals from the U.S.
5+
# Dept. of Energy). All rights reserved.
6+
#
7+
# If you have questions about your rights to use or distribute this software,
8+
# please contact Berkeley Lab's Intellectual Property Office at
9+
# IPO@lbl.gov.
10+
#
11+
# NOTICE. This Software was developed under funding from the U.S. Department
12+
# of Energy and the U.S. Government consequently retains certain rights. As
13+
# such, the U.S. Government has been granted for itself and others acting on
14+
# its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
15+
# Software to reproduce, distribute copies to the public, prepare derivative
16+
# works, and perform publicly and display publicly, and to permit others to do so.
17+
#=================================================================================
1918

2019
set(LIB_NAME onemkl_rng_curand)
2120
set(LIB_OBJ ${LIB_NAME}_obj)

src/rng/backends/curand/curand_helper.hpp

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
/*******************************************************************************
2-
* Copyright 2020-2021 Intel Corporation
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing,
11-
* software distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions
14-
* and limitations under the License.
15-
*
16-
*
17-
* SPDX-License-Identifier: Apache-2.0
18-
*******************************************************************************/
1+
/*********************************************************************************
2+
* Intel Math Kernel Library (oneMKL) Copyright (c) 2021, The Regents of
3+
* the University of California, through Lawrence Berkeley National
4+
* Laboratory (subject to receipt of any required approvals from the U.S.
5+
* Dept. of Energy). All rights reserved.
6+
*
7+
* If you have questions about your rights to use or distribute this software,
8+
* please contact Berkeley Lab's Intellectual Property Office at
9+
* IPO@lbl.gov.
10+
*
11+
* NOTICE. This Software was developed under funding from the U.S. Department
12+
* of Energy and the U.S. Government consequently retains certain rights. As
13+
* such, the U.S. Government has been granted for itself and others acting on
14+
* its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
15+
* Software to reproduce, distribute copies to the public, prepare derivative
16+
* works, and perform publicly and display publicly, and to permit others to do so.
17+
*********************************************************************************/
1918

2019
/**
2120
* @file curand_helper.cpp : contains the implementation of all the routines
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Intel Math Kernel Library (oneMKL) Copyright (c) 2021, The Regents of
2+
the University of California, through Lawrence Berkeley National
3+
Laboratory (subject to receipt of any required approvals from the U.S.
4+
Dept. of Energy). All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
(1) Redistributions of source code must retain the above copyright notice,
10+
this list of conditions and the following disclaimer.
11+
12+
(2) Redistributions in binary form must reproduce the above copyright
13+
notice, this list of conditions and the following disclaimer in the
14+
documentation and/or other materials provided with the distribution.
15+
16+
(3) Neither the name of the University of California, Lawrence Berkeley
17+
National Laboratory, U.S. Dept. of Energy nor the names of its contributors
18+
may be used to endorse or promote products derived from this software
19+
without specific prior written permission.
20+
21+
22+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32+
POSSIBILITY OF SUCH DAMAGE.
33+
34+
You are under no obligation whatsoever to provide any bug fixes, patches,
35+
or upgrades to the features, functionality or performance of the source
36+
code ("Enhancements") to anyone; however, if you choose to make your
37+
Enhancements available either publicly, or directly to Lawrence Berkeley
38+
National Laboratory, without imposing a separate written license agreement
39+
for such Enhancements, then you hereby grant the following license: a
40+
non-exclusive, royalty-free perpetual license to install, use, modify,
41+
prepare derivative works, incorporate into other computer software,
42+
distribute, and sublicense such enhancements or derivative works thereof,
43+
in binary and source code form.

src/rng/backends/curand/mkl_rng_curand_wrappers.cpp

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
/*******************************************************************************
2-
* Copyright 2021 Intel Corporation
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing,
11-
* software distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions
14-
* and limitations under the License.
15-
*
16-
*
17-
* SPDX-License-Identifier: Apache-2.0
18-
*******************************************************************************/
1+
/*********************************************************************************
2+
* Intel Math Kernel Library (oneMKL) Copyright (c) 2021, The Regents of
3+
* the University of California, through Lawrence Berkeley National
4+
* Laboratory (subject to receipt of any required approvals from the U.S.
5+
* Dept. of Energy). All rights reserved.
6+
*
7+
* If you have questions about your rights to use or distribute this software,
8+
* please contact Berkeley Lab's Intellectual Property Office at
9+
* IPO@lbl.gov.
10+
*
11+
* NOTICE. This Software was developed under funding from the U.S. Department
12+
* of Energy and the U.S. Government consequently retains certain rights. As
13+
* such, the U.S. Government has been granted for itself and others acting on
14+
* its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
15+
* Software to reproduce, distribute copies to the public, prepare derivative
16+
* works, and perform publicly and display publicly, and to permit others to do so.
17+
*********************************************************************************/
1918

2019
#include "rng/function_table.hpp"
2120
#include "oneapi/mkl/rng/detail/curand/onemkl_rng_curand.hpp"

src/rng/backends/curand/mrg32k3a.cpp

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
/*******************************************************************************
2-
* Copyright 2020-2021 Intel Corporation
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing,
11-
* software distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions
14-
* and limitations under the License.
15-
*
16-
*
17-
* SPDX-License-Identifier: Apache-2.0
18-
*******************************************************************************/
1+
/*********************************************************************************
2+
* Intel Math Kernel Library (oneMKL) Copyright (c) 2021, The Regents of
3+
* the University of California, through Lawrence Berkeley National
4+
* Laboratory (subject to receipt of any required approvals from the U.S.
5+
* Dept. of Energy). All rights reserved.
6+
*
7+
* If you have questions about your rights to use or distribute this software,
8+
* please contact Berkeley Lab's Intellectual Property Office at
9+
* IPO@lbl.gov.
10+
*
11+
* NOTICE. This Software was developed under funding from the U.S. Department
12+
* of Energy and the U.S. Government consequently retains certain rights. As
13+
* such, the U.S. Government has been granted for itself and others acting on
14+
* its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
15+
* Software to reproduce, distribute copies to the public, prepare derivative
16+
* works, and perform publicly and display publicly, and to permit others to do so.
17+
*********************************************************************************/
1918

2019
#include <iostream>
2120
#include <CL/sycl.hpp>

src/rng/backends/curand/philox4x32x10.cpp

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
/*******************************************************************************
2-
* Copyright 2020-2021 Intel Corporation
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing,
11-
* software distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions
14-
* and limitations under the License.
15-
*
16-
*
17-
* SPDX-License-Identifier: Apache-2.0
18-
*******************************************************************************/
1+
/*********************************************************************************
2+
* Intel Math Kernel Library (oneMKL) Copyright (c) 2021, The Regents of
3+
* the University of California, through Lawrence Berkeley National
4+
* Laboratory (subject to receipt of any required approvals from the U.S.
5+
* Dept. of Energy). All rights reserved.
6+
*
7+
* If you have questions about your rights to use or distribute this software,
8+
* please contact Berkeley Lab's Intellectual Property Office at
9+
* IPO@lbl.gov.
10+
*
11+
* NOTICE. This Software was developed under funding from the U.S. Department
12+
* of Energy and the U.S. Government consequently retains certain rights. As
13+
* such, the U.S. Government has been granted for itself and others acting on
14+
* its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
15+
* Software to reproduce, distribute copies to the public, prepare derivative
16+
* works, and perform publicly and display publicly, and to permit others to do so.
17+
*********************************************************************************/
1918

2019
#include <iostream>
2120
#include <CL/sycl.hpp>

0 commit comments

Comments
 (0)