Skip to content

Commit 58e96f8

Browse files
committed
Add missing nvidia license
1 parent 634c4ef commit 58e96f8

4 files changed

Lines changed: 29 additions & 4 deletions

File tree

examples/cuda/dynamic_geometry_vertex_generation.cu

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
1+
//
2+
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
3+
//
4+
// Redistribution and use in source and binary forms, with or without
5+
// modification, are permitted provided that the following conditions
6+
// are met:
7+
// * Redistributions of source code must retain the above copyright
8+
// notice, this list of conditions and the following disclaimer.
9+
// * Redistributions in binary form must reproduce the above copyright
10+
// notice, this list of conditions and the following disclaimer in the
11+
// documentation and/or other materials provided with the distribution.
12+
// * Neither the name of NVIDIA CORPORATION nor the names of its
13+
// contributors may be used to endorse or promote products derived
14+
// from this software without specific prior written permission.
15+
//
16+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
17+
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19+
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20+
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21+
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22+
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23+
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24+
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27+
//
128

229
#include "vec_math.h"
330

31+
432
enum struct AnimationMode: int
533
{
634
NONE = 0,

optix/shader_binding_table.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,4 @@ cdef class ShaderBindingTable(OptixObject):
111111
return array_to_device_memory(record, stream=stream), record.shape[0], record.strides[0]
112112
else:
113113
raise ValueError(f"Unsupported record type '{type(record)}'")
114+

optix/struct.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def _aligned_itemsize( formats, alignment ):
2222
} )
2323
return round_up( temp_dtype.itemsize, alignment )
2424

25-
2625
def array_to_device_memory(numpy_array, stream=None):
2726
"""
2827
Transfer a numpy array to cuda device memory. This does not generate a full cupy.ndarray, but an

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
from setuptools import setup, Extension, find_packages
22
from Cython.Build import cythonize
33

4-
import site, sys
5-
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
6-
74

85
# standalone import of a module (https://stackoverflow.com/a/58423785)
96
def import_module_from_path(path):

0 commit comments

Comments
 (0)