-
Notifications
You must be signed in to change notification settings - Fork 62
Rust and cuda clang support #1873
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
Merged
jeremylt
merged 66 commits into
CEED:SirAlienTheGreat/rust-qfunctions
from
SirAlienTheGreat:main
Jul 31, 2025
Merged
Changes from 23 commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
6023bab
Switch compiler to clang (not portable)
857b77a
test add_num
909af6b
compile with llvm tools
ad100b2
not working linking
ba3b719
not fixed
b71448f
Update ex1-volume.h
d47fb3d
update
24b03c2
remove global path
b089501
changes
111c301
changes 2
86b2eb5
crate works
0b4c4bf
basic gpu rust compilation
0c427df
still not working
db640a8
rust source roots basic support
142f1c0
nvrtc/clang selection
151965a
cleanup
789a422
update example (not working)
8b9b002
add rust example
40f43ad
Merge branch 'main' into allen-rust-jit
SirAlienTheGreat 3230820
Merge pull request #1 from SirAlienTheGreat/allen-rust-jit
SirAlienTheGreat a6c33a2
fix merge issue
321e426
delete temp files
19ab554
cleanup
c4fac45
rust qfunc 2d array (needs doc)
07beb34
cleanup
10b8f19
more cleanup
824d903
downgrade back to c++11
5a32ce8
format
9a37183
final draft cleanup
bc6eb8f
formatting + CUDA_CLANG -> GPU_CLANG
e7a4165
Update cuda CEED_QFUNCTION_RUST
SirAlienTheGreat 2d49fec
fix python
SirAlienTheGreat 0626555
fix python and format
SirAlienTheGreat 27426f6
format fr
SirAlienTheGreat 012797b
update comment
SirAlienTheGreat 5a808fe
fix python fr
SirAlienTheGreat 1e54ea9
Apply error suggestions from code review
SirAlienTheGreat 7d05196
update errors to libceed format
952d903
Apply suggestions from code review
SirAlienTheGreat f89960a
add optimization flag
b9af985
remove line breaks
SirAlienTheGreat 74794ea
Apply suggestions from code review
SirAlienTheGreat a4de9fb
avoid python in macro better
df27cf8
Merge branch 'main' of github.com:SirAlienTheGreat/libCEED
165f8cc
add rust example
2ceed77
format
e8cdf68
Apply suggestions from code review
SirAlienTheGreat 195d44f
move rust example to own directory
3af1088
Merge branch 'main' of github.com:SirAlienTheGreat/libCEED
a9d0164
Simplify python exclusion logic
SirAlienTheGreat d51415b
re-fix python
d8a2093
Update python/build_ceed_cffi.py
SirAlienTheGreat 96e762f
change names and simplify makefile
4ea74b2
Revert "change names and simplify makefile"
91a4609
Apply Jeremy's diff
87760ac
Simplify CeedCallSystem
ae4cbba
use rust-install llvm tools
2e43fc9
add gitignores
46392e4
update paths
b655e22
example absolute path
d147647
fix comments
da3ab3c
apply partial diff
SirAlienTheGreat 8c8bef2
add newline
af83de8
add makefile
cd5d2b9
Update examples/rust-qfunctions/Makefile
SirAlienTheGreat b2d0003
update makefile
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,13 @@ | ||
| [workspace] | ||
| members = [ | ||
| "rust/libceed", | ||
| "rust/libceed-sys", | ||
| "examples/rust/ex1-volume", | ||
| "examples/rust/ex1-volume-vector", | ||
| "examples/rust/ex2-surface", | ||
| "examples/rust/ex2-surface-vector", | ||
| "examples/rust/ex3-volume", | ||
| "examples/rust/ex3-volume-vector", | ||
| "examples/rust/mesh", | ||
| "rust/libceed", | ||
| "rust/libceed-sys", | ||
| "examples/rust/ex1-volume", | ||
| "examples/rust/ex1-volume-vector", | ||
| "examples/rust/ex2-surface", | ||
| "examples/rust/ex2-surface-vector", | ||
| "examples/rust/ex3-volume", | ||
| "examples/rust/ex3-volume-vector", | ||
| "examples/rust/mesh", | ||
| ] | ||
| exclude = ["examples/ceed/ex4-volume-rs"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #[build] | ||
| #target = "nvptx64-nvidia-cuda" # default compilation target | ||
|
|
||
|
|
||
| [target.nvptx64-nvidia-cuda] | ||
| rustflags = [ | ||
| "-C", "embed-bitcode=yes", | ||
| "-C", "target-cpu=sm_80", | ||
| "-Z", "dylib-lto", | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| [package] | ||
| name = "ex4-volume-rs" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| [profile.dev] | ||
| panic = "abort" | ||
|
|
||
| [profile.release] | ||
| panic = "abort" | ||
|
|
||
| # Compiles the crate as a lib (for GPU) and staticlib (for CPU) | ||
| [lib] | ||
| crate-type = ["lib", "staticlib"] | ||
|
|
||
| [dependencies] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| [toolchain] | ||
| channel = "nightly" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.