Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to use #![feature(abi_ptx)]? #143

Closed
coreylowman opened this issue May 3, 2023 · 4 comments
Closed

Possible to use #![feature(abi_ptx)]? #143

coreylowman opened this issue May 3, 2023 · 4 comments

Comments

@coreylowman
Copy link
Owner

Using https://doc.rust-lang.org/unstable-book/language-features/abi-ptx.html, you can compile rust functions to PTX on nightly compiler. How can we use this with cudarc?

@coreylowman
Copy link
Owner Author

Tagging @ariasanovsky

@ViliamVadocz
Copy link
Contributor

Looking at the tracking issue rust-lang/rust#38788, the feature seems to be in very early stages. It looks very exciting, but maybe not usable yet?

@ariasanovsky
Copy link

@ViliamVadocz Here I build rs into ptx separately with xargo and nightly Rust.

I haven't been able to replace the let ptx = compile_ptx(KERNEL_SRC).unwrap(); lines in this example with let ptx = Ptx::from_file(r"path\to\ptx-number.s"); yet. I get Error: DriverError(CUDA_ERROR_INVALID_PTX, "a PTX JIT compilation failed").

@ariasanovsky
Copy link

MVP here! https://github.com/ariasanovsky/cuda-loop @coreylowman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants