question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding GPU Support

See original GitHub issue

Early ideas:

  1. Accept device flag for GF instances. If CUDA, use a cupy array.

  2. Use cupy.get_array_module for device agnostic code where possible.

  3. Pytorch-like .to(device): allow transferring between host and device(s). Internally this would just be a numpy{cupy}.asarray or Array.view(np/cp.ndarray) call.

  4. Most numpy functions in galois/field/linalg.py have corresponding cupy ones with identical syntax.

  5. Numba jit functions and ufuncs may require separate GPU implementations, especially if thread and block index need to be accessed.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
peter64commented, Oct 19, 2021

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!

1reaction
peter64commented, Sep 17, 2021
>>> print(galois.__version__)
0.0.21

Perhaps it’s because my arrays are large enough they don’t fit in the CPU cache or something…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found