|
Neko-TOP
A portable framework for high-order spectral element flow toplogy optimization.
|

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 922 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 1231 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 193 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 617 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 1064 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 963 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 702 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 937 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 952 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 1281 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 669 of file mma_kernel.h.
Definition at line 1195 of file mma_kernel.h.
Definition at line 1167 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 1140 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 276 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 1240 of file mma_kernel.h.
| __global__ void max_reduce_kernel | ( | T *__restrict__ | bufred, |
| const int | n | ||
| ) |
Definition at line 579 of file mma_kernel.h.
| __inline__ __device__ T max_reduce_warp | ( | T | val | ) |
Definition at line 529 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 1156 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 1076 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 1108 of file mma_kernel.h.
| __global__ void maxval_kernel | ( | const T *__restrict__ | a, |
| T * | temp, | ||
| const int | n | ||
| ) |
Definition at line 541 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 912 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 249 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 214 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 461 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 41 of file mma_kernel.h.
| __global__ void mma_small_lu_kernel | ( | T *__restrict__ | A, |
| T *__restrict__ | b, | ||
| const int | n | ||
| ) |
Definition at line 116 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 107 of file mma_kernel.h.
| __global__ void mma_stabilize_hessian_single_kernel | ( | T *__restrict__ | Hess, |
| const int | m | ||
| ) |
Definition at line 86 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 294 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 321 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 361 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 426 of file mma_kernel.h.
| __global__ void mma_update_hessian_diagonal_kernel | ( | T *__restrict__ | Hess, |
| const T *__restrict__ | y, | ||
| const T *__restrict__ | d, | ||
| const T *__restrict__ | mu, | ||
| const T *__restrict__ | lambda, | ||
| const int | m | ||
| ) |
Definition at line 63 of file mma_kernel.h.
| __global__ void mmareduce_kernel | ( | T *__restrict__ | bufred, |
| const int | n | ||
| ) |
Definition at line 737 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 766 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 879 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 796 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 828 of file mma_kernel.h.
| __global__ void norm_kernel | ( | const T *__restrict__ | a, |
| T *__restrict__ | buf_h, | ||
| const int | n | ||
| ) |
Definition at line 1022 of file mma_kernel.h.
| __inline__ __device__ T reduce_warp | ( | T | val | ) |
Definition at line 725 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 479 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 974 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 1011 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 510 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 1053 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 1263 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 1249 of file mma_kernel.h.