cplx-torch 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. cplx_torch-0.4.0/CMakeLists.txt +167 -0
  2. cplx_torch-0.4.0/LICENSE +200 -0
  3. cplx_torch-0.4.0/MANIFEST.in +8 -0
  4. cplx_torch-0.4.0/PKG-INFO +310 -0
  5. cplx_torch-0.4.0/README.md +276 -0
  6. cplx_torch-0.4.0/cmake/cplxConfig.cmake.in +10 -0
  7. cplx_torch-0.4.0/include/cplx/algebras.hpp +299 -0
  8. cplx_torch-0.4.0/include/cplx/arith.hpp +565 -0
  9. cplx_torch-0.4.0/include/cplx/c_api.h +782 -0
  10. cplx_torch-0.4.0/include/cplx/classify.hpp +113 -0
  11. cplx_torch-0.4.0/include/cplx/complex.hpp +11 -0
  12. cplx_torch-0.4.0/include/cplx/detail/backend.hpp +623 -0
  13. cplx_torch-0.4.0/include/cplx/detail/config.hpp +77 -0
  14. cplx_torch-0.4.0/include/cplx/detail/fp_traits.hpp +380 -0
  15. cplx_torch-0.4.0/include/cplx/expfam.hpp +865 -0
  16. cplx_torch-0.4.0/include/cplx/fast.hpp +400 -0
  17. cplx_torch-0.4.0/include/cplx/geometry.hpp +277 -0
  18. cplx_torch-0.4.0/include/cplx/interop.hpp +100 -0
  19. cplx_torch-0.4.0/include/cplx/linalg.hpp +255 -0
  20. cplx_torch-0.4.0/include/cplx/ops.hpp +776 -0
  21. cplx_torch-0.4.0/include/cplx/parts.hpp +144 -0
  22. cplx_torch-0.4.0/include/cplx/runtime.hpp +216 -0
  23. cplx_torch-0.4.0/include/cplx/tensor.hpp +163 -0
  24. cplx_torch-0.4.0/include/cplx/trig.hpp +607 -0
  25. cplx_torch-0.4.0/include/cplx/type.hpp +72 -0
  26. cplx_torch-0.4.0/pyproject.toml +45 -0
  27. cplx_torch-0.4.0/python/cplx_torch/__init__.py +235 -0
  28. cplx_torch-0.4.0/python/cplx_torch/_cpu_fallback.py +742 -0
  29. cplx_torch-0.4.0/python/cplx_torch/_custom_ops.py +271 -0
  30. cplx_torch-0.4.0/python/cplx_torch/_loader.py +68 -0
  31. cplx_torch-0.4.0/python/cplx_torch/_native/__init__.py +1 -0
  32. cplx_torch-0.4.0/python/cplx_torch/audio.py +112 -0
  33. cplx_torch-0.4.0/python/cplx_torch/comms.py +111 -0
  34. cplx_torch-0.4.0/python/cplx_torch/cupy_api.py +160 -0
  35. cplx_torch-0.4.0/python/cplx_torch/device.py +95 -0
  36. cplx_torch-0.4.0/python/cplx_torch/functional.py +1381 -0
  37. cplx_torch-0.4.0/python/cplx_torch/geometry.py +162 -0
  38. cplx_torch-0.4.0/python/cplx_torch/gnn.py +88 -0
  39. cplx_torch-0.4.0/python/cplx_torch/init.py +94 -0
  40. cplx_torch-0.4.0/python/cplx_torch/linalg.py +111 -0
  41. cplx_torch-0.4.0/python/cplx_torch/losses.py +108 -0
  42. cplx_torch-0.4.0/python/cplx_torch/mri.py +892 -0
  43. cplx_torch-0.4.0/python/cplx_torch/nn.py +600 -0
  44. cplx_torch-0.4.0/python/cplx_torch/optim.py +123 -0
  45. cplx_torch-0.4.0/python/cplx_torch/quant.py +175 -0
  46. cplx_torch-0.4.0/python/cplx_torch/quantum.py +232 -0
  47. cplx_torch-0.4.0/python/cplx_torch/radar.py +102 -0
  48. cplx_torch-0.4.0/python/cplx_torch/spectral.py +465 -0
  49. cplx_torch-0.4.0/python/cplx_torch/vsa.py +117 -0
  50. cplx_torch-0.4.0/python/cplx_torch/wave.py +207 -0
  51. cplx_torch-0.4.0/python/cplx_torch.egg-info/PKG-INFO +310 -0
  52. cplx_torch-0.4.0/python/cplx_torch.egg-info/SOURCES.txt +63 -0
  53. cplx_torch-0.4.0/python/cplx_torch.egg-info/dependency_links.txt +1 -0
  54. cplx_torch-0.4.0/python/cplx_torch.egg-info/not-zip-safe +1 -0
  55. cplx_torch-0.4.0/python/cplx_torch.egg-info/requires.txt +9 -0
  56. cplx_torch-0.4.0/python/cplx_torch.egg-info/top_level.txt +1 -0
  57. cplx_torch-0.4.0/python/csrc/cplx_dlpack.c +1506 -0
  58. cplx_torch-0.4.0/scripts/build_python.py +236 -0
  59. cplx_torch-0.4.0/setup.cfg +4 -0
  60. cplx_torch-0.4.0/setup.py +104 -0
  61. cplx_torch-0.4.0/src/ops_cvnn.cu +2228 -0
  62. cplx_torch-0.4.0/src/ops_domains_ext.cu +2755 -0
  63. cplx_torch-0.4.0/src/ops_norm_scan.cu +1803 -0
  64. cplx_torch-0.4.0/src/ops_pointwise.cu +772 -0
  65. cplx_torch-0.4.0/src/ops_wave_vsa_geom.cu +2350 -0
@@ -0,0 +1,167 @@
1
+ cmake_minimum_required(VERSION 3.28...4.4)
2
+
3
+ set(CMAKE_CXX_SCAN_FOR_MODULES OFF)
4
+ set(CPLX_ARCHS "portable" CACHE STRING "CUDA architectures: 'portable' (multi-arch fatbin + PTX), 'native', or semicolon list (e.g. 86 or 75;80;86;89;90;100;120)")
5
+ set(CPLX_FLAG_CONFIG "default" CACHE STRING "Compiler flag profile: default, nofma, ftz, fastmath")
6
+ set_property(CACHE CPLX_FLAG_CONFIG PROPERTY STRINGS default nofma ftz fastmath)
7
+
8
+ if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
9
+ if(CPLX_ARCHS STREQUAL "portable")
10
+ # Intersect portable SM list with architectures supported by installed nvcc + highest virtual PTX.
11
+ find_program(_cplx_nvcc_probe nvcc HINTS "$ENV{CUDA_PATH}/bin" "/usr/local/cuda/bin")
12
+ set(_cplx_desired 75 80 86 89 90 100 120)
13
+ set(_cplx_resolved "")
14
+ set(_cplx_highest "")
15
+ if(_cplx_nvcc_probe)
16
+ execute_process(
17
+ COMMAND "${_cplx_nvcc_probe}" --list-gpu-arch
18
+ OUTPUT_VARIABLE _cplx_nvcc_archs
19
+ ERROR_QUIET
20
+ RESULT_VARIABLE _cplx_probe_rc
21
+ )
22
+ if(_cplx_probe_rc EQUAL 0)
23
+ foreach(_sm IN LISTS _cplx_desired)
24
+ string(FIND "${_cplx_nvcc_archs}" "compute_${_sm}" _found)
25
+ if(NOT _found EQUAL -1)
26
+ list(APPEND _cplx_resolved "${_sm}-real")
27
+ set(_cplx_highest "${_sm}")
28
+ endif()
29
+ endforeach()
30
+ endif()
31
+ endif()
32
+ if(_cplx_resolved AND _cplx_highest)
33
+ list(APPEND _cplx_resolved "${_cplx_highest}-virtual")
34
+ set(CMAKE_CUDA_ARCHITECTURES "${_cplx_resolved}")
35
+ else()
36
+ set(CMAKE_CUDA_ARCHITECTURES "75-real;80-real;86-real;89-real;90-real;90-virtual")
37
+ endif()
38
+ else()
39
+ set(CMAKE_CUDA_ARCHITECTURES "${CPLX_ARCHS}")
40
+ endif()
41
+ endif()
42
+
43
+ project(CudaComplex VERSION 0.4.0 LANGUAGES CXX CUDA)
44
+
45
+ include(GNUInstallDirs)
46
+ include(CMakePackageConfigHelpers)
47
+
48
+ find_package(CUDAToolkit REQUIRED)
49
+
50
+ set(_cplx_cuda_flag_options "")
51
+ if(CPLX_FLAG_CONFIG STREQUAL "default")
52
+ # Default IEEE-754 / FMA enabled / FTZ off
53
+ elseif(CPLX_FLAG_CONFIG STREQUAL "nofma")
54
+ list(APPEND _cplx_cuda_flag_options "--fmad=false")
55
+ elseif(CPLX_FLAG_CONFIG STREQUAL "ftz")
56
+ list(APPEND _cplx_cuda_flag_options "--ftz=true")
57
+ elseif(CPLX_FLAG_CONFIG STREQUAL "fastmath")
58
+ list(APPEND _cplx_cuda_flag_options "--use_fast_math")
59
+ else()
60
+ message(FATAL_ERROR "Unsupported CPLX_FLAG_CONFIG='${CPLX_FLAG_CONFIG}'. Expected one of: default, nofma, ftz, fastmath.")
61
+ endif()
62
+
63
+ add_library(cplx INTERFACE)
64
+ add_library(cplx::cplx ALIAS cplx)
65
+
66
+ target_include_directories(cplx INTERFACE
67
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
68
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
69
+ )
70
+ foreach(_inc IN LISTS CUDAToolkit_INCLUDE_DIRS)
71
+ target_include_directories(cplx INTERFACE $<BUILD_INTERFACE:${_inc}>)
72
+ endforeach()
73
+ if(EXISTS "${CUDAToolkit_INCLUDE_DIRS}/cccl")
74
+ target_include_directories(cplx INTERFACE
75
+ $<BUILD_INTERFACE:${CUDAToolkit_INCLUDE_DIRS}/cccl>
76
+ )
77
+ endif()
78
+
79
+ target_compile_features(cplx INTERFACE cxx_std_20 cuda_std_20)
80
+ target_compile_options(cplx INTERFACE
81
+ $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/Zc:__cplusplus>
82
+ $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/Zc:preprocessor>
83
+ $<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CUDA_COMPILER_ID:NVIDIA>>:--expt-relaxed-constexpr>
84
+ $<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CXX_COMPILER_ID:MSVC>>:-Xcompiler=/Zc:__cplusplus>
85
+ $<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CXX_COMPILER_ID:MSVC>>:-Xcompiler=/Zc:preprocessor>
86
+ )
87
+
88
+ add_library(cplx_flag_profile INTERFACE)
89
+ if(_cplx_cuda_flag_options)
90
+ target_compile_options(cplx_flag_profile INTERFACE
91
+ $<$<COMPILE_LANGUAGE:CUDA>:${_cplx_cuda_flag_options}>
92
+ )
93
+ endif()
94
+
95
+ option(CPLX_BUILD_BENCH "Build micro-benchmarks" OFF)
96
+ option(CPLX_BUILD_OPS "Build compiled cplx_ops CUDA shared library" ON)
97
+
98
+ if(CPLX_BUILD_OPS)
99
+ add_library(cplx_ops SHARED
100
+ src/ops_pointwise.cu
101
+ src/ops_norm_scan.cu
102
+ src/ops_wave_vsa_geom.cu
103
+ src/ops_cvnn.cu
104
+ src/ops_domains_ext.cu
105
+ )
106
+ add_library(cplx::ops ALIAS cplx_ops)
107
+ set_target_properties(cplx_ops PROPERTIES EXPORT_NAME ops)
108
+ target_link_libraries(cplx_ops PRIVATE cplx::cplx cplx_flag_profile)
109
+ target_compile_definitions(cplx_ops
110
+ PRIVATE CPLX_OPS_EXPORTS
111
+ INTERFACE CPLX_OPS_SHARED
112
+ )
113
+ target_compile_options(cplx_ops PRIVATE
114
+ $<$<COMPILE_LANGUAGE:CUDA>:-O3;-lineinfo>
115
+ $<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CXX_COMPILER_ID:MSVC>>:-Xcompiler=/MD>
116
+ )
117
+ if(WIN32 AND TARGET CUDA::cudart_static)
118
+ set_target_properties(cplx_ops PROPERTIES CUDA_RUNTIME_LIBRARY Static)
119
+ endif()
120
+ endif()
121
+
122
+ include(CTest)
123
+ if(BUILD_TESTING)
124
+ add_subdirectory(tests)
125
+ endif()
126
+ if(CPLX_BUILD_BENCH AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/bench/CMakeLists.txt")
127
+ add_subdirectory(bench)
128
+ endif()
129
+
130
+ # CMake package install rules: enables find_package(cplx CONFIG REQUIRED)
131
+ option(CPLX_INSTALL "Generate CMake install target for cplx::cplx and cplx::ops" ON)
132
+ if(CPLX_INSTALL)
133
+ set(_cplx_install_targets cplx cplx_flag_profile)
134
+ if(CPLX_BUILD_OPS)
135
+ list(APPEND _cplx_install_targets cplx_ops)
136
+ endif()
137
+ install(TARGETS ${_cplx_install_targets}
138
+ EXPORT cplxTargets
139
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
140
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
141
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
142
+ INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
143
+ )
144
+ install(DIRECTORY include/cplx
145
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
146
+ )
147
+ install(EXPORT cplxTargets
148
+ FILE cplxTargets.cmake
149
+ NAMESPACE cplx::
150
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cplx
151
+ )
152
+ configure_package_config_file(
153
+ cmake/cplxConfig.cmake.in
154
+ "${CMAKE_CURRENT_BINARY_DIR}/cplxConfig.cmake"
155
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cplx
156
+ )
157
+ write_basic_package_version_file(
158
+ "${CMAKE_CURRENT_BINARY_DIR}/cplxConfigVersion.cmake"
159
+ VERSION ${PROJECT_VERSION}
160
+ COMPATIBILITY SameMajorVersion
161
+ )
162
+ install(FILES
163
+ "${CMAKE_CURRENT_BINARY_DIR}/cplxConfig.cmake"
164
+ "${CMAKE_CURRENT_BINARY_DIR}/cplxConfigVersion.cmake"
165
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cplx
166
+ )
167
+ endif()
@@ -0,0 +1,200 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright notices, patent notices,
102
+ trademark notices, and attribution notices from the Source
103
+ form of the Work, excluding those notices that do not
104
+ pertain to any part of the Work; and
105
+
106
+ (d) If the Work includes a "NOTICE" file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the NOTICE file within such NOTICE
109
+ file, excluding those notices that do not pertain to any part
110
+ of the Work, in at least one of the following places: within a
111
+ NOTICE file distributed as part of the Work; within the Source
112
+ form or documentation, if provided along with the Work; or, within a
113
+ display generated by the Derivative Works, if and wherever such
114
+ third-party notices appear. The contents of the NOTICE file
115
+ are for informational purposes only and do not modify the
116
+ License. You may add Your own attribution notices within
117
+ Derivative Works that You distribute, alongside or as an
118
+ additional text to the NOTICE file from the Work, provided
119
+ that such additional attribution notices cannot be construed
120
+ as modifying the License.
121
+
122
+ You may add Your own copyright notice to Your modifications and
123
+ may provide additional or different license terms and conditions
124
+ for use, reproduction, or distribution of Your modifications, or
125
+ for any such Derivative Works as a whole, provided Your use,
126
+ reproduction, and distribution of the Work otherwise complies with
127
+ the conditions stated in this License.
128
+
129
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
130
+ any Contribution intentionally submitted for inclusion in the Work
131
+ by You to the Licensor shall be under the terms and conditions of
132
+ this License, without any additional terms or conditions.
133
+ Notwithstanding the above, nothing herein shall supersede or modify
134
+ the terms of any separate license agreement you may have executed
135
+ with Licensor regarding such Contributions.
136
+
137
+ 6. Trademarks. This License does not grant permission to use the trade
138
+ names, trademarks, service marks, or product names of the Licensor,
139
+ except as required for reasonable and customary use in describing the
140
+ origin of the Work and reproducing the content of the License.
141
+
142
+ 7. Disclaimer of Warranty. Unless required by applicable law or
143
+ agreed to in writing, Licensor provides the Work (and each
144
+ Contributor provides its Contribution) on an "AS IS" BASIS,
145
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
146
+ implied, including, without limitation, any warranties or conditions
147
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
148
+ PARTICULAR PURPOSE. You are solely responsible for determining the
149
+ appropriateness of using or redistributing the Work and assume any
150
+ risks associated with Your exercise of permissions under this License.
151
+
152
+ 8. Limitation of Liability. In no event and under no legal theory,
153
+ whether in tort (including negligence), contract, or otherwise,
154
+ unless required by applicable law (such as deliberate and grossly
155
+ negligent acts) or agreed to in writing, shall any Contributor be
156
+ liable to You for damages, including any direct, indirect, special,
157
+ incidental, or consequential damages of any character arising as a
158
+ result of this License or out of the use or inability to use the
159
+ Work (including but not limited to damages for loss of goodwill,
160
+ work stoppage, computer failure or malfunction, or any and all
161
+ other commercial damages or losses), even if such Contributor
162
+ has been advised of the possibility of such damages.
163
+
164
+ 9. Accepting Warranty or Liability. While redistributing the Work or
165
+ Derivative Works thereof, You may choose to accept support,
166
+ warranty, indemnity, or other liability obligations and/or rights
167
+ consistent with this License. However, in accepting such obligations,
168
+ You may act only on Your own behalf and on Your sole responsibility,
169
+ not on behalf of any other Contributor, and only if You agree to
170
+ indemnify, defend, and hold each Contributor harmless for any liability
171
+ incurred by reason of your acceptance of any such warranty or
172
+ liability, or by reason of any claim arising from your acceptance of
173
+ any such warranty or liability.
174
+
175
+ END OF TERMS AND CONDITIONS
176
+
177
+ APPENDIX: How to apply the Apache License to your work.
178
+
179
+ To apply the Apache License to your work, attach the following
180
+ boilerplate notice, with the fields enclosed by brackets "[]"
181
+ replaced with your own identifying information. (Don't include
182
+ the brackets!) The text should be enclosed in the appropriate
183
+ comment syntax for the file format. We also recommend that a
184
+ file or filename be included or referenced on the same "printed page"
185
+ as the copyright notice for easier identification within the
186
+ archive.
187
+
188
+ Copyright 2026 Cuda_Complex Contributors
189
+
190
+ Licensed under the Apache License, Version 2.0 (the "License");
191
+ you may not use this file except in compliance with the License.
192
+ You may obtain a copy of the License at
193
+
194
+ http://www.apache.org/licenses/LICENSE-2.0
195
+
196
+ Unless required by applicable law or agreed to in writing, software
197
+ distributed under the License is distributed on an "AS IS" BASIS,
198
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
199
+ See the License for the specific language governing permissions and
200
+ limitations under the License.
@@ -0,0 +1,8 @@
1
+ include LICENSE README.md CMakeLists.txt pyproject.toml setup.py
2
+ recursive-include cmake *
3
+ recursive-include include *.h *.hpp
4
+ recursive-include src *.cu *.cpp *.h *.hpp
5
+ recursive-include python/csrc *.c *.h
6
+ include scripts/build_python.py
7
+ recursive-include python/cplx_torch *.py
8
+ global-exclude *.dll *.pyd *.so *.lib *.exp *.o *.obj *.pyc __pycache__