Adding GPU Support
See original GitHub issueEarly ideas:
-
Accept
device
flag forGF
instances. IfCUDA
, use a cupy array. -
Use
cupy.get_array_module
for device agnostic code where possible. -
Pytorch-like
.to(device)
: allow transferring between host and device(s). Internally this would just be anumpy{cupy}.asarray
orArray.view(np/cp.ndarray)
call. -
Most numpy functions in
galois/field/linalg.py
have corresponding cupy ones with identical syntax. -
Numba
jit
functions andufuncs
may require separate GPU implementations, especially if thread and block index need to be accessed.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:12 (5 by maintainers)
Top Results From Across the Web
How to install a graphics card - PCWorld
Firmly insert the card into the slot, then push down the plastic lock on the end of the PCI-E slot to hold it...
Read more >How to install GPU support in Model Builder - ML.NET
Learn how to install GPU support in Model Builder. ... Learn how to install the GPU drivers to use your GPU with Model...
Read more >CUDA Installation Guide for Microsoft Windows
Support for running x86 32-bit applications on x86_64 Windows is limited to use with: GeForce GPUs. CUDA Driver. CUDA Runtime (cudart). CUDA Math...
Read more >Add or remove GPUs - Compute Engine - Google Cloud
Specify the GPU type and Number of GPUs. If your GPU model supports virtual workstations, and you plan on running graphics-intensive workloads on...
Read more >Use an external graphics processor with your Mac
View the activity levels of built-in and external GPUs (Open Activity Monitor, then choose Window > GPU History.) eGPU support in apps and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
hey @mhostetter thanks so much for asking, but I have no thoughts regarding a desired API. I can’t promise I will end up using the library in the end, but I am very curious to see how it will perform and will be happy to test its performance! Thanks again for writing this library and being able to add GPU support!
Perhaps it’s because my arrays are large enough they don’t fit in the CPU cache or something…