Skip to content

Commit 78bb4c1

Browse files
committed
fixes includes and license
1 parent baf8630 commit 78bb4c1

File tree

1 file changed

+10
-131
lines changed

1 file changed

+10
-131
lines changed

libcudacxx/include/cuda/discard_memory

+10-131
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,18 @@
1-
/*
2-
* SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3-
*
4-
* NVIDIA SOFTWARE LICENSE
5-
*
6-
* This license is a legal agreement between you and NVIDIA Corporation ("NVIDIA") and governs your use of the
7-
* NVIDIA/CUDA C++ Library software and materials provided hereunder (“SOFTWARE”).
8-
*
9-
* This license can be accepted only by an adult of legal age of majority in the country in which the SOFTWARE is used.
10-
* If you are under the legal age of majority, you must ask your parent or legal guardian to consent to this license. By
11-
* taking delivery of the SOFTWARE, you affirm that you have reached the legal age of majority, you accept the terms of
12-
* this license, and you take legal and financial responsibility for the actions of your permitted users.
13-
*
14-
* You agree to use the SOFTWARE only for purposes that are permitted by (a) this license, and (b) any applicable law,
15-
* regulation or generally accepted practices or guidelines in the relevant jurisdictions.
16-
*
17-
* 1. LICENSE. Subject to the terms of this license, NVIDIA grants you a non-exclusive limited license to: (a) install
18-
* and use the SOFTWARE, and (b) distribute the SOFTWARE subject to the distribution requirements described in this
19-
* license. NVIDIA reserves all rights, title and interest in and to the SOFTWARE not expressly granted to you under
20-
* this license.
21-
*
22-
* 2. DISTRIBUTION REQUIREMENTS. These are the distribution requirements for you to exercise the distribution grant:
23-
* a. The terms under which you distribute the SOFTWARE must be consistent with the terms of this license,
24-
* including (without limitation) terms relating to the license grant and license restrictions and protection of
25-
* NVIDIA’s intellectual property rights. b. You agree to notify NVIDIA in writing of any known or suspected
26-
* distribution or use of the SOFTWARE not in compliance with the requirements of this license, and to enforce the terms
27-
* of your agreements with respect to distributed SOFTWARE.
28-
*
29-
* 3. LIMITATIONS. Your license to use the SOFTWARE is restricted as follows:
30-
* a. The SOFTWARE is licensed for you to develop applications only for use in systems with NVIDIA GPUs.
31-
* b. You may not reverse engineer, decompile or disassemble, or remove copyright or other proprietary notices from
32-
* any portion of the SOFTWARE or copies of the SOFTWARE. c. You may not modify or create derivative works of any
33-
* portion of the SOFTWARE. d. You may not bypass, disable, or circumvent any technical measure, encryption,
34-
* security, digital rights management or authentication mechanism in the SOFTWARE. e. You may not use the SOFTWARE
35-
* in any manner that would cause it to become subject to an open source software license. As examples, licenses that
36-
* require as a condition of use, modification, and/or distribution that the SOFTWARE be (i) disclosed or distributed in
37-
* source code form; (ii) licensed for the purpose of making derivative works; or (iii) redistributable at no charge. f.
38-
* Unless you have an agreement with NVIDIA for this purpose, you may not use the SOFTWARE with any system or
39-
* application where the use or failure of the system or application can reasonably be expected to threaten or result in
40-
* personal injury, death, or catastrophic loss. Examples include use in avionics, navigation, military, medical, life
41-
* support or other life critical applications. NVIDIA does not design, test or manufacture the SOFTWARE for these
42-
* critical uses and NVIDIA shall not be liable to you or any third party, in whole or in part, for any claims or
43-
* damages arising from such uses. g. You agree to defend, indemnify and hold harmless NVIDIA and its affiliates,
44-
* and their respective employees, contractors, agents, officers and directors, from and against any and all claims,
45-
* damages, obligations, losses, liabilities, costs or debt, fines, restitutions and expenses (including but not limited
46-
* to attorney’s fees and costs incident to establishing the right of indemnification) arising out of or related to use
47-
* of the SOFTWARE outside of the scope of this Agreement, or not in compliance with its terms.
48-
*
49-
* 4. PRE-RELEASE. SOFTWARE versions identified as alpha, beta, preview, early access or otherwise as pre-release may
50-
* not be fully functional, may contain errors or design flaws, and may have reduced or different security, privacy,
51-
* availability, and reliability standards relative to commercial versions of NVIDIA software and materials. You may use
52-
* a pre-release SOFTWARE version at your own risk, understanding that these versions are not intended for use in
53-
* production or business-critical systems.
54-
*
55-
* 5. OWNERSHIP. The SOFTWARE and the related intellectual property rights therein are and will remain the sole and
56-
* exclusive property of NVIDIA or its licensors. The SOFTWARE is copyrighted and protected by the laws of the United
57-
* States and other countries, and international treaty provisions. NVIDIA may make changes to the SOFTWARE, at any time
58-
* without notice, but is not obligated to support or update the SOFTWARE.
59-
*
60-
* 6. COMPONENTS UNDER OTHER LICENSES. The SOFTWARE may include NVIDIA or third-party components with separate legal
61-
* notices or terms as may be described in proprietary notices accompanying the SOFTWARE. If and to the extent there is
62-
* a conflict between the terms in this license and the license terms associated with a component, the license terms
63-
* associated with the components control only to the extent necessary to resolve the conflict.
64-
*
65-
* 7. FEEDBACK. You may, but don’t have to, provide to NVIDIA any Feedback. “Feedback” means any suggestions, bug fixes,
66-
* enhancements, modifications, feature requests or other feedback regarding the SOFTWARE. For any Feedback that you
67-
* voluntarily provide, you hereby grant NVIDIA and its affiliates a perpetual, non-exclusive, worldwide, irrevocable
68-
* license to use, reproduce, modify, license, sublicense (through multiple tiers of sublicensees), and distribute
69-
* (through multiple tiers of distributors) the Feedback without the payment of any royalties or fees to you. NVIDIA
70-
* will use Feedback at its choice.
71-
*
72-
* 8. NO WARRANTIES. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING, BUT
73-
* NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. NVIDIA DOES NOT
74-
* WARRANT THAT THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION THEREOF WILL BE UNINTERRUPTED OR
75-
* ERROR-FREE, OR THAT ALL ERRORS WILL BE CORRECTED.
76-
*
77-
* 9. LIMITATIONS OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS AFFILIATES SHALL NOT BE LIABLE
78-
* FOR ANY SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR ANY LOST PROFITS, PROJECT DELAYS, LOSS OF USE,
79-
* LOSS OF DATA OR LOSS OF GOODWILL, OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF OR IN CONNECTION WITH
80-
* THIS LICENSE OR THE USE OR PERFORMANCE OF THE SOFTWARE, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED UPON
81-
* BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION
82-
* OR THEORY OF LIABILITY, EVEN IF NVIDIA HAS PREVIOUSLY BEEN ADVISED OF, OR COULD REASONABLY HAVE FORESEEN, THE
83-
* POSSIBILITY OF SUCH DAMAGES. IN NO EVENT WILL NVIDIA’S AND ITS AFFILIATES TOTAL CUMULATIVE LIABILITY UNDER OR ARISING
84-
* OUT OF THIS LICENSE EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE
85-
* OR EXTEND THIS LIMIT.
86-
*
87-
* 10. TERMINATION. Your rights under this license will terminate automatically without notice from NVIDIA if you fail
88-
* to comply with any term and condition of this license or if you commence or participate in any legal proceeding
89-
* against NVIDIA with respect to the SOFTWARE. NVIDIA may terminate this license with advance written notice to you if
90-
* NVIDIA decides to no longer provide the SOFTWARE in a country or, in NVIDIA’s sole discretion, the continued use of
91-
* it is no longer commercially viable. Upon any termination of this license, you agree to promptly discontinue use of
92-
* the SOFTWARE and destroy all copies in your possession or control. Your prior distributions in accordance with this
93-
* license are not affected by the termination of this license. All provisions of this license will survive termination,
94-
* except for the license granted to you.
95-
*
96-
* 11. APPLICABLE LAW. This license will be governed in all respects by the laws of the United States and of the State
97-
* of Delaware as those laws are applied to contracts entered into and performed entirely within Delaware by Delaware
98-
* residents, without regard to the conflicts of laws principles. The United Nations Convention on Contracts for the
99-
* International Sale of Goods is specifically disclaimed. You agree to all terms of this Agreement in the English
100-
* language. The state or federal courts residing in Santa Clara County, California shall have exclusive jurisdiction
101-
* over any dispute or claim arising out of this license. Notwithstanding this, you agree that NVIDIA shall still be
102-
* allowed to apply for injunctive remedies or an equivalent type of urgent legal relief in any jurisdiction.
103-
*
104-
* 12. NO ASSIGNMENT. This license and your rights and obligations thereunder may not be assigned by you by any means or
105-
* operation of law without NVIDIA’s permission. Any attempted assignment not approved by NVIDIA in writing shall be
106-
* void and of no effect.
107-
*
108-
* 13. EXPORT. The SOFTWARE is subject to United States export laws and regulations. You agree that you will not ship,
109-
* transfer or export the SOFTWARE into any country, or use the SOFTWARE in any manner, prohibited by the United States
110-
* Bureau of Industry and Security or economic sanctions regulations administered by the U.S. Department of Treasury’s
111-
* Office of Foreign Assets Control (OFAC), or any applicable export laws, restrictions or regulations. These laws
112-
* include restrictions on destinations, end users and end use. By accepting this license, you confirm that you are not
113-
* a resident or citizen of any country currently embargoed by the U.S. and that you are not otherwise prohibited from
114-
* receiving the SOFTWARE.
115-
*
116-
* 14. GOVERNMENT USE. The SOFTWARE has been developed entirely at private expense and is “commercial items” consisting
117-
* of “commercial computer software” and “commercial computer software documentation” provided with RESTRICTED RIGHTS.
118-
* Use, duplication or disclosure by the U.S. Government or a U.S. Government subcontractor is subject to the
119-
* restrictions in this license pursuant to DFARS 227.7202-3(a) or as set forth in subparagraphs (b)(1) and (2) of the
120-
* Commercial Computer Software - Restricted Rights clause at FAR 52.227-19, as applicable. Contractor/manufacturer is
121-
* NVIDIA, 2788 San Tomas Expressway, Santa Clara, CA 95051.
122-
*
123-
* 15. ENTIRE AGREEMENT. This license is the final, complete and exclusive agreement between the parties relating to the
124-
* subject matter of this license and supersedes all prior or contemporaneous understandings and agreements relating to
125-
* this subject matter, whether oral or written. If any court of competent jurisdiction determines that any provision of
126-
* this license is illegal, invalid or unenforceable, the remaining provisions will remain in full force and effect.
127-
* This license may only be modified in a writing signed by an authorized representative of each party.
128-
*
129-
* (v. August 20, 2021)
130-
*/
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of libcu++, the C++ Standard Library for your entire system,
4+
// under the Apache License v2.0 with LLVM Exceptions.
5+
// See https://llvm.org/LICENSE.txt for license information.
6+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7+
// SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
8+
//
9+
//===----------------------------------------------------------------------===//
13110

13211
#ifndef _CUDA_DISCARD_MEMORY
13312
#define _CUDA_DISCARD_MEMORY
13413

13514
#include <cuda/std/cstdint>
136-
#include "std/detail/__config"
15+
#include <cuda/std/detail/__config>
13716

13817
_LIBCUDACXX_BEGIN_NAMESPACE_CUDA
13918

0 commit comments

Comments
 (0)