https://github.com/skillfulelectro/core-compute_native
Native binding gen for core-compute api
https://github.com/skillfulelectro/core-compute_native
binding binding-generator c cpp cross-platform gpgpu parallel-computing rust wgpu
Last synced: 7 months ago
JSON representation
Native binding gen for core-compute api
- Host: GitHub
- URL: https://github.com/skillfulelectro/core-compute_native
- Owner: SkillfulElectro
- License: mit
- Created: 2024-08-23T08:48:38.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-26T13:36:09.000Z (10 months ago)
- Last Synced: 2024-08-26T15:59:03.095Z (10 months ago)
- Topics: binding, binding-generator, c, cpp, cross-platform, gpgpu, parallel-computing, rust, wgpu
- Language: Rust
- Homepage:
- Size: 2.74 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CORE-COMPUTE_NATIVE
- this project is native binding generator for core-compute api
- core implementation : https://github.com/SkillfulElectro/core-compute.git## GETTING STARTED
- because core-compute apis are Rust macro functions , and we are not able to use Rust macros in C directly this project aims to give you
flexible binding generator for its api
- first you have to set how many compute functions you will need in C/C++ side of your project by
```shell
export NUM_CORE_COMPUTE_REQ={how many functions for api you need}
```
** if you dont set any by default the build process will consider one function you will need **- now you have to set for all of those compute functions starting from 0 , how much CInfo var you going to give as parameter to
```shell
export NUM_CORE_{index of the function}={number of CInfo paras you want to pass to func}
```
** if you dont set it by default it will set 2 for each of them **- now you can build CORE-COMPUTE_NATIVE
```shell
cargo build --release
```** core_compute_native.h will be found at target dir **
## NOTE
- this project is bundled with core-compute v0.5.2(native edition)
- core-compute native edition usage in Rusty API is not feasible without some unsafe operations