| 25 | |
| 26 | template <typename T> |
| 27 | __global__ void ObjectiveLambdaKernal(T* news, T* olds, size_s n){ |
| 28 | size_s i = blockIdx.x * blockDim.x + threadIdx.x; |
| 29 | if(i<n){ |
| 30 | news[i] = (olds[i] * olds[i] - 1)*(olds[i] * olds[i] - 1); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | template <typename T> |
| 35 | __global__ void GradLambdaKernal(T* news, T* olds, size_s n){ |
nothing calls this directly
no outgoing calls
no test coverage detected