39#include <hip/hip_runtime.h>
42#include <neko/device/device_config.h>
43#include <neko/device/hip/check.h>
46#include "SIMP_mapping_kernel.h"
52void hip_SIMP_mapping_apply(
real* f_min,
real* f_max,
real* p,
56 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
66void hip_SIMP_mapping_apply_backward(
real* f_min,
real* f_max,
70 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
__global__ void heaviside_mapping_apply_kernel(const T beta, const T eta, T *__restrict__ X_out_d, T *__restrict__ X_in_d, const int n)