Search
Items tagged with: pdl
One of the reasons I keep dropping hints about #perlffi , #pdl and #openmp is that one can literally have five multithreading frameworks in the same #perl application of a master process: 1) PDL, and FFI intefacing with 2) #Fortran coarrays, 3) Fortran openmp, 4) #c openmp and 5) #cplusplus #openmp. All these frameworks can share memory addresses for array and vector objects, and #perl aided by #PerlAlien makes the authoring of the high-level code a pleasure ! https://hgpu.org/?p=29403
submitted by /u/ReplacementSlight413
[link] [comments]
Optimizing the Weather Research and Forecasting Model with OpenMP Offload and Codee
Currently, the Weather Research and Forecasting model (WRF) utilizes shared memory (OpenMP) and distributed memory (MPI) parallelisms. To take advantage of GPU resources on the Perlmutter supercomp…hgpu.org
A couple of data/compute intensive examples using Perl Data Language (#PDL), #OpenMP, #Perl, Inline and #Python (base, #numpy, #numba). Kind of interesting to see Python eat Perl's dust and PDL being equal to numpy.
OpenMP and Perl's multithreaded #PDL array language were the clear winners here.
submitted by /u/ReplacementSlight413
[link] [comments]
The Quest for Performance Part I : Inline C, OpenMP and PDL
Sometimes, one’s code must simply perform and principles, such as aeasthetics, “cleverness” or commitment to a single language solution simply go out of the window.Killing-It-with-PERL
. @leonerd
I saw your post here about extensible syntax <https://www.nntp.perl.org/group/perl.perl5.porters/2024/03/msg268067.html> and mentioned it to the #PDL team because we have a module called NiceSlice that implements a variable postfix syntax using a source filter. This obviously has problems for complex code.
We'd like something more robust and were wondering if you had any thoughts about ways we could not use a source filter and still get this working (in a lexical scope of course).
#perl
#github repo for some of my confused benchmarks of #pdl in #perl.
https://github.com/chrisarg/storePDL
This formed the basis of the post below
https://mstdn.science/@ChristosArgyrop/111390899840374127
There is a nice #preprint going over #pdl its inline module PP and inline #clang
https://arxiv.org/abs/1702.07753
The preprint and my rudimentary benchmarks argue for revisiting #perl for #datascience applications.
Incidentally, running the benchmark under #WSL in #Windows11 gives the same performance as running it under #Ubuntu.
@Perl
GitHub - chrisarg/storePDL: Examines various ways to process long arrays of integers in perl, PDL and inline C. This is just preliminary work to iron out some design decisions for a Nanonore sequence alignment application
Examines various ways to process long arrays of integers in perl, PDL and inline C. This is just preliminary work to iron out some design decisions for a Nanonore sequence alignment application - G...GitHub
---
This adds an example of using the Enformer model for gene expression prediction with #PDL and #BioPerl.
https://nbviewer.org/github/EntropyOrg/perl-AI-TensorFlow-Libtensorflow/blob/master/notebook/InferenceUsingTFHubEnformerGeneExprPredModel.ipynb
@Perl #cpan #ml #bioinformatics #TensorFlow #gnuplot
https://nbviewer.org/github/EntropyOrg/perl-AI-TensorFlow-Libtensorflow/blob/master/notebook/InferenceUsingTFHubMobileNetV2Model.ipynb
Also viewable as POD https://metacpan.org/release/ZMUGHAL/AI-TensorFlow-Libtensorflow-0.0.4/view/lib/AI/TensorFlow/Libtensorflow/Manual/InferenceUsingTFHubMobileNetV2Model.pod which also contains the runnable code.
@Perl #Perl #CPAN #ML #TensorFlow #PDL