An open API service indexing awesome lists of open source software.

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

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