46#include <cuda_runtime.h>
49#include <neko/device/cuda/check.h>
50#include <neko/device/device_config.h>
71 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
97 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
123 const dim3 nblcks(((*n) + 1024 - 1) / 1024, 1, 1);
128 *
psi, *
smax, *xmin, *xmax, *n);
HIP kernels of the steepest-descent optimizer.
void cuda_sd_direction(void *s_d, void *x_d, real *xmin, real *xmax, int *n)
void cuda_sd_update_design(void *x_new_d, void *x_d, void *s_d, void *delta_d, real *psi, real *smax, real *xmin, real *xmax, int *n)
void cuda_sd_update_move_limits(void *delta_d, void *x_d, void *x1_d, void *x2_d, real *dec, real *inc, real *dmin, real *dmax, int *n)