You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
This file contains 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
What we need is the LLVM bitcode (*.o files), but it is composed in ar archive. The ar archive is a simple archive format like zip, and it can compose any files. However, it is not natural to compose bitcodes as an ar archive, it should be linked by llvm-link
$ ar t libaccel_core.rlib
accel_core-89823dc66a8c0ad6.2wq0crelc49frk0q.rcgu.o
accel_core-89823dc66a8c0ad6.524p119z00bm6tv7.rcgu.o
rust.metadata.bin
accel_core-89823dc66a8c0ad6.2wq0crelc49frk0q.rcgu.bc.z
accel_core-89823dc66a8c0ad6.524p119z00bm6tv7.rcgu.bc.z
Two bitcodes corresponding to lib.rs and indexing.rs
This means that the compiler-runtime (+nvptx = /stage1 on my machine) are compiled into rlib, and llvm-link cannot be linked them. These rlibs are generated while x.py to build rustc. We need to fix it...
Add cargo-clippy and cargo-fmt on CI
Closes#45 and #44
See merge request termoshtt/accel!65
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
1 participant
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.
Experiment to use nvptx-enabled rustc at https://github.com/rust-accel/rust
Features
llvm-link
in rustcLinks
See also #31