nlw0 / chipsort.jl Goto Github PK
View Code? Open in Web Editor NEWSorting deeds done down the chip
License: MIT License
Sorting deeds done down the chip
License: MIT License
I have x = rand(Int, 128)
how do I sort this using ChipSort? sort(x)
works great, but can't figure out how to do this with ChipSort.jl.
julia> chipsort_large(bigdata, Val(8), Val(32)) == sort(bigdata)
ERROR: MethodError: no method matching shufflevector(::SIMD.Vec{8, Int32}, ::SIMD.Vec{8, Int32}, ::Type{Val{(0, 8, 1, 9, 2, 10, 3, 11)}})
Closest candidates are:
shufflevector(::SIMD.Vec{N, T}, ::SIMD.Vec{N, T}, ::Val{I}) where {N, T, I}
@ SIMD ~/.julia/packages/SIMD/uoGjY/src/simdvec.jl:484
shufflevector(::SIMD.Vec{N, T}, ::Val{I}) where {N, T, I}
@ SIMD ~/.julia/packages/SIMD/uoGjY/src/simdvec.jl:481
It should now be using Val(I)
rather than Val{I}
.
Currently we only support powers of two up to 32. It would be nice to support any size.
One way to do it would be to update the parameters file, but many networks in the available references are actually obtained via the Bose-Nelson algorithm. We should store parameters only for the necessary network sizes, and actually run the algorithm otherwise.
bigdata = rand(Int32, 2^20)
using ChipSort, SIMD
@time chipsort_large(bigdata, Val(8), Val(32));
@time sort(bigdata);
using SortingAlgorithms
@time sort(bigdata, alg=RadixSort);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.