@sparkleideas/cuda-wasm 1.1.2
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.
- package/CHANGELOG.md +53 -0
- package/LICENSE +21 -0
- package/README.md +1444 -0
- package/bindings/node/binding.gyp +112 -0
- package/bindings/node/src/cuda_rust_wasm.cc +157 -0
- package/cli/index.js +240 -0
- package/dist/index.js +144 -0
- package/package.json +185 -0
- package/scripts/postinstall.js +95 -0
- package/scripts/test-integration.js +393 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.0] - 2024-12-12
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Initial release of @cuda-wasm/core
|
|
12
|
+
- CUDA to WebAssembly transpilation
|
|
13
|
+
- WebGPU compute shader support
|
|
14
|
+
- Rust-based transpiler with memory safety
|
|
15
|
+
- Performance analysis and benchmarking tools
|
|
16
|
+
- Cross-platform support (Linux, macOS, Windows)
|
|
17
|
+
- Browser and Node.js compatibility
|
|
18
|
+
- TypeScript definitions
|
|
19
|
+
- Comprehensive test suite
|
|
20
|
+
- CLI tool for kernel transpilation
|
|
21
|
+
- Example projects and documentation
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
- 🔄 CUDA to WebAssembly transpilation
|
|
25
|
+
- ⚡ WebGPU native browser GPU acceleration
|
|
26
|
+
- 🦀 Memory-safe GPU programming with Rust
|
|
27
|
+
- 📊 Built-in profiling and optimization
|
|
28
|
+
- 🔧 Simple CLI interface
|
|
29
|
+
- 🌐 Cross-platform compatibility
|
|
30
|
+
- 📝 Full TypeScript support
|
|
31
|
+
|
|
32
|
+
### Supported Targets
|
|
33
|
+
- WebAssembly (WASM)
|
|
34
|
+
- WebGPU compute shaders
|
|
35
|
+
- Native GPU backends (CUDA, OpenCL, Vulkan)
|
|
36
|
+
|
|
37
|
+
### CLI Commands
|
|
38
|
+
- `cuda-wasm transpile` - Convert CUDA kernels to WASM/WebGPU
|
|
39
|
+
- `cuda-wasm analyze` - Analyze kernel performance characteristics
|
|
40
|
+
- `cuda-wasm benchmark` - Run performance benchmarks
|
|
41
|
+
|
|
42
|
+
### API Features
|
|
43
|
+
- `transpileCuda()` - Main transpilation function
|
|
44
|
+
- `analyzeKernel()` - Kernel analysis and optimization suggestions
|
|
45
|
+
- `benchmark()` - Performance benchmarking
|
|
46
|
+
- `createWebGPUKernel()` - WebGPU kernel creation and execution
|
|
47
|
+
|
|
48
|
+
### Installation Methods
|
|
49
|
+
- NPX: `npx @cuda-wasm/core`
|
|
50
|
+
- Global: `npm install -g @cuda-wasm/core`
|
|
51
|
+
- Project: `npm install @cuda-wasm/core`
|
|
52
|
+
|
|
53
|
+
[1.0.0]: https://github.com/ruvnet/ruv-FANN/releases/tag/cuda-wasm-v1.0.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 CUDA-WASM Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|