|
Neko-TOP
A portable framework for high-order spectral element flow toplogy optimization.
|
#include <cfloat>

Go to the source code of this file.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file mma_kernel.h.
| __global__ void AA_kernel | ( | T *__restrict__ | temp, |
| const T *__restrict__ | GG, | ||
| const T *__restrict__ | diagx, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 996 of file mma_kernel.h.
| __global__ void add2inv2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T | c, | ||
| const int | n | ||
| ) |
Definition at line 1341 of file mma_kernel.h.
| __global__ void delta_1dbeam_kernel | ( | T *__restrict__ | Delta, |
| const T | L_total, | ||
| const T | Le, | ||
| const int | offset, | ||
| const int | n | ||
| ) |
Definition at line 211 of file mma_kernel.h.
| __global__ void delx_kernel | ( | T *__restrict__ | delx, |
| const T *__restrict__ | x, | ||
| const T *__restrict__ | xlow, | ||
| const T *__restrict__ | xupp, | ||
| const T *__restrict__ | pij, | ||
| const T *__restrict__ | qij, | ||
| const T *__restrict__ | p0j, | ||
| const T *__restrict__ | q0j, | ||
| const T *__restrict__ | alpha, | ||
| const T *__restrict__ | beta, | ||
| const T *__restrict__ | lambda, | ||
| const T | epsi, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 691 of file mma_kernel.h.
| __global__ void dely_kernel | ( | T *__restrict__ | dely, |
| const T *__restrict__ | c, | ||
| const T *__restrict__ | d, | ||
| const T *__restrict__ | y, | ||
| const T *__restrict__ | lambda, | ||
| const T | epsi, | ||
| const int | n | ||
| ) |
Definition at line 1138 of file mma_kernel.h.
| __global__ void deta_kernel | ( | T *__restrict__ | deta, |
| const T *__restrict__ | eta, | ||
| const T *__restrict__ | dx, | ||
| const T *__restrict__ | x, | ||
| const T *__restrict__ | beta, | ||
| const T | epsi, | ||
| const int | n | ||
| ) |
Definition at line 1037 of file mma_kernel.h.
| __global__ void diagx_kernel | ( | T *__restrict__ | diagx, |
| const T *__restrict__ | x, | ||
| const T *__restrict__ | xsi, | ||
| const T *__restrict__ | xlow, | ||
| const T *__restrict__ | xupp, | ||
| const T *__restrict__ | p0j, | ||
| const T *__restrict__ | q0j, | ||
| const T *__restrict__ | pij, | ||
| const T *__restrict__ | qij, | ||
| const T * | alpha, | ||
| const T * | beta, | ||
| const T * | eta, | ||
| const T * | lambda, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 776 of file mma_kernel.h.
| __global__ void dx_kernel | ( | T *__restrict__ | dx, |
| const T *__restrict__ | delx, | ||
| const T *__restrict__ | diagx, | ||
| const T *__restrict__ | GG, | ||
| const T *__restrict__ | dlambda, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 1011 of file mma_kernel.h.
| __global__ void dxsi_kernel | ( | T *__restrict__ | dxsi, |
| const T *__restrict__ | xsi, | ||
| const T *__restrict__ | dx, | ||
| const T *__restrict__ | x, | ||
| const T *__restrict__ | alpha, | ||
| const T | epsi, | ||
| const int | n | ||
| ) |
Definition at line 1026 of file mma_kernel.h.
| __global__ void dy_kernel | ( | T *__restrict__ | dy, |
| const T *__restrict__ | dely, | ||
| const T *__restrict__ | dlambda, | ||
| const T *__restrict__ | d, | ||
| const T *__restrict__ | mu, | ||
| const T *__restrict__ | y, | ||
| const int | n | ||
| ) |
Definition at line 1391 of file mma_kernel.h.
| __global__ void GG_kernel | ( | T *__restrict__ | GG, |
| const T *__restrict__ | x, | ||
| const T *__restrict__ | xlow, | ||
| const T *__restrict__ | xupp, | ||
| const T *__restrict__ | pij, | ||
| const T *__restrict__ | qij, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 743 of file mma_kernel.h.
Definition at line 1305 of file mma_kernel.h.
Definition at line 1277 of file mma_kernel.h.
| __global__ void kkt_rex_kernel | ( | T *__restrict__ | rex, |
| const T *__restrict__ | df0dx, | ||
| const T *__restrict__ | dfdx, | ||
| const T *__restrict__ | xsi, | ||
| const T *__restrict__ | eta, | ||
| const T *__restrict__ | lambda, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 1214 of file mma_kernel.h.
| __global__ void mattrans_v_mul_kernel | ( | T *__restrict__ | output, |
| const T *__restrict__ | pij, | ||
| const T *__restrict__ | lambda, | ||
| const int | m, | ||
| const int | n | ||
| ) |
Definition at line 297 of file mma_kernel.h.
| __global__ void max2_kernel | ( | T *__restrict__ | a, |
| const T | b, | ||
| const T *__restrict__ | c, | ||
| const T | d, | ||
| const int | n | ||
| ) |
Definition at line 1350 of file mma_kernel.h.
| __global__ void max_reduce_kernel | ( | T *__restrict__ | bufred, |
| const int | n | ||
| ) |
Definition at line 653 of file mma_kernel.h.
| __inline__ __device__ T max_reduce_warp | ( | T | val | ) |
Definition at line 603 of file mma_kernel.h.
| __global__ void maxcons_kernel | ( | T *__restrict__ | a, |
| const T | b, | ||
| const T | c, | ||
| const T *__restrict__ | d, | ||
| const int | n | ||
| ) |
Definition at line 1266 of file mma_kernel.h.
| __global__ void maxval2_kernel | ( | const T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| T *__restrict__ | temp, | ||
| const T | cons, | ||
| const int | n | ||
| ) |
Definition at line 1150 of file mma_kernel.h.
| __global__ void maxval3_kernel | ( | const T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| T *__restrict__ | temp, | ||
| const T | cons, | ||
| const int | n | ||
| ) |
Definition at line 1182 of file mma_kernel.h.
| __global__ void maxval_kernel | ( | const T *__restrict__ | a, |
| T * | temp, | ||
| const int | n | ||
| ) |
Definition at line 615 of file mma_kernel.h.
| __global__ void mma_copy_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 986 of file mma_kernel.h.
| __global__ void mma_dip_kkt_kernel | ( | T *__restrict__ | res, |
| const T *__restrict__ | x, | ||
| const T *__restrict__ | df0dx, | ||
| const T *__restrict__ | dfdx, | ||
| const T *__restrict__ | xmin, | ||
| const T *__restrict__ | xmax, | ||
| const T *__restrict__ | lambda, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 1234 of file mma_kernel.h.
| __global__ void mma_dipsolvesub1_kernel | ( | T *__restrict__ | x, |
| const T *__restrict__ | pjlambda, | ||
| const T *__restrict__ | qjlambda, | ||
| const T *__restrict__ | low, | ||
| const T *__restrict__ | upp, | ||
| const T *__restrict__ | alpha, | ||
| const T *__restrict__ | beta, | ||
| const int | n | ||
| ) |
Definition at line 270 of file mma_kernel.h.
| __global__ void mma_Ljjxinv_kernel | ( | T *__restrict__ | Ljjxinv, |
| const T *__restrict__ | pjlambda, | ||
| const T *__restrict__ | qjlambda, | ||
| const T *__restrict__ | x, | ||
| const T *__restrict__ | low, | ||
| const T *__restrict__ | upp, | ||
| const T *__restrict__ | alpha, | ||
| const T *__restrict__ | beta, | ||
| const int | n | ||
| ) |
Definition at line 232 of file mma_kernel.h.
| __global__ void mma_max2_kernel | ( | T *__restrict__ | xsi, |
| const T *__restrict__ | x, | ||
| const T *__restrict__ | alpha, | ||
| const int | n | ||
| ) |
Definition at line 535 of file mma_kernel.h.
| __global__ void mma_prepare_aa_matrix_kernel | ( | T *__restrict__ | AA, |
| const T *__restrict__ | s, | ||
| const T *__restrict__ | lambda, | ||
| const T *__restrict__ | d, | ||
| const T *__restrict__ | mu, | ||
| const T *__restrict__ | y, | ||
| const T *__restrict__ | a, | ||
| const T | zeta, | ||
| const T | z, | ||
| const int | m | ||
| ) |
Definition at line 62 of file mma_kernel.h.
| __global__ void mma_small_lu_kernel | ( | T *__restrict__ | A, |
| T *__restrict__ | b, | ||
| const int | n | ||
| ) |
Definition at line 134 of file mma_kernel.h.
| __global__ void mma_stabilize_hessian_multi_kernel | ( | T *__restrict__ | Hess, |
| const T | lm_factor, | ||
| const int | m | ||
| ) |
Definition at line 125 of file mma_kernel.h.
| __global__ void mma_stabilize_hessian_single_kernel | ( | T *__restrict__ | Hess, |
| const int | m | ||
| ) |
Definition at line 104 of file mma_kernel.h.
| __global__ void mma_sub1_kernel | ( | T *__restrict__ | xlow, |
| T *__restrict__ | xupp, | ||
| const T *__restrict__ | x, | ||
| const T *__restrict__ | xmin, | ||
| const T *__restrict__ | xmax, | ||
| const T | asyinit, | ||
| const int | n | ||
| ) |
Definition at line 315 of file mma_kernel.h.
| __global__ void mma_sub2_kernel | ( | T *__restrict__ | low, |
| T *__restrict__ | upp, | ||
| const T *__restrict__ | x, | ||
| const T *__restrict__ | xold1, | ||
| const T *__restrict__ | xold2, | ||
| const T *__restrict__ | xdiff, | ||
| const T | asydecr, | ||
| const T | asyincr, | ||
| const int | n | ||
| ) |
Definition at line 342 of file mma_kernel.h.
| __global__ void mma_sub3_dip_kernel | ( | const T *__restrict__ | x, |
| const T *__restrict__ | df0dx, | ||
| const T *__restrict__ | dfdx, | ||
| T *__restrict__ | low, | ||
| T *__restrict__ | upp, | ||
| const T *__restrict__ | xmin, | ||
| const T *__restrict__ | xmax, | ||
| T *__restrict__ | alpha, | ||
| T *__restrict__ | beta, | ||
| T *__restrict__ | p0j, | ||
| T *__restrict__ | q0j, | ||
| T *__restrict__ | pij, | ||
| T *__restrict__ | qij, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 450 of file mma_kernel.h.
| __global__ void mma_sub3_kernel | ( | const T *__restrict__ | x, |
| const T *__restrict__ | df0dx, | ||
| const T *__restrict__ | dfdx, | ||
| T *__restrict__ | low, | ||
| T *__restrict__ | upp, | ||
| const T *__restrict__ | xmin, | ||
| const T *__restrict__ | xmax, | ||
| T *__restrict__ | alpha, | ||
| T *__restrict__ | beta, | ||
| T *__restrict__ | p0j, | ||
| T *__restrict__ | q0j, | ||
| T *__restrict__ | pij, | ||
| T *__restrict__ | qij, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 382 of file mma_kernel.h.
| __global__ void mma_sub4_kernel | ( | const T *__restrict__ | x, |
| const T *__restrict__ | low, | ||
| const T *__restrict__ | upp, | ||
| const T *__restrict__ | pij, | ||
| const T *__restrict__ | qij, | ||
| T *__restrict__ | temp, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 500 of file mma_kernel.h.
| __global__ void mma_update_hessian_diagonal_kernel | ( | T *__restrict__ | Hess, |
| const T *__restrict__ | y, | ||
| const T *__restrict__ | mu, | ||
| const T *__restrict__ | lambda, | ||
| const int | m | ||
| ) |
Definition at line 84 of file mma_kernel.h.
| __global__ void mma_update_hessian_z_kernel | ( | T *__restrict__ | Hess, |
| const T *__restrict__ | a, | ||
| const int | m | ||
| ) |
Definition at line 45 of file mma_kernel.h.
| __global__ void mmareduce_kernel | ( | T *__restrict__ | bufred, |
| const int | n | ||
| ) |
Definition at line 811 of file mma_kernel.h.
| __global__ void mmasum_kernel | ( | const T *__restrict__ | a, |
| T *__restrict__ | buf_h, | ||
| const int | n, | ||
| const int | m, | ||
| const int | k | ||
| ) |
Definition at line 840 of file mma_kernel.h.
| __global__ void mmasumAA_kernel | ( | const T *__restrict__ | GG, |
| const T *__restrict__ | diagx, | ||
| T *__restrict__ | buf_h, | ||
| const int | n, | ||
| const int | m, | ||
| const int | k0, | ||
| const int | k1 | ||
| ) |
Definition at line 953 of file mma_kernel.h.
| __global__ void mmasumbb_kernel | ( | const T *__restrict__ | GG, |
| const T *__restrict__ | delx, | ||
| const T *__restrict__ | diagx, | ||
| T *__restrict__ | buf_h, | ||
| const int | n, | ||
| const int | m, | ||
| const int | k | ||
| ) |
Definition at line 870 of file mma_kernel.h.
| __global__ void mmasumHess_kernel | ( | const T *__restrict__ | hijx, |
| const T *__restrict__ | Ljjxinv, | ||
| T *__restrict__ | buf_h, | ||
| const int | n, | ||
| const int | m, | ||
| const int | k0, | ||
| const int | k1 | ||
| ) |
Definition at line 902 of file mma_kernel.h.
| __global__ void norm_kernel | ( | const T *__restrict__ | a, |
| T *__restrict__ | buf_h, | ||
| const int | n | ||
| ) |
Definition at line 1096 of file mma_kernel.h.
| __inline__ __device__ T reduce_warp | ( | T | val | ) |
Definition at line 799 of file mma_kernel.h.
| __global__ void relambda_kernel | ( | T *__restrict__ | temp, |
| const T *__restrict__ | x, | ||
| const T *__restrict__ | xupp, | ||
| const T *__restrict__ | xlow, | ||
| const T *__restrict__ | pij, | ||
| const T *__restrict__ | qij, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 553 of file mma_kernel.h.
| __global__ void RexCalculation_kernel | ( | T *__restrict__ | rex, |
| const T *__restrict__ | x, | ||
| const T *__restrict__ | xlow, | ||
| const T *__restrict__ | xupp, | ||
| const T *__restrict__ | pij, | ||
| const T *__restrict__ | p0j, | ||
| const T *__restrict__ | qij, | ||
| const T *__restrict__ | q0j, | ||
| const T *__restrict__ | lambda, | ||
| const T *__restrict__ | xsi, | ||
| const T *__restrict__ | eta, | ||
| const int | n, | ||
| const int | m | ||
| ) |
Definition at line 1048 of file mma_kernel.h.
| __global__ void rey_calculation_kernel | ( | T *__restrict__ | rey, |
| const T *__restrict__ | c, | ||
| const T *__restrict__ | d, | ||
| const T *__restrict__ | y, | ||
| const T *__restrict__ | lambda, | ||
| const T *__restrict__ | mu, | ||
| const int | n | ||
| ) |
Definition at line 1085 of file mma_kernel.h.
| __global__ void sub2cons2_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const T *__restrict__ | d, | ||
| const T | e, | ||
| const int | n | ||
| ) |
Definition at line 584 of file mma_kernel.h.
| __global__ void sub2cons_kernel | ( | T *__restrict__ | a, |
| const T *__restrict__ | b, | ||
| const T *__restrict__ | c, | ||
| const T | d, | ||
| const int | n | ||
| ) |
Definition at line 1127 of file mma_kernel.h.
| __global__ void updateAA_kernel | ( | T *__restrict__ | AA, |
| const T *__restrict__ | globaltmp_mm, | ||
| const T *__restrict__ | s, | ||
| const T *__restrict__ | lambda, | ||
| const T *__restrict__ | d, | ||
| const T *__restrict__ | mu, | ||
| const T *__restrict__ | y, | ||
| const T *__restrict__ | a, | ||
| const T | zeta, | ||
| const T | z, | ||
| const int | m | ||
| ) |
Definition at line 1373 of file mma_kernel.h.
| __global__ void updatebb_kernel | ( | T *__restrict__ | bb, |
| const T *__restrict__ | dellambda, | ||
| const T *__restrict__ | dely, | ||
| const T *__restrict__ | d, | ||
| const T *__restrict__ | mu, | ||
| const T *__restrict__ | y, | ||
| const T | delz, | ||
| const int | m | ||
| ) |
Definition at line 1359 of file mma_kernel.h.