
net.finmath.montecarlo.RandomVariableCudaKernel.cl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib-cuda-extensions Show documentation
Show all versions of finmath-lib-cuda-extensions Show documentation
Enabling finmath-lib to perform Monte-Carlo simulations on the GPGPU using Cuda.
__kernel void capByScalar(int n, __global const float *a, float b, __global float *result)
{
float cap = b;
int i = get_global_id(0);
if (i floor ? a[i] : floor;
}
}
__kernel void addScalar(int n, __global const float *a, float b, __global float *result)
{
int i = get_global_id(0);
if (i b[i] ? a[i] : b[i];
}
}
__kernel void add(int n, __global const float *a, __global const float *b, __global float *result)
{
int i = get_global_id(0);
if (i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy