Skip to content
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

GPU support so it can be run in a farm of RTX 4090s? #259

Open
jax21es opened this issue Dec 29, 2022 · 1 comment
Open

GPU support so it can be run in a farm of RTX 4090s? #259

jax21es opened this issue Dec 29, 2022 · 1 comment

Comments

@jax21es
Copy link

jax21es commented Dec 29, 2022

No description provided.

@jax21es jax21es changed the title GPU support so it can be run in a pool of RTX 4090s? GPU support so it can be run in a farm of RTX 4090s? Dec 29, 2022
@andyman1222
Copy link

Unfortunately GLSL doesn't support JavaScript strings and as such a 1:1 implementation is impossible. However you can achieve the same result by simply passing "0" or "1" as uniform variables into shader code, effectively enabling GPU support but just doing the bulk work on the CPU like most graphics applications do anyways.

Or alternatively, implement the logic itself into a vertex shader (unless you want to interpolate the truthfulness of a number being even over multiple fragments, then the fragment shader will do), but you will likely run into memory limitations because GPUs have limited room to store compiled shader code. I suggest in this case looking into about 100 individual render buffers to accomplish this task for numbers up to about 10^10 or however high this repo goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants