All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kernels.double.transform.cu Maven / Gradle / Ivy

There is a newer version: 0.4-rc3.7
Show newest version
extern "C"
#include 
#include 
#include 
#include "deeplearning4j.h"
//an op for the kernel
__device__ double op(double d1,double *params);

__device__ void transform(int n,int idx,double *dy,int incy,double *params,double *result) {
	int totalThreads = gridDim.x * blockDim.x;
	int tid = threadIdx.x;
	int i = blockIdx.x * blockDim.x + tid;
	/* equal, positive, non-unit increments. */
	for (; i < n; i += totalThreads) {
		       result[i * incy] = op(dy[i * incy],params);

	}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy