in reply to Perl GPGPU Modules

I don't know your use-case but a roundabout way of utilising GPUs via Perl can be with AI::MXNet

The other way would be to try and Inline::C a Cuda-C program. I am curious if their hello world would work. Warning: my last attempt to inline calls to external libraries with specific header-file naming conventions, failed because of naming clashes, see Inline::CPP + OpenCV = problems

bw, bliako

Replies are listed 'Best First'.
Re^2: Perl GPGPU Modules
by kcott (Archbishop) on Jun 30, 2021 at 10:32 UTC

    G'day bliako,

    I did come across AI::MXNet earlier during my searching; via a fairly circuitous route, if I recall, after following a series of links. I think I took the AI:: and the abstract ("Perl interface to MXNet machine learning library") to indicate this was not what I wanted.

    I now see, several screenfuls down, "The MXNet Perl package brings flexible and efficient GPU computing and state-of-art deep learning to Perl." (my emphasis). If only the abstract had been a bit more informative. I'm currently in the processing of installing the module.

    The ExtUtils::nvcc module also has an Inline::C example. A dependency of a dependency needs a reboot to complete installation; that's not convenient right now but I'll get to it in a day or two. When that's done, I can try your suggested CUDA example; CUDA is in that dependency chain currently stuck in a traffic jam. :-)

    — Ken