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- *********************************************************************************/
1+ /* ******************************************************************************
2+ * cuRAND back-end Copyright (c) 2021, The Regents of the University of
3+ * California, through Lawrence Berkeley National Laboratory (subject to receipt
4+ * of any required approvals from the U.S. Dept. of Energy). All rights
5+ * reserved.
6+ *
7+ * Redistribution and use in source and binary forms, with or without
8+ * modification, are permitted provided that the following conditions are met:
9+ *
10+ * (1) Redistributions of source code must retain the above copyright notice,
11+ * this list of conditions and the following disclaimer.
12+ *
13+ * (2) Redistributions in binary form must reproduce the above copyright
14+ * notice, this list of conditions and the following disclaimer in the
15+ * documentation and/or other materials provided with the distribution.
16+ *
17+ * (3) Neither the name of the University of California, Lawrence Berkeley
18+ * National Laboratory, U.S. Dept. of Energy nor the names of its contributors
19+ * may be used to endorse or promote products derived from this software
20+ * without specific prior written permission.
21+ *
22+ *
23+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33+ * POSSIBILITY OF SUCH DAMAGE.
34+ *
35+ * You are under no obligation whatsoever to provide any bug fixes, patches,
36+ * or upgrades to the features, functionality or performance of the source
37+ * code ("Enhancements") to anyone; however, if you choose to make your
38+ * Enhancements available either publicly, or directly to Lawrence Berkeley
39+ * National Laboratory, without imposing a separate written license agreement
40+ * for such Enhancements, then you hereby grant the following license: a
41+ * non-exclusive, royalty-free perpetual license to install, use, modify,
42+ * prepare derivative works, incorporate into other computer software,
43+ * distribute, and sublicense such enhancements or derivative works thereof,
44+ * in binary and source code form.
45+ *
46+ * If you have questions about your rights to use or distribute this software,
47+ * please contact Berkeley Lab's Intellectual Property Office at
48+ * IPO@lbl.gov.
49+ *
50+ * NOTICE. This Software was developed under funding from the U.S. Department
51+ * of Energy and the U.S. Government consequently retains certain rights. As
52+ * such, the U.S. Government has been granted for itself and others acting on
53+ * its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
54+ * Software to reproduce, distribute copies to the public, prepare derivative
55+ * works, and perform publicly and display publicly, and to permit others to do
56+ * so.
57+ ******************************************************************************/
1858
1959#ifndef _ONEMKL_RNG_CURAND_HPP_
2060#define _ONEMKL_RNG_CURAND_HPP_
2161
22- #include < cstdint>
2362#include < CL/sycl.hpp>
63+ #include < cstdint>
2464
2565#include " oneapi/mkl/detail/export.hpp"
2666#include " oneapi/mkl/rng/detail/engine_impl.hpp"
@@ -30,21 +70,21 @@ namespace mkl {
3070namespace rng {
3171namespace curand {
3272
33- ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_philox4x32x10 (cl::sycl::queue queue,
34- std::uint64_t seed);
73+ ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_philox4x32x10 (
74+ cl::sycl::queue queue, std::uint64_t seed);
3575
3676ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_philox4x32x10 (
3777 cl::sycl::queue queue, std::initializer_list<std::uint64_t > seed);
3878
39- ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_mrg32k3a (cl::sycl::queue queue,
40- std::uint32_t seed);
79+ ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_mrg32k3a (
80+ cl::sycl::queue queue, std::uint32_t seed);
4181
4282ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_mrg32k3a (
4383 cl::sycl::queue queue, std::initializer_list<std::uint32_t > seed);
4484
45- } // namespace curand
46- } // namespace rng
47- } // namespace mkl
48- } // namespace oneapi
85+ } // namespace curand
86+ } // namespace rng
87+ } // namespace mkl
88+ } // namespace oneapi
4989
50- #endif // _ONEMKL_RNG_CURAND_HPP_
90+ #endif // _ONEMKL_RNG_CURAND_HPP_
0 commit comments