|
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 936 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 1245 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 207 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 631 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 1078 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 977 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 716 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 951 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 966 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 1295 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 683 of file mma_kernel.h.
Definition at line 1209 of file mma_kernel.h.
Definition at line 1181 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 1154 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 290 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 1254 of file mma_kernel.h.
| __global__ void max_reduce_kernel | ( | T *__restrict__ | bufred, |
| const int | n | ||
| ) |
Definition at line 593 of file mma_kernel.h.
| __inline__ __device__ T max_reduce_warp | ( | T | val | ) |
Definition at line 543 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 1170 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 1090 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 1122 of file mma_kernel.h.
| __global__ void maxval_kernel | ( | const T *__restrict__ | a, |
| T * | temp, | ||
| const int | n | ||
| ) |
Definition at line 555 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 926 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 263 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 228 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 475 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 58 of file mma_kernel.h.
| __global__ void mma_small_lu_kernel | ( | T *__restrict__ | A, |
| T *__restrict__ | b, | ||
| const int | n | ||
| ) |
Definition at line 130 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 121 of file mma_kernel.h.
| __global__ void mma_stabilize_hessian_single_kernel | ( | T *__restrict__ | Hess, |
| const int | m | ||
| ) |
Definition at line 100 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 308 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 335 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 375 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 440 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 80 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 41 of file mma_kernel.h.
| __global__ void mmareduce_kernel | ( | T *__restrict__ | bufred, |
| const int | n | ||
| ) |
Definition at line 751 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 780 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 893 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 810 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 842 of file mma_kernel.h.
| __global__ void norm_kernel | ( | const T *__restrict__ | a, |
| T *__restrict__ | buf_h, | ||
| const int | n | ||
| ) |
Definition at line 1036 of file mma_kernel.h.
| __inline__ __device__ T reduce_warp | ( | T | val | ) |
Definition at line 739 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 493 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 988 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 1025 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 524 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 1067 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 1277 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 1263 of file mma_kernel.h.