Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

SkillfulElectro/core-compute_native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CORE-COMPUTE_NATIVE

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
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
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
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