lmas / opensimplex

This repo has been migrated to https://code.larus.se/lmas/opensimplex
MIT License
241 stars 29 forks source link

GPU support #44

Closed TWang1017 closed 1 year ago

TWang1017 commented 1 year ago

Hi, Thanks for the great work!

Im trying to integrate the simplex noise into my pytorch pipeline, but it is not gpt-supported and i have to loop hundred of thousand times to create noise for my img, any idea how to accelerate it in pytorch?

lmas commented 1 year ago

Hiya, sorry no idea. Doesn't seem like pytorch supports FreeBSD (still) so I haven't been able to even install it in the last couple of years.

Have you tried having Numba installed and let it do some optimisations?

Julian-Wyatt commented 1 year ago

@lmas Would you be happy if I looked into adding PyTorch support for your library?

lmas commented 1 year ago

@Julian-Wyatt Thanks for the offer and for asking beforehand (!), but no thanks. I don't want to be personally responsible for or spend maintenance time on code/features (with low demand) I can't run on my own systems.

If you need performance you should stop using Python and find some other language with related tools, libraries or C bindings.

(on a semi-related note, I should clarify I'm also supporting FreeBSD in the README)