-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add support for architectures in the wrappers #4
Conversation
af3226b
to
f80d2d9
Compare
First package built for multiple architectures: https://github.com/giordano/Darknet_jll.jl |
28bd1af
to
3e684c7
Compare
dba7235
to
9160149
Compare
9160149
to
59a9427
Compare
src/Rootfs.jl
Outdated
ExtendedPlatform(Linux(:aarch64, libc=:glibc); march="carmel") | ||
ExtendedPlatform(Linux(:aarch64, libc=:glibc); march="thunderx2") | ||
|
||
julia> expand_marchs(Windows(:i686)) | ||
1-element Array{Windows,1}: | ||
Windows(:i686) | ||
``` | ||
""" | ||
function expand_marchs(p::Platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sold on expand_marchs()
as a name.
expand_microarchitectures()
is very clear.expand_marches()
sounds better, but reads worse.expand_cpu_types()
is shorter than the first one, but still gets the idea across.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, happy to change the name. I went with expand_microarchitectures
, we already have very verbose expand_*
functions 😀
src/Runner.jl
Outdated
@@ -23,13 +23,27 @@ function proc_family(p::Platform) | |||
end | |||
end | |||
|
|||
function supported_marchs(p::Platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should follow the naming of expand_marchs()
above, whatever we decide upon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed to supported_microarchitectures
. I've also moved it to src/Rootfs.jl
, as this function now is used only by expand_microarchitectures()
(in previous revisions it was used elsewhere, but this is now unnecessary)
Co-authored-by: Elliot Saba <staticfloat@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I addressed all comments, thanks for the review!
src/Rootfs.jl
Outdated
ExtendedPlatform(Linux(:aarch64, libc=:glibc); march="carmel") | ||
ExtendedPlatform(Linux(:aarch64, libc=:glibc); march="thunderx2") | ||
|
||
julia> expand_marchs(Windows(:i686)) | ||
1-element Array{Windows,1}: | ||
Windows(:i686) | ||
``` | ||
""" | ||
function expand_marchs(p::Platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, happy to change the name. I went with expand_microarchitectures
, we already have very verbose expand_*
functions 😀
src/Runner.jl
Outdated
@@ -23,13 +23,27 @@ function proc_family(p::Platform) | |||
end | |||
end | |||
|
|||
function supported_marchs(p::Platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed to supported_microarchitectures
. I've also moved it to src/Rootfs.jl
, as this function now is used only by expand_microarchitectures()
(in previous revisions it was used elsewhere, but this is now unnecessary)
This is still very much work in progress
Still to do:
extended_platform_key_abi()
?gcc_version
to take march into account?is_for_platform
to usebase_platform
defined in this PR. It should usearch()
function instead of accessing.arch
fieldminimum_instruction_set
more instruction sets