|
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 902 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 1211 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 195 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 603 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 1044 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 943 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 687 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 917 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 932 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 1261 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 655 of file mma_kernel.h.
Definition at line 1175 of file mma_kernel.h.
Definition at line 1147 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 1120 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 278 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 1220 of file mma_kernel.h.
| __global__ void max_reduce_kernel | ( | T *__restrict__ | bufred, |
| const int | n | ||
| ) |
Definition at line 564 of file mma_kernel.h.
| __inline__ __device__ T max_reduce_warp | ( | T | val | ) |
Definition at line 526 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 1136 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 1056 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 1088 of file mma_kernel.h.
| __global__ void maxval_kernel | ( | const T *__restrict__ | a, |
| T * | temp, | ||
| const int | n | ||
| ) |
Definition at line 534 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 892 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 251 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 216 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 462 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 42 of file mma_kernel.h.
| __global__ void mma_small_lu_kernel | ( | T *__restrict__ | A, |
| T *__restrict__ | b, | ||
| const int | n | ||
| ) |
Definition at line 117 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 108 of file mma_kernel.h.
| __global__ void mma_stabilize_hessian_single_kernel | ( | T *__restrict__ | Hess, |
| const int | m | ||
| ) |
Definition at line 87 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 297 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 322 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 362 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 427 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 64 of file mma_kernel.h.
| __global__ void mmareduce_kernel | ( | T *__restrict__ | bufred, |
| const int | n | ||
| ) |
Definition at line 718 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 747 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 859 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 777 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 809 of file mma_kernel.h.
| __global__ void norm_kernel | ( | const T *__restrict__ | a, |
| T *__restrict__ | buf_h, | ||
| const int | n | ||
| ) |
Definition at line 1000 of file mma_kernel.h.
| __inline__ __device__ T reduce_warp | ( | T | val | ) |
Definition at line 710 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 477 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 953 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 989 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 508 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 1033 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 1243 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 1229 of file mma_kernel.h.