forum.alglib.net

ALGLIB forum
It is currently Sun Nov 16, 2025 4:34 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Alglib Functions in Cuda Kernels
PostPosted: Mon Nov 10, 2025 11:06 pm 
Offline

Joined: Mon Nov 10, 2025 10:51 pm
Posts: 1
I am currently writing some simulation software that utilizes Alglib's interpolation functions. I am preparing to draft a version that can be GPU accelerated with Cuda, and I was wondering if Alglib is compatible with Cuda kernels. Here is the general schematic of the relevant process:

- A functor object is constructed, and during construction, creates and stores a collection of spline1d/2d objects in a vector (either std::vector for CPU or thrust::device_vector for GPU). This functor would then be passed to the GPU with cudaMemAlloc/Copy.
- During the simulation, the functor's function call operator is passed a collection of values and, based on these values, chooses and evaluates the appropriate interpolation for a given value. This process would be called from within a Cuda kernel.

I know that, when building classes for GPU implementation, the __device__ decorator must be applied to class functions (or in this case, function call operators) so that they are made available to the GPU. I've looked through the Alglib source code (free version), and don't see any of these decorators. I suspect this will prevent me from calling the interpolation evaluations from the GPU, but I wanted to see if anyone with more experience can confirm this / has a work around.

Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 104 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group