37#ifndef __NEKO_HIP_RAMP_MAPPING_KERNELS__
38#define __NEKO_HIP_RAMP_MAPPING_KERNELS__
51 for (
int i =
idx; i < n; i +=
str) {
53 + (f_max - f_min) *
X_in_d[i] / (1.0 + q * (1.0 -
X_in_d[i]));
68 for (
int i =
idx; i < n; i +=
str) {
69 sens_out_d[i] = (f_max - f_min) * (q + 1.0) / (
70 (1.0 - q * (
X_in_d[i] - 1.0)) * (1.0 - q * (
X_in_d[i] - 1.0))
85 for (
int i =
idx; i < n; i +=
str) {
87 + (f_max - f_min) *
X_in_d[i] * (1.0 + q) / (
X_in_d[i] + q);
102 for (
int i =
idx; i < n; i +=
str) {
__global__ void convex_down_RAMP_mapping_apply_kernel(const T f_min, const T f_max, const T q, T *__restrict__ X_out_d, T *__restrict__ X_in_d, const int n)
__global__ void convex_up_RAMP_mapping_apply_backward_kernel(const T f_min, const T f_max, const T q, T *__restrict__ sens_out_d, T *__restrict__ sens_in_d, T *__restrict__ X_in_d, const int n)
__global__ void convex_down_RAMP_mapping_apply_backward_kernel(const T f_min, const T f_max, const T q, T *__restrict__ sens_out_d, T *__restrict__ sens_in_d, T *__restrict__ X_in_d, const int n)
__global__ void convex_up_RAMP_mapping_apply_kernel(const T f_min, const T f_max, const T q, T *__restrict__ X_out_d, T *__restrict__ X_in_d, const int n)