759-bignum's People
759-bignum's Issues
Randomized Testing
GPU Subtraction
The essence of subtraction is simply addition with a negation and a carry in.
However, manipulating the correct size of the output may not be trivial and ensuring that carries are handled correctly may also prove to be a challenge.
GPU Add
11/10
Setup Environment
11/10
Good work, guys... Very nice progress
GPU Karatsuba
11/24
Functionality testing Split
I think the three way split needs regression testing,
GPU Carries
11/24
Many potential optimizations available to GPUs not available to hardware due to no area overheads and warp scheduling improving performance. (Being able to eliminate a group of 32 threads could improve performance.)
http://www.cl.cam.ac.uk/research/srg/han/ACS-P35/8-bit-KoggeStone-Adder.pdf
p_i = A_i xor B_i
g_i = A_i and B_i
P_i:j = P_i:k+1 and P_k:j
G_i:j = G_i:k+1 or (P_i:k+1 and G_k:j)
S_i = p_i xor C_i-1
- Implement with 1 bit / thread exactly as prescribed.
- Consider vectorizing with 32 bits / thread. At 2048 threads / MP * 60 MPs * 32 additions / thread ~ 4 million additions to saturate = 15MB operands.
- Compare against using addition + cmp ops at various stages to see if acceleration is possible. Only try if addition is still slow.
Rather than doing an addition followed by carry, calculate all carry information and do carry adds, followed by an addition operation without carries.
What collisions are possible with byte-level carries?
Because we don't have block-wise carries at the addition stage, can't finalize any results. It might be worth it to spend memory to speculate on outcome given a block carry and given no block carry. I'm not sure that's any better than actually
GPU Gradeschool
11/10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.