add function to generate list of random numbers with cuda and opencl on the device
This commit is contained in:
@@ -878,3 +878,12 @@ int DKSBase::callParallelTTrackerPushTransform(void *x_ptr, void *p_ptr,
|
||||
return DKS_ERROR;
|
||||
|
||||
}
|
||||
|
||||
int DKSBase::callCreateRandomNumbers(void *mem_ptr, int size) {
|
||||
if (apiCuda())
|
||||
return CUDA_SAFECALL(cbase->cuda_createRandomNumbers(mem_ptr, size));
|
||||
if (apiOpenCL())
|
||||
return OPENCL_SAFECALL(oclbase->ocl_createRandomNumbers(mem_ptr, size));
|
||||
|
||||
return DKS_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user