accel icon indicating copy to clipboard operation
accel copied to clipboard

include raw *.cu file

Open zeroexcuses opened this issue 6 years ago • 1 comments

Is there a way to mix rust-accel with raw *.cu files?

I would like to write some device helper functions in *.cu, then call them from #[kernel] functions defined in rust-accel.

Is there an example for how to do this?

zeroexcuses avatar Dec 15 '18 01:12 zeroexcuses

I would like to write some device helper functions in *.cu, then call them from #[kernel] functions defined in rust-accel.

It is impossible currently.

Possible way is to link cubin compiled from *.cu and #[kernel] at runtime using accel::module::link API.

termoshtt avatar Jan 06 '19 11:01 termoshtt