rust-ptx-builder icon indicating copy to clipboard operation
rust-ptx-builder copied to clipboard

Is there a crate somewhere using this ?

Open gnzlbg opened this issue 6 years ago • 4 comments

It would be nice to have a repository somewhere that shows how to use this.

E.g. a device crate with a kernel, and then a binary crate, that launches the kernel.

Ideally it should at least compile on travis.

gnzlbg avatar Nov 10 '18 16:11 gnzlbg

Most recent examples that use v0.5 can be found in not yet published ptx-support repo. It should be possible to add travis config to ensure those examples can be built.

Also, outdated v0.4 is being used by a CUDA tutorial. Sooner or later it has to be updated to use the latest version of the crate, though.

denzp avatar Nov 10 '18 20:11 denzp

Would it make sense to moving all these crates to its own single repo, e.g., using a workspace ?

It seems to me that these all have to work together, be tested together, the tests need to work across crates, the examples use multiple crates, etc.

gnzlbg avatar Nov 11 '18 08:11 gnzlbg

My goal was to create a high-level CUDA framework (I called it current) and it would make sense to move ptx-builder, ptx-linker and ptx-support crates in the workspace. But since the high-level crate is de-facto in an abandoned state, it's not yet possible.

Also, on another hand, I was thinking about the possibility to ship ptx-linker as a Rustup component, so there will be no need to use hacky rustc-llvm-proxy and it would be linked against real Rustc LLVM lib. In this case ptx-linker probably should live in a separate repo.

denzp avatar Nov 11 '18 09:11 denzp

@denzp I've tried to start a Rust CUDA-wg so that those interested can have a place to communicate, and hopefully afterwards we can all start working on common "framework-independent" tooling.

gnzlbg avatar Nov 11 '18 11:11 gnzlbg