// N-S equation demonstration
// High Performance Scitific Computation
// Cavity Lid Driven Flow
// CUDA version
// 19M18085 Lian Tongda

#include <iostream>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>

using namespace std;

// Initialization of variables
void init(double *u, double *un, double *v, double *vn, double *p, double *pn, double *b, int nx, int ny)
{
    int i, j;
    for(i = 0; i < nx ; i++){
        for(j = 0; j < ny ; j++){
            u[j*nx+i] = 0.0;
            un[j*nx+i] = 0.0;
            v[j*nx+i] = 0.0;
            vn[j*nx+i] = 0.0;
            p[j*nx+i] = 0.0;
            pn[j*nx+i] = 0.0;
            b[j*nx+i] = 0.0;
        }
    }
//    Velocity of Lid
    for(i = 0 ; i < nx ;i++)
    {
        u[(nx-1)*nx + i] = 1.0;
        un[(nx-1)*nx + i] = 1.0;
    }
    cout<<"DATA INITIALIZED"<<endl;

}

__global__
void build_up_b(double *b, double *u, double *v, double rho, double dt, double dx, double dy, int nx, int ny)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
//    double term1, term2, term3, term4;
    
    if(i > 0 && i < nx - 1 && j > 0 && j < ny - 1)
    {
//        term1 = (u[j*nx + i+1] - u[j*nx + i-1]) / (2 * dx) +
//        (v[(j+1)*nx+i] - v[(j-1)*nx+i]) / (2 * dy);
//
//        term2 = (u[j*nx + i+1] - u[j*nx + i-1]) / (2 * dx);
//
//        term3 = (u[(j+1)*nx+i] - u[(j-1)*nx+i]) *
//        (v[j*nx + i+1] - v[j*nx + i-1]) / (2*2*dx*dy);
//
//        term4 = (v[(j+1)*nx+i] - v[(j-1)*nx+i]) / (2 * dy);
//
//         b[j*nx+i] = (term1) / (dt) - (term2) * (term2) - 2 * (term3) - (term4) * (term4);
        
        b[j*nx+i] =
                   (rho * ( 1.0/dt *
                           ((u[j*nx + i+1] - u[j*nx + i-1]) / (2 * dx)
                          + (v[(j+1)*nx+i] - v[(j-1)*nx+i]) / (2 * dy)) -
                   ((u[j*nx+i+1] - u[j*nx+i-1]) / (2*dx)) * ((u[j*nx+i+1] - u[j*nx+i-1]) / (2*dx)) -
                   2 * ((u[(j+1)*nx+i] - u[(j-1)*nx+i]) / (2*dy) *
                        (v[j*nx+i+1] - v[j*nx + i-1])   / (2*dx)) -
                   ((v[(j+1)*nx+i] - v[(j-1)*nx+i])     / (2*dy)) * ((v[(j+1)*nx+i] - v[(j-1)*nx+i])     / (2*dy)) ));
    }
    __syncthreads();
}

__global__
void pressure_poisson(double *p, double *pn, double *b, double dx, double dy, int nx, int ny, double rho)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
    
    if(i > 0 && i < nx - 1 && j > 0 && j < ny - 1)
    {
        p[j*nx+i] =
        (((pn[j*nx+i+1] + pn[j*nx+i-1]) * dy * dy +
           (pn[(j+1)*nx+i] + pn[(j-1)*nx+i]) * dx * dx)/
            (2 * (dx * dx + dy * dy)) -
            dx * dx * dy * dy * b[j*nx+i] * rho / (2 * (dx *dx + dy * dy)));
    }
    __syncthreads();
}

__global__
void pressure_boundary(double *p, int nx, int ny)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
    
    if(i == nx - 1 && j > 0 && j < ny - 1)
    {
        p[j*nx+i] = p[j*nx+i-1]; // dp/dx = 0 at x = 2
    }
    
    else if(i == 0 && j > 0 && j < ny - 1)
    {
        p[j*nx+i] = p[j*nx+i+1]; // dp/dx = 0 at x = 0
    }
    
    else if(j == 0 && i < nx )
    {
        p[j*nx+i] = p[(j+1)*nx+i]; // dp/dy = 0 at y = 0
    }
    else if(j == ny - 1 && i < nx)
    {
        p[j*nx+i] = 0.0; // p  = 0 at y = 2
    }
    __syncthreads();
}

__global__
void cavity_flow(double *u, double *un,  double *v, double *vn,  double *p, double *pn, double *b, int nx , int ny, double dx, double dy, double dt, double nu, double rho)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
    
    if(i > 0 && i < nx - 1 && j > 0 && j < ny - 1)
    {
        u[j*nx+i] = (
        un[j*nx+i] - un[j*nx+i] * dt / dx * (un[j*nx+i] - un[j*nx+i-1]) -
                     vn[j*nx+i] * dt / dy * (un[j*nx+i] - un[(j-1)*nx+i]) -
        dt / (2 * rho * dx) * (p[j*nx+i+1] - p[j*nx+i-1]) +
        nu * (dt / (dx * dx) * (un[j*nx+i+1] - 2*un[j*nx+i] + un[j*nx+i-1]) +
              dt / (dy * dy) * (un[(j+1)*nx+i] - 2*un[j*nx+i] + un[(j-1)*nx+i])));
        
        v[j*nx+i] = (
        vn[j*nx+i] - un[j*nx+i] * dt / dx * (vn[j*nx+i] - vn[j*nx+i-1]) -
                     vn[j*nx+i] * dt / dy * (vn[j*nx+i] - vn[(j-1)*nx+i]) -
        dt / (2 * rho * dy) * (p[(j+1)*nx+i] - p[(j-1)*nx+i]) +
        nu * (dt / (dx * dx) * (vn[j*nx+i+1] - 2*vn[j*nx+i] + vn[j*nx+i-1]) +
              dt / (dy * dy) * (vn[(j+1)*nx+i] - 2*vn[j*nx+i] + vn[(j-1)*nx+i])));
    }
    __syncthreads();
}

__global__
void velocity_boundary(double *u, double *v, int nx , int ny)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
    
    if(i == nx - 1 && j > 0 && j < ny - 1)
    {
        u[j*nx+i] = 0.0; // u = 0 at x = 2
        v[j*nx+i] = 0.0; // v = 0 at x = 2
    }
    
    else if(i == 0 && j > 0 && j < ny - 1)
    {
        u[j*nx+i] = 0.0; // u = 0 at x = 0
        v[j*nx+i] = 0.0; // v = 0 at x = 0
    }
    
    else if(j == 0 && i < nx )
    {
        u[j*nx+i] = 0.0; // u = 0 at y = 0
        v[j*nx+i] = 0.0; // v = 0 at y = 0
    }
    else if(j == ny - 1 && i < nx)
    {
        u[j*nx+i] = 1.0; // u = 1.0 at y = 2
        v[j*nx+i] = 0.0; // v = 0 at y = 2
    }
    __syncthreads();
}

// Check of relative error of u and v between adjacent time steps
double Error(double *u, double *un, double *v, double *vn, int nx , int ny)
{
    double temp1 = 0.0, temp2 = 0.0;
    int i, j, index;
    for(i = 0; i < nx ; i++){
        for(j = 0; j < ny ; j++){
            index =  j* nx +i;
            
            temp1 += (u[index] - un[index]) * (u[index] - un[index])
            + (v[index] - vn[index]) * (v[index] - vn[index]);
            
            temp2 += (u[index] * u[index]) + (v[index] * v[index]);
        }
    }
    temp1 = sqrt(temp1);
    temp2 = sqrt(temp2);
    return ( temp1 / (temp2 + 1e-30));
}

// Output u  and v along the central line.
void output_u(int m, double *u, double *v, int nx)
{
    ostringstream name;
    name << "u_" << m << ".txt";
    ofstream out(name.str().c_str());
    
    for(int i = 0; i < nx ; i++){
        out <<  u[i * nx + (nx+1)/2] <<" "<<  v[ nx * (nx + 1) / 2 + i] << endl;
    }
    out.close();
}

int main(void)
{
    const int nx = 41; // Mesh points in X direction
    const int ny = 41; // Mesh points in Y direction
    const int nt = 10000;  //Total time steps
    const int nit = 50;    // Poisson equation iterations

    //const double c = 1;
    const double dx = 2.0 / (nx - 1);  // LX = 2.0 , dx = 0.05
    const double dy = 2.0 / (ny - 1);  // LY = 2.0 , dy = 0.05

    // Re = U_lid * L / nu = 1.0 * 2.0 / 0.1 = 20.0

    const double rho = 1.0;     // rho is considered constant in this case
    const double nu = 0.1;      // Kinematic viscosity
    const double dt = 0.001;    // length of time step
    
    double *u, *un, *v, *vn, *p, *pn, *b, error;
    int size = nx * ny * sizeof(double);
    
    u  = (double*)malloc(size);
    un = (double*)malloc(size);
    v  = (double*)malloc(size);
    vn = (double*)malloc(size);
    p  = (double*)malloc(size);
    pn = (double*)malloc(size);
    b  = (double*)malloc(size);
    
    init(u, un, v, vn, p, pn, b, nx, ny);
    
    double *u_g, *un_g, *v_g, *vn_g, *p_g, *pn_g, *b_g;
    cudaMalloc((void**)&u_g , size);
    cudaMalloc((void**)&un_g , size);
    cudaMalloc((void**)&v_g , size);
    cudaMalloc((void**)&vn_g , size);
    cudaMalloc((void**)&p_g , size);
    cudaMalloc((void**)&pn_g , size);
    cudaMalloc((void**)&b_g , size);
    
    cudaMemcpy(u_g,   u,   size, cudaMemcpyHostToDevice);
    cudaMemcpy(un_g,  un,  size, cudaMemcpyHostToDevice);
    cudaMemcpy(v_g,   v,   size, cudaMemcpyHostToDevice);
    cudaMemcpy(vn_g,  vn,  size, cudaMemcpyHostToDevice);
    cudaMemcpy(p_g,   p,   size, cudaMemcpyHostToDevice);
    cudaMemcpy(pn_g,  pn,  size, cudaMemcpyHostToDevice);
    cudaMemcpy(b_g,   b,   size, cudaMemcpyHostToDevice);
    
    dim3 threadsPerBlock( 128, 1 );
    dim3 blockNumber( (nx + threadsPerBlock.x - 1) / threadsPerBlock.x,
    (ny + threadsPerBlock.y - 1) / threadsPerBlock.y);
    
    double *p_temp, *u_temp, *v_temp;
    
    for(int loops = 1; loops <= nt ; loops++)
    {

        build_up_b<<<blockNumber,threadsPerBlock>>>(b_g, u_g, v_g, rho, dt, dx, dy, nx ,ny);
        cudaDeviceSynchronize();
        
         for(int k = 0; k < nit ; k++){
             pressure_poisson<<<blockNumber,threadsPerBlock>>>(p_g, pn_g, b_g, dx, dy, nx ,ny, rho);
             pressure_boundary<<<blockNumber,threadsPerBlock>>>(p_g, nx, ny);
            
             p_temp = pn_g; pn_g = p_g; p_g = p_temp;
         }
        cudaDeviceSynchronize();
        
        cavity_flow<<<blockNumber,threadsPerBlock>>>(u_g, un_g, v_g, vn_g, p_g, pn_g, b_g, nx, ny, dx, dy, dt, nu, rho);
        velocity_boundary<<<blockNumber,threadsPerBlock>>>(u_g, v_g, nx, ny);

        u_temp = un_g; un_g = u_g ; u_g = u_temp;
        v_temp = vn_g; vn_g = v_g ; v_g = v_temp;
        cudaDeviceSynchronize();
        
        if (loops % 100 == 0)
        {
            cudaMemcpy(u ,  u_g ,  size, cudaMemcpyDeviceToHost);
            cudaMemcpy(v ,  v_g ,  size, cudaMemcpyDeviceToHost);
            cudaMemcpy(un , un_g,  size, cudaMemcpyDeviceToHost);
            cudaMemcpy(vn , vn_g,  size, cudaMemcpyDeviceToHost);
            cudaMemcpy(p ,  p_g,   size, cudaMemcpyDeviceToHost);
            
            error = Error(u, un, v, vn, nx, ny);
            cout << loops << " loops has been operated." <<endl;
            cout << "The relative error is : " << error <<endl;
//            output_paraview_format(loops, nx, ny, 1, u, v, v, p);
            output_u(loops, u, v, nx);
        }
    }
    cout << "Computation ends." << endl;
    
    return 0;
}

// Lian Tongda
// Jun 19 2020

	.file	"tmpxft_002f8c9e_00000000-6_cavity_NS_Lian.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB4265:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE4265:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB5036:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE5036:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"DATA INITIALIZED"
	.text
	.globl	_Z4initPdS_S_S_S_S_S_ii
	.type	_Z4initPdS_S_S_S_S_S_ii, @function
_Z4initPdS_S_S_S_S_S_ii:
.LFB4259:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movq	%rcx, %rbp
	xorl	%ecx, %ecx
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdx, %rbx
	pushq	%r10
	.cfi_def_cfa_offset 48
	movslq	56(%rsp), %r11
	movq	48(%rsp), %r12
	movl	64(%rsp), %r13d
	movq	%r11, %rdx
	salq	$3, %r11
.L4:
	cmpl	%ecx, %edx
	jle	.L6
	leaq	0(,%rcx,8), %rax
	xorl	%r10d, %r10d
.L7:
	cmpl	%r13d, %r10d
	jge	.L12
	movq	$0x000000000, (%rdi,%rax)
	incl	%r10d
	movq	$0x000000000, (%rsi,%rax)
	movq	$0x000000000, (%rbx,%rax)
	movq	$0x000000000, 0(%rbp,%rax)
	movq	$0x000000000, (%r8,%rax)
	movq	$0x000000000, (%r9,%rax)
	movq	$0x000000000, (%r12,%rax)
	addq	%r11, %rax
	jmp	.L7
.L12:
	incq	%rcx
	jmp	.L4
.L6:
	leal	-1(%rdx), %eax
	movsd	.LC1(%rip), %xmm0
	xorl	%ecx, %ecx
	imull	%edx, %eax
	cltq
	salq	$3, %rax
.L8:
	cmpl	%edx, %ecx
	jge	.L13
	movsd	%xmm0, (%rdi,%rax)
	incl	%ecx
	movsd	%xmm0, (%rsi,%rax)
	addq	$8, %rax
	jmp	.L8
.L13:
	leaq	.LC2(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	popq	%rax
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	jmp	_ZNSolsEPFRSoS_E.isra.0
	.cfi_endproc
.LFE4259:
	.size	_Z4initPdS_S_S_S_S_S_ii, .-_Z4initPdS_S_S_S_S_S_ii
	.globl	_Z5ErrorPdS_S_S_ii
	.type	_Z5ErrorPdS_S_S_ii, @function
_Z5ErrorPdS_S_S_ii:
.LFB4260:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %r10
	xorps	%xmm4, %xmm4
	movslq	%r8d, %rdi
	movq	%rdx, %rbx
	movq	%rsi, %r11
	salq	$3, %rdi
	xorl	%edx, %edx
	movaps	%xmm4, %xmm5
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
.L15:
	cmpl	%edx, %r8d
	jle	.L17
	leaq	0(,%rdx,8), %rax
	xorl	%esi, %esi
.L18:
	cmpl	%r9d, %esi
	jge	.L20
	movsd	(%r10,%rax), %xmm0
	movsd	(%rbx,%rax), %xmm2
	incl	%esi
	movaps	%xmm0, %xmm1
	movaps	%xmm2, %xmm3
	subsd	(%r11,%rax), %xmm1
	subsd	(%rcx,%rax), %xmm3
	mulsd	%xmm0, %xmm0
	addq	%rdi, %rax
	mulsd	%xmm2, %xmm2
	mulsd	%xmm1, %xmm1
	mulsd	%xmm3, %xmm3
	addsd	%xmm2, %xmm0
	addsd	%xmm3, %xmm1
	addsd	%xmm0, %xmm4
	addsd	%xmm1, %xmm5
	jmp	.L18
.L20:
	incq	%rdx
	jmp	.L15
.L17:
	movaps	%xmm5, %xmm0
	movsd	%xmm4, 8(%rsp)
	call	sqrt@PLT
	movsd	8(%rsp), %xmm4
	movsd	%xmm0, (%rsp)
	movaps	%xmm4, %xmm0
	call	sqrt@PLT
	movsd	.LC3(%rip), %xmm2
	movsd	(%rsp), %xmm1
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	addsd	%xmm0, %xmm2
	divsd	%xmm2, %xmm1
	movaps	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE4260:
	.size	_Z5ErrorPdS_S_S_ii, .-_Z5ErrorPdS_S_S_ii
	.globl	_Z40__device_stub__Z10build_up_bPdS_S_ddddiiPdS_S_ddddii
	.type	_Z40__device_stub__Z10build_up_bPdS_S_ddddiiPdS_S_ddddii, @function
_Z40__device_stub__Z10build_up_bPdS_S_ddddiiPdS_S_ddddii:
.LFB4287:
	.cfi_startproc
	endbr64
	subq	$216, %rsp
	.cfi_def_cfa_offset 224
	movq	%rdi, 56(%rsp)
	leaq	80(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	92(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	64(%rsp), %rdx
	movl	%ecx, 4(%rsp)
	leaq	72(%rsp), %rcx
	movl	%r8d, (%rsp)
	movsd	%xmm0, 32(%rsp)
	movsd	%xmm1, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm3, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 88(%rsp)
	movq	%rax, 128(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 184(%rsp)
	movq	%rsp, %rax
	movq	%rax, 192(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L21
	pushq	72(%rsp)
	.cfi_def_cfa_offset 232
	leaq	_Z10build_up_bPdS_S_ddddii(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 240
	movq	108(%rsp), %rcx
	movl	116(%rsp), %r8d
	movq	96(%rsp), %rsi
	movl	104(%rsp), %edx
	leaq	144(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 232
	popq	%rdx
	.cfi_def_cfa_offset 224
.L21:
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	addq	$216, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4287:
	.size	_Z40__device_stub__Z10build_up_bPdS_S_ddddiiPdS_S_ddddii, .-_Z40__device_stub__Z10build_up_bPdS_S_ddddiiPdS_S_ddddii
	.globl	_Z10build_up_bPdS_S_ddddii
	.type	_Z10build_up_bPdS_S_ddddii, @function
_Z10build_up_bPdS_S_ddddii:
.LFB4288:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z10build_up_bPdS_S_ddddiiPdS_S_ddddii
	.cfi_endproc
.LFE4288:
	.size	_Z10build_up_bPdS_S_ddddii, .-_Z10build_up_bPdS_S_ddddii
	.globl	_Z45__device_stub__Z16pressure_poissonPdS_S_ddiidPdS_S_ddiid
	.type	_Z45__device_stub__Z16pressure_poissonPdS_S_ddiidPdS_S_ddiid, @function
_Z45__device_stub__Z16pressure_poissonPdS_S_ddiidPdS_S_ddiid:
.LFB4289:
	.cfi_startproc
	endbr64
	subq	$216, %rsp
	.cfi_def_cfa_offset 224
	movq	%rdi, 56(%rsp)
	leaq	88(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	100(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	72(%rsp), %rdx
	movl	%ecx, 20(%rsp)
	leaq	80(%rsp), %rcx
	movl	%r8d, 16(%rsp)
	movsd	%xmm0, 32(%rsp)
	movsd	%xmm1, 24(%rsp)
	movsd	%xmm2, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rax
	movl	$1, 96(%rsp)
	movq	%rax, 136(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 152(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 192(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 88(%rsp)
	movq	%rax, 100(%rsp)
	movl	$1, 108(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L26
	pushq	80(%rsp)
	.cfi_def_cfa_offset 232
	leaq	_Z16pressure_poissonPdS_S_ddiid(%rip), %rdi
	pushq	80(%rsp)
	.cfi_def_cfa_offset 240
	movq	116(%rsp), %rcx
	movl	124(%rsp), %r8d
	movq	104(%rsp), %rsi
	movl	112(%rsp), %edx
	leaq	152(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 232
	popq	%rdx
	.cfi_def_cfa_offset 224
.L26:
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	addq	$216, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4289:
	.size	_Z45__device_stub__Z16pressure_poissonPdS_S_ddiidPdS_S_ddiid, .-_Z45__device_stub__Z16pressure_poissonPdS_S_ddiidPdS_S_ddiid
	.globl	_Z16pressure_poissonPdS_S_ddiid
	.type	_Z16pressure_poissonPdS_S_ddiid, @function
_Z16pressure_poissonPdS_S_ddiid:
.LFB4290:
	.cfi_startproc
	endbr64
	jmp	_Z45__device_stub__Z16pressure_poissonPdS_S_ddiidPdS_S_ddiid
	.cfi_endproc
.LFE4290:
	.size	_Z16pressure_poissonPdS_S_ddiid, .-_Z16pressure_poissonPdS_S_ddiid
	.globl	_Z39__device_stub__Z17pressure_boundaryPdiiPdii
	.type	_Z39__device_stub__Z17pressure_boundaryPdiiPdii, @function
_Z39__device_stub__Z17pressure_boundaryPdiiPdii:
.LFB4291:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	32(%rsp), %rdi
	movl	%esi, 4(%rsp)
	leaq	44(%rsp), %rsi
	movl	%edx, (%rsp)
	leaq	16(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 88(%rsp)
	movq	%rsp, %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L31
	pushq	24(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z17pressure_boundaryPdii(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 144
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L31:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4291:
	.size	_Z39__device_stub__Z17pressure_boundaryPdiiPdii, .-_Z39__device_stub__Z17pressure_boundaryPdiiPdii
	.globl	_Z17pressure_boundaryPdii
	.type	_Z17pressure_boundaryPdii, @function
_Z17pressure_boundaryPdii:
.LFB4292:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z17pressure_boundaryPdiiPdii
	.cfi_endproc
.LFE4292:
	.size	_Z17pressure_boundaryPdii, .-_Z17pressure_boundaryPdii
	.globl	_Z50__device_stub__Z11cavity_flowPdS_S_S_S_S_S_iidddddPdS_S_S_S_S_S_iiddddd
	.type	_Z50__device_stub__Z11cavity_flowPdS_S_S_S_S_S_iidddddPdS_S_S_S_S_S_iiddddd, @function
_Z50__device_stub__Z11cavity_flowPdS_S_S_S_S_S_iidddddPdS_S_S_S_S_S_iiddddd:
.LFB4293:
	.cfi_startproc
	endbr64
	subq	$296, %rsp
	.cfi_def_cfa_offset 304
	movq	304(%rsp), %rax
	movq	%rdi, 88(%rsp)
	leaq	120(%rsp), %rdi
	movq	%rsi, 80(%rsp)
	leaq	132(%rsp), %rsi
	movq	%rdx, 72(%rsp)
	leaq	104(%rsp), %rdx
	movq	%rcx, 64(%rsp)
	leaq	112(%rsp), %rcx
	movq	%r8, 56(%rsp)
	movq	%r9, 48(%rsp)
	movq	%rax, 40(%rsp)
	movsd	%xmm0, 32(%rsp)
	movsd	%xmm1, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm3, 8(%rsp)
	movsd	%xmm4, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	88(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 176(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 184(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 192(%rsp)
	leaq	56(%rsp), %rax
	movq	%rax, 200(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 208(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, 216(%rsp)
	leaq	312(%rsp), %rax
	movq	%rax, 224(%rsp)
	leaq	320(%rsp), %rax
	movq	%rax, 232(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 240(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 248(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 256(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 264(%rsp)
	movq	%rsp, %rax
	movq	%rax, 272(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 120(%rsp)
	movl	$1, 128(%rsp)
	movq	%rax, 132(%rsp)
	movl	$1, 140(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L36
	pushq	112(%rsp)
	.cfi_def_cfa_offset 312
	leaq	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd(%rip), %rdi
	pushq	112(%rsp)
	.cfi_def_cfa_offset 320
	movq	148(%rsp), %rcx
	movl	156(%rsp), %r8d
	movq	136(%rsp), %rsi
	movl	144(%rsp), %edx
	leaq	184(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 312
	popq	%rdx
	.cfi_def_cfa_offset 304
.L36:
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	addq	$296, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4293:
	.size	_Z50__device_stub__Z11cavity_flowPdS_S_S_S_S_S_iidddddPdS_S_S_S_S_S_iiddddd, .-_Z50__device_stub__Z11cavity_flowPdS_S_S_S_S_S_iidddddPdS_S_S_S_S_S_iiddddd
	.globl	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd
	.type	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd, @function
_Z11cavity_flowPdS_S_S_S_S_S_iiddddd:
.LFB4294:
	.cfi_startproc
	endbr64
	jmp	_Z50__device_stub__Z11cavity_flowPdS_S_S_S_S_S_iidddddPdS_S_S_S_S_S_iiddddd
	.cfi_endproc
.LFE4294:
	.size	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd, .-_Z11cavity_flowPdS_S_S_S_S_S_iiddddd
	.globl	_Z41__device_stub__Z17velocity_boundaryPdS_iiPdS_ii
	.type	_Z41__device_stub__Z17velocity_boundaryPdS_iiPdS_ii, @function
_Z41__device_stub__Z17velocity_boundaryPdS_iiPdS_ii:
.LFB4295:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 8(%rsp)
	leaq	48(%rsp), %rcx
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 104(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 112(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 128(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L41
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z17velocity_boundaryPdS_ii(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 176
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	120(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 168
	popq	%rdx
	.cfi_def_cfa_offset 160
.L41:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4295:
	.size	_Z41__device_stub__Z17velocity_boundaryPdS_iiPdS_ii, .-_Z41__device_stub__Z17velocity_boundaryPdS_iiPdS_ii
	.globl	_Z17velocity_boundaryPdS_ii
	.type	_Z17velocity_boundaryPdS_ii, @function
_Z17velocity_boundaryPdS_ii:
.LFB4296:
	.cfi_startproc
	endbr64
	jmp	_Z41__device_stub__Z17velocity_boundaryPdS_iiPdS_ii
	.cfi_endproc
.LFE4296:
	.size	_Z17velocity_boundaryPdS_ii, .-_Z17velocity_boundaryPdS_ii
	.section	.rodata.str1.1
.LC4:
	.string	"_Z17velocity_boundaryPdS_ii"
.LC5:
	.string	"_Z11cavity_flowPdS_S_S_S_S_S_iiddddd"
.LC6:
	.string	"_Z17pressure_boundaryPdii"
.LC7:
	.string	"_Z16pressure_poissonPdS_S_ddiid"
.LC8:
	.string	"_Z10build_up_bPdS_S_ddddii"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB4298:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC4(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z17velocity_boundaryPdS_ii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC5(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC6(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z17pressure_boundaryPdii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC7(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z16pressure_poissonPdS_S_ddiid(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC8(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z10build_up_bPdS_S_ddddii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE4298:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1
.LC9:
	.string	"u_"
.LC10:
	.string	".txt"
.LC11:
	.string	" "
	.text
	.globl	_Z8output_uiPdS_i
	.type	_Z8output_uiPdS_i, @function
_Z8output_uiPdS_i:
.LFB4261:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA4261
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdx, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%ecx, %ebx
	subq	$952, %rsp
	.cfi_def_cfa_offset 1008
	movq	%fs:40, %rax
	movq	%rax, 936(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rax
	movq	%rax, %rdi
	movq	%rax, 8(%rsp)
.LEHB0:
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev@PLT
.LEHE0:
	movq	8(%rsp), %rdi
	leaq	.LC9(%rip), %rsi
.LEHB1:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movl	%r13d, %esi
	call	_ZNSolsEi@PLT
	movq	%rax, %rdi
	leaq	.LC10(%rip), %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	leaq	16(%rsp), %r13
	leaq	56(%rsp), %rsi
	movq	%r13, %rdi
	call	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv@PLT
.LEHE1:
	leaq	424(%rsp), %rax
	movq	16(%rsp), %rsi
	movl	$16, %edx
	movq	%rax, %rdi
	movq	%rax, (%rsp)
.LEHB2:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode@PLT
.LEHE2:
	movq	%r13, %rdi
	movslq	%ebx, %r13
	leaq	.LC11(%rip), %r15
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	leal	1(%rbx), %eax
	salq	$3, %r13
	movl	%eax, %edx
	imull	%ebx, %eax
	sarl	%edx
	movslq	%edx, %rdx
	sarl	%eax
	leaq	(%r12,%rdx,8), %r12
	cltq
	leaq	0(%rbp,%rax,8), %r14
	xorl	%ebp, %ebp
.L49:
	cmpl	%ebp, %ebx
	jle	.L61
	movsd	(%r12), %xmm0
	movq	(%rsp), %rdi
.LEHB3:
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r15, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	(%r14,%rbp,8), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	incq	%rbp
	addq	%r13, %r12
	jmp	.L49
.L61:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE3:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	movq	936(%rsp), %rax
	subq	%fs:40, %rax
	je	.L55
	jmp	.L59
.L57:
	endbr64
	movq	%rax, %rbx
.L51:
	movq	%r13, %rdi
	call	_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv@PLT
	jmp	.L52
.L58:
	endbr64
	movq	%rax, %rbx
.L53:
	movq	(%rsp), %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	jmp	.L52
.L56:
	endbr64
	movq	%rax, %rbx
.L52:
	movq	8(%rsp), %rdi
	call	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev@PLT
	movq	936(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L59:
	call	__stack_chk_fail@PLT
.L55:
	addq	$952, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4261:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA4261:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE4261-.LLSDACSB4261
.LLSDACSB4261:
	.uleb128 .LEHB0-.LFB4261
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB4261
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L56-.LFB4261
	.uleb128 0
	.uleb128 .LEHB2-.LFB4261
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L57-.LFB4261
	.uleb128 0
	.uleb128 .LEHB3-.LFB4261
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L58-.LFB4261
	.uleb128 0
	.uleb128 .LEHB4-.LFB4261
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE4261:
	.text
	.size	_Z8output_uiPdS_i, .-_Z8output_uiPdS_i
	.section	.rodata.str1.1
.LC15:
	.string	" loops has been operated."
.LC16:
	.string	"The relative error is : "
.LC17:
	.string	"Computation ends."
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB4262:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$13448, %edi
	movabsq	$4294967424, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	call	malloc@PLT
	movl	$13448, %edi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movl	$13448, %edi
	movq	%rax, 16(%rsp)
	call	malloc@PLT
	movl	$13448, %edi
	movq	%rax, %rbp
	call	malloc@PLT
	movl	$13448, %edi
	movq	%rax, %r12
	call	malloc@PLT
	movl	$13448, %edi
	movq	%rax, %r13
	call	malloc@PLT
	movl	$13448, %edi
	movq	%rax, %rbx
	call	malloc@PLT
	movq	%rbx, %r9
	movq	%r13, %r8
	movq	%r12, %rcx
	pushq	%rdx
	.cfi_def_cfa_offset 200
	movq	%rbp, %rdx
	movq	%rax, %r14
	pushq	$41
	.cfi_def_cfa_offset 208
	pushq	$41
	.cfi_def_cfa_offset 216
	pushq	%rax
	.cfi_def_cfa_offset 224
	movq	48(%rsp), %rsi
	movq	40(%rsp), %rdi
	call	_Z4initPdS_S_S_S_S_S_ii
	addq	$32, %rsp
	.cfi_def_cfa_offset 192
	movl	$13448, %esi
	leaq	40(%rsp), %rdi
	call	cudaMalloc@PLT
	leaq	48(%rsp), %rdi
	movl	$13448, %esi
	call	cudaMalloc@PLT
	leaq	56(%rsp), %rdi
	movl	$13448, %esi
	call	cudaMalloc@PLT
	leaq	64(%rsp), %rdi
	movl	$13448, %esi
	call	cudaMalloc@PLT
	leaq	72(%rsp), %rdi
	movl	$13448, %esi
	call	cudaMalloc@PLT
	leaq	80(%rsp), %rdi
	movl	$13448, %esi
	call	cudaMalloc@PLT
	leaq	88(%rsp), %rdi
	movl	$13448, %esi
	call	cudaMalloc@PLT
	movq	8(%rsp), %rsi
	movq	40(%rsp), %rdi
	movl	$1, %ecx
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rsi
	movq	48(%rsp), %rdi
	movl	$1, %ecx
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movq	56(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movq	64(%rsp), %rdi
	movl	$1, %ecx
	movq	%r12, %rsi
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rdi
	movl	$1, %ecx
	movq	%r13, %rsi
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movq	80(%rsp), %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	movl	$13448, %edx
	movl	$1, %ebx
	call	cudaMemcpy@PLT
	movq	88(%rsp), %rdi
	movl	$1, %ecx
	movq	%r14, %rsi
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movl	$1, 104(%rsp)
	movabsq	$176093659137, %rax
	movq	%rax, 108(%rsp)
	movl	$1, 116(%rsp)
.L70:
	movl	104(%rsp), %ecx
	movq	108(%rsp), %rdi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	116(%rsp), %esi
	movq	%r15, %rdx
	movq	%r15, 96(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L63
	movq	56(%rsp), %rdx
	movq	40(%rsp), %rsi
	movl	$41, %r8d
	movl	$41, %ecx
	movsd	.LC12(%rip), %xmm3
	movsd	.LC13(%rip), %xmm1
	movsd	.LC1(%rip), %xmm0
	movq	88(%rsp), %rdi
	movaps	%xmm3, %xmm2
	call	_Z40__device_stub__Z10build_up_bPdS_S_ddddiiPdS_S_ddddii
.L63:
	call	cudaDeviceSynchronize@PLT
	movl	$50, %r14d
.L66:
	movl	104(%rsp), %ecx
	movq	96(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	108(%rsp), %rdi
	movl	116(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L64
	movq	88(%rsp), %rdx
	movq	80(%rsp), %rsi
	movl	$41, %r8d
	movl	$41, %ecx
	movsd	.LC12(%rip), %xmm0
	movsd	.LC1(%rip), %xmm2
	movq	72(%rsp), %rdi
	movaps	%xmm0, %xmm1
	call	_Z45__device_stub__Z16pressure_poissonPdS_S_ddiidPdS_S_ddiid
.L64:
	movl	104(%rsp), %ecx
	movq	96(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	108(%rsp), %rdi
	movl	116(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L65
	movq	72(%rsp), %rdi
	movl	$41, %edx
	movl	$41, %esi
	call	_Z39__device_stub__Z17pressure_boundaryPdiiPdii
.L65:
	movq	80(%rsp), %rax
	movq	72(%rsp), %rdx
	movq	%rax, 72(%rsp)
	movq	%rdx, 80(%rsp)
	decl	%r14d
	jne	.L66
	call	cudaDeviceSynchronize@PLT
	movl	104(%rsp), %ecx
	movl	116(%rsp), %esi
	xorl	%r9d, %r9d
	movq	96(%rsp), %rdx
	movq	108(%rsp), %rdi
	xorl	%r8d, %r8d
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L67
	movsd	.LC12(%rip), %xmm0
	pushq	%rax
	.cfi_def_cfa_offset 200
	pushq	$41
	.cfi_def_cfa_offset 208
	movsd	.LC1(%rip), %xmm4
	pushq	$41
	.cfi_def_cfa_offset 216
	movsd	.LC14(%rip), %xmm3
	movaps	%xmm0, %xmm1
	pushq	112(%rsp)
	.cfi_def_cfa_offset 224
	movsd	.LC13(%rip), %xmm2
	movq	112(%rsp), %r9
	movq	104(%rsp), %r8
	movq	96(%rsp), %rcx
	movq	88(%rsp), %rdx
	movq	80(%rsp), %rsi
	movq	72(%rsp), %rdi
	call	_Z50__device_stub__Z11cavity_flowPdS_S_S_S_S_S_iidddddPdS_S_S_S_S_S_iiddddd
	addq	$32, %rsp
	.cfi_def_cfa_offset 192
.L67:
	movl	104(%rsp), %ecx
	movq	96(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	108(%rsp), %rdi
	movl	116(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L68
	movq	56(%rsp), %rsi
	movq	40(%rsp), %rdi
	movl	$41, %ecx
	movl	$41, %edx
	call	_Z41__device_stub__Z17velocity_boundaryPdS_iiPdS_ii
.L68:
	movq	48(%rsp), %rax
	movq	40(%rsp), %rdx
	movq	%rax, 40(%rsp)
	movq	64(%rsp), %rax
	movq	%rdx, 48(%rsp)
	movq	56(%rsp), %rdx
	movq	%rax, 56(%rsp)
	movq	%rdx, 64(%rsp)
	call	cudaDeviceSynchronize@PLT
	movl	%ebx, %eax
	movl	$100, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L69
	movq	40(%rsp), %rsi
	movq	8(%rsp), %rdi
	movl	$2, %ecx
	movl	$13448, %edx
	leaq	_ZSt4cout(%rip), %r14
	call	cudaMemcpy@PLT
	movq	56(%rsp), %rsi
	movl	$2, %ecx
	movq	%rbp, %rdi
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movq	48(%rsp), %rsi
	movq	16(%rsp), %rdi
	movl	$2, %ecx
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movq	64(%rsp), %rsi
	movl	$2, %ecx
	movq	%r12, %rdi
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movq	72(%rsp), %rsi
	movl	$2, %ecx
	movq	%r13, %rdi
	movl	$13448, %edx
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rsi
	movq	%r12, %rcx
	movq	%rbp, %rdx
	movq	8(%rsp), %rdi
	movl	$41, %r9d
	movl	$41, %r8d
	call	_Z5ErrorPdS_S_S_ii
	movl	%ebx, %esi
	movq	%r14, %rdi
	movsd	%xmm0, 24(%rsp)
	call	_ZNSolsEi@PLT
	leaq	.LC15(%rip), %rsi
	movq	%rax, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	leaq	.LC16(%rip), %rsi
	movq	%r14, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	24(%rsp), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	8(%rsp), %rsi
	movq	%rbp, %rdx
	movl	%ebx, %edi
	movl	$41, %ecx
	call	_Z8output_uiPdS_i
.L69:
	incl	%ebx
	cmpl	$10001, %ebx
	jne	.L70
	leaq	.LC17(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE4262:
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	-18103648
	.long	968116299
	.align 8
.LC12:
	.long	-1717986918
	.long	1068079513
	.align 8
.LC13:
	.long	-755914244
	.long	1062232653
	.align 8
.LC14:
	.long	-1717986918
	.long	1069128089
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

// N-S equation demonstration
// High Performance Scitific Computation
// Cavity Lid Driven Flow
// CUDA version
// 19M18085 Lian Tongda


#include <hip/hip_runtime.h>
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>

using namespace std;

// Initialization of variables
void init(double *u, double *un, double *v, double *vn, double *p, double *pn, double *b, int nx, int ny)
{
    int i, j;
    for(i = 0; i < nx ; i++){
        for(j = 0; j < ny ; j++){
            u[j*nx+i] = 0.0;
            un[j*nx+i] = 0.0;
            v[j*nx+i] = 0.0;
            vn[j*nx+i] = 0.0;
            p[j*nx+i] = 0.0;
            pn[j*nx+i] = 0.0;
            b[j*nx+i] = 0.0;
        }
    }
//    Velocity of Lid
    for(i = 0 ; i < nx ;i++)
    {
        u[(nx-1)*nx + i] = 1.0;
        un[(nx-1)*nx + i] = 1.0;
    }
    cout<<"DATA INITIALIZED"<<endl;

}

__global__
void build_up_b(double *b, double *u, double *v, double rho, double dt, double dx, double dy, int nx, int ny)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
//    double term1, term2, term3, term4;
    
    if(i > 0 && i < nx - 1 && j > 0 && j < ny - 1)
    {
//        term1 = (u[j*nx + i+1] - u[j*nx + i-1]) / (2 * dx) +
//        (v[(j+1)*nx+i] - v[(j-1)*nx+i]) / (2 * dy);
//
//        term2 = (u[j*nx + i+1] - u[j*nx + i-1]) / (2 * dx);
//
//        term3 = (u[(j+1)*nx+i] - u[(j-1)*nx+i]) *
//        (v[j*nx + i+1] - v[j*nx + i-1]) / (2*2*dx*dy);
//
//        term4 = (v[(j+1)*nx+i] - v[(j-1)*nx+i]) / (2 * dy);
//
//         b[j*nx+i] = (term1) / (dt) - (term2) * (term2) - 2 * (term3) - (term4) * (term4);
        
        b[j*nx+i] =
                   (rho * ( 1.0/dt *
                           ((u[j*nx + i+1] - u[j*nx + i-1]) / (2 * dx)
                          + (v[(j+1)*nx+i] - v[(j-1)*nx+i]) / (2 * dy)) -
                   ((u[j*nx+i+1] - u[j*nx+i-1]) / (2*dx)) * ((u[j*nx+i+1] - u[j*nx+i-1]) / (2*dx)) -
                   2 * ((u[(j+1)*nx+i] - u[(j-1)*nx+i]) / (2*dy) *
                        (v[j*nx+i+1] - v[j*nx + i-1])   / (2*dx)) -
                   ((v[(j+1)*nx+i] - v[(j-1)*nx+i])     / (2*dy)) * ((v[(j+1)*nx+i] - v[(j-1)*nx+i])     / (2*dy)) ));
    }
    __syncthreads();
}

__global__
void pressure_poisson(double *p, double *pn, double *b, double dx, double dy, int nx, int ny, double rho)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
    
    if(i > 0 && i < nx - 1 && j > 0 && j < ny - 1)
    {
        p[j*nx+i] =
        (((pn[j*nx+i+1] + pn[j*nx+i-1]) * dy * dy +
           (pn[(j+1)*nx+i] + pn[(j-1)*nx+i]) * dx * dx)/
            (2 * (dx * dx + dy * dy)) -
            dx * dx * dy * dy * b[j*nx+i] * rho / (2 * (dx *dx + dy * dy)));
    }
    __syncthreads();
}

__global__
void pressure_boundary(double *p, int nx, int ny)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
    
    if(i == nx - 1 && j > 0 && j < ny - 1)
    {
        p[j*nx+i] = p[j*nx+i-1]; // dp/dx = 0 at x = 2
    }
    
    else if(i == 0 && j > 0 && j < ny - 1)
    {
        p[j*nx+i] = p[j*nx+i+1]; // dp/dx = 0 at x = 0
    }
    
    else if(j == 0 && i < nx )
    {
        p[j*nx+i] = p[(j+1)*nx+i]; // dp/dy = 0 at y = 0
    }
    else if(j == ny - 1 && i < nx)
    {
        p[j*nx+i] = 0.0; // p  = 0 at y = 2
    }
    __syncthreads();
}

__global__
void cavity_flow(double *u, double *un,  double *v, double *vn,  double *p, double *pn, double *b, int nx , int ny, double dx, double dy, double dt, double nu, double rho)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
    
    if(i > 0 && i < nx - 1 && j > 0 && j < ny - 1)
    {
        u[j*nx+i] = (
        un[j*nx+i] - un[j*nx+i] * dt / dx * (un[j*nx+i] - un[j*nx+i-1]) -
                     vn[j*nx+i] * dt / dy * (un[j*nx+i] - un[(j-1)*nx+i]) -
        dt / (2 * rho * dx) * (p[j*nx+i+1] - p[j*nx+i-1]) +
        nu * (dt / (dx * dx) * (un[j*nx+i+1] - 2*un[j*nx+i] + un[j*nx+i-1]) +
              dt / (dy * dy) * (un[(j+1)*nx+i] - 2*un[j*nx+i] + un[(j-1)*nx+i])));
        
        v[j*nx+i] = (
        vn[j*nx+i] - un[j*nx+i] * dt / dx * (vn[j*nx+i] - vn[j*nx+i-1]) -
                     vn[j*nx+i] * dt / dy * (vn[j*nx+i] - vn[(j-1)*nx+i]) -
        dt / (2 * rho * dy) * (p[(j+1)*nx+i] - p[(j-1)*nx+i]) +
        nu * (dt / (dx * dx) * (vn[j*nx+i+1] - 2*vn[j*nx+i] + vn[j*nx+i-1]) +
              dt / (dy * dy) * (vn[(j+1)*nx+i] - 2*vn[j*nx+i] + vn[(j-1)*nx+i])));
    }
    __syncthreads();
}

__global__
void velocity_boundary(double *u, double *v, int nx , int ny)
{
    int i = threadIdx.x + blockIdx.x * blockDim.x ;
    int j = threadIdx.y + blockDim.y * blockIdx.y ;
    
    if(i == nx - 1 && j > 0 && j < ny - 1)
    {
        u[j*nx+i] = 0.0; // u = 0 at x = 2
        v[j*nx+i] = 0.0; // v = 0 at x = 2
    }
    
    else if(i == 0 && j > 0 && j < ny - 1)
    {
        u[j*nx+i] = 0.0; // u = 0 at x = 0
        v[j*nx+i] = 0.0; // v = 0 at x = 0
    }
    
    else if(j == 0 && i < nx )
    {
        u[j*nx+i] = 0.0; // u = 0 at y = 0
        v[j*nx+i] = 0.0; // v = 0 at y = 0
    }
    else if(j == ny - 1 && i < nx)
    {
        u[j*nx+i] = 1.0; // u = 1.0 at y = 2
        v[j*nx+i] = 0.0; // v = 0 at y = 2
    }
    __syncthreads();
}

// Check of relative error of u and v between adjacent time steps
double Error(double *u, double *un, double *v, double *vn, int nx , int ny)
{
    double temp1 = 0.0, temp2 = 0.0;
    int i, j, index;
    for(i = 0; i < nx ; i++){
        for(j = 0; j < ny ; j++){
            index =  j* nx +i;
            
            temp1 += (u[index] - un[index]) * (u[index] - un[index])
            + (v[index] - vn[index]) * (v[index] - vn[index]);
            
            temp2 += (u[index] * u[index]) + (v[index] * v[index]);
        }
    }
    temp1 = sqrt(temp1);
    temp2 = sqrt(temp2);
    return ( temp1 / (temp2 + 1e-30));
}

// Output u  and v along the central line.
void output_u(int m, double *u, double *v, int nx)
{
    ostringstream name;
    name << "u_" << m << ".txt";
    ofstream out(name.str().c_str());
    
    for(int i = 0; i < nx ; i++){
        out <<  u[i * nx + (nx+1)/2] <<" "<<  v[ nx * (nx + 1) / 2 + i] << endl;
    }
    out.close();
}

int main(void)
{
    const int nx = 41; // Mesh points in X direction
    const int ny = 41; // Mesh points in Y direction
    const int nt = 10000;  //Total time steps
    const int nit = 50;    // Poisson equation iterations

    //const double c = 1;
    const double dx = 2.0 / (nx - 1);  // LX = 2.0 , dx = 0.05
    const double dy = 2.0 / (ny - 1);  // LY = 2.0 , dy = 0.05

    // Re = U_lid * L / nu = 1.0 * 2.0 / 0.1 = 20.0

    const double rho = 1.0;     // rho is considered constant in this case
    const double nu = 0.1;      // Kinematic viscosity
    const double dt = 0.001;    // length of time step
    
    double *u, *un, *v, *vn, *p, *pn, *b, error;
    int size = nx * ny * sizeof(double);
    
    u  = (double*)malloc(size);
    un = (double*)malloc(size);
    v  = (double*)malloc(size);
    vn = (double*)malloc(size);
    p  = (double*)malloc(size);
    pn = (double*)malloc(size);
    b  = (double*)malloc(size);
    
    init(u, un, v, vn, p, pn, b, nx, ny);
    
    double *u_g, *un_g, *v_g, *vn_g, *p_g, *pn_g, *b_g;
    hipMalloc((void**)&u_g , size);
    hipMalloc((void**)&un_g , size);
    hipMalloc((void**)&v_g , size);
    hipMalloc((void**)&vn_g , size);
    hipMalloc((void**)&p_g , size);
    hipMalloc((void**)&pn_g , size);
    hipMalloc((void**)&b_g , size);
    
    hipMemcpy(u_g,   u,   size, hipMemcpyHostToDevice);
    hipMemcpy(un_g,  un,  size, hipMemcpyHostToDevice);
    hipMemcpy(v_g,   v,   size, hipMemcpyHostToDevice);
    hipMemcpy(vn_g,  vn,  size, hipMemcpyHostToDevice);
    hipMemcpy(p_g,   p,   size, hipMemcpyHostToDevice);
    hipMemcpy(pn_g,  pn,  size, hipMemcpyHostToDevice);
    hipMemcpy(b_g,   b,   size, hipMemcpyHostToDevice);
    
    dim3 threadsPerBlock( 128, 1 );
    dim3 blockNumber( (nx + threadsPerBlock.x - 1) / threadsPerBlock.x,
    (ny + threadsPerBlock.y - 1) / threadsPerBlock.y);
    
    double *p_temp, *u_temp, *v_temp;
    
    for(int loops = 1; loops <= nt ; loops++)
    {

        build_up_b<<<blockNumber,threadsPerBlock>>>(b_g, u_g, v_g, rho, dt, dx, dy, nx ,ny);
        hipDeviceSynchronize();
        
         for(int k = 0; k < nit ; k++){
             pressure_poisson<<<blockNumber,threadsPerBlock>>>(p_g, pn_g, b_g, dx, dy, nx ,ny, rho);
             pressure_boundary<<<blockNumber,threadsPerBlock>>>(p_g, nx, ny);
            
             p_temp = pn_g; pn_g = p_g; p_g = p_temp;
         }
        hipDeviceSynchronize();
        
        cavity_flow<<<blockNumber,threadsPerBlock>>>(u_g, un_g, v_g, vn_g, p_g, pn_g, b_g, nx, ny, dx, dy, dt, nu, rho);
        velocity_boundary<<<blockNumber,threadsPerBlock>>>(u_g, v_g, nx, ny);

        u_temp = un_g; un_g = u_g ; u_g = u_temp;
        v_temp = vn_g; vn_g = v_g ; v_g = v_temp;
        hipDeviceSynchronize();
        
        if (loops % 100 == 0)
        {
            hipMemcpy(u ,  u_g ,  size, hipMemcpyDeviceToHost);
            hipMemcpy(v ,  v_g ,  size, hipMemcpyDeviceToHost);
            hipMemcpy(un , un_g,  size, hipMemcpyDeviceToHost);
            hipMemcpy(vn , vn_g,  size, hipMemcpyDeviceToHost);
            hipMemcpy(p ,  p_g,   size, hipMemcpyDeviceToHost);
            
            error = Error(u, un, v, vn, nx, ny);
            cout << loops << " loops has been operated." <<endl;
            cout << "The relative error is : " << error <<endl;
//            output_paraview_format(loops, nx, ny, 1, u, v, v, p);
            output_u(loops, u, v, nx);
        }
    }
    cout << "Computation ends." << endl;
    
    return 0;
}

// Lian Tongda
// Jun 19 2020

	.text
	.file	"cavity_NS_Lian.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z4initPdS_S_S_S_S_S_ii         # -- Begin function _Z4initPdS_S_S_S_S_S_ii
	.type	_Z4initPdS_S_S_S_S_S_ii,@function
_Z4initPdS_S_S_S_S_S_ii:                # @_Z4initPdS_S_S_S_S_S_ii
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	104(%rsp), %eax
	testl	%eax, %eax
	jle	.LBB0_9
# %bb.1:                                # %.preheader47.lr.ph
	movl	112(%rsp), %r11d
	movq	96(%rsp), %rbx
	movq	%rax, 8(%rsp)                   # 8-byte Spill
	movl	%eax, %eax
	movl	%r11d, %r10d
	movq	%r10, 32(%rsp)                  # 8-byte Spill
	leaq	(,%rax,8), %r15
	xorl	%r12d, %r12d
	movq	%rdi, 16(%rsp)                  # 8-byte Spill
	movq	%rdi, %r13
	movq	%rsi, 24(%rsp)                  # 8-byte Spill
	movq	%rsi, %rbp
	xorl	%r10d, %r10d
.LBB0_2:                                # %.preheader47
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_4 Depth 2
	testl	%r11d, %r11d
	jle	.LBB0_5
# %bb.3:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB0_2 Depth=1
	movq	32(%rsp), %r14                  # 8-byte Reload
	xorl	%edi, %edi
.LBB0_4:                                # %.lr.ph
                                        #   Parent Loop BB0_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%r12, (%r13,%rdi)
	movq	%r12, (%rbp,%rdi)
	movq	%r12, (%rdx,%rdi)
	movq	%r12, (%rcx,%rdi)
	movq	%r12, (%r8,%rdi)
	movq	%r12, (%r9,%rdi)
	movq	%r12, (%rbx,%rdi)
	addq	%r15, %rdi
	decq	%r14
	jne	.LBB0_4
.LBB0_5:                                # %._crit_edge
                                        #   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	addq	$8, %rbx
	addq	$8, %r9
	addq	$8, %r8
	addq	$8, %rcx
	addq	$8, %rdx
	addq	$8, %rbp
	addq	$8, %r13
	cmpq	%rax, %r10
	jne	.LBB0_2
# %bb.6:                                # %.preheader
	movq	8(%rsp), %rdx                   # 8-byte Reload
	testl	%edx, %edx
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movq	16(%rsp), %rdi                  # 8-byte Reload
	jle	.LBB0_9
# %bb.7:                                # %.lr.ph51
	leal	-1(%rdx), %ecx
	imull	%edx, %ecx
	movslq	%ecx, %rdx
	leaq	(%rdi,%rdx,8), %rcx
	leaq	(%rsi,%rdx,8), %rdx
	xorl	%esi, %esi
	movabsq	$4607182418800017408, %rdi      # imm = 0x3FF0000000000000
.LBB0_8:                                # =>This Inner Loop Header: Depth=1
	movq	%rdi, (%rcx,%rsi,8)
	movq	%rdi, (%rdx,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	.LBB0_8
.LBB0_9:                                # %._crit_edge52
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$16, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	jmp	_ZNSo5flushEv                   # TAILCALL
.Lfunc_end0:
	.size	_Z4initPdS_S_S_S_S_S_ii, .Lfunc_end0-_Z4initPdS_S_S_S_S_S_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z25__device_stub__build_up_bPdS_S_ddddii # -- Begin function _Z25__device_stub__build_up_bPdS_S_ddddii
	.type	_Z25__device_stub__build_up_bPdS_S_ddddii,@function
_Z25__device_stub__build_up_bPdS_S_ddddii: # @_Z25__device_stub__build_up_bPdS_S_ddddii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$192, %rsp
	.cfi_def_cfa_offset 240
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	40(%rsp), %r9
	movsd	%xmm1, (%r9)
	leaq	32(%rsp), %r10
	movsd	%xmm2, (%r10)
	leaq	24(%rsp), %r11
	movsd	%xmm3, (%r11)
	leaq	4(%rsp), %r14
	movl	%ecx, (%r14)
	movq	%rsp, %rcx
	movl	%r8d, (%rcx)
	leaq	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%r9, 32(%rbx)
	movq	%r10, 40(%rbx)
	movq	%r11, 48(%rbx)
	movq	%r14, 56(%rbx)
	movq	%rcx, 64(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z10build_up_bPdS_S_ddddii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$208, %rsp
	.cfi_adjust_cfa_offset -208
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z25__device_stub__build_up_bPdS_S_ddddii, .Lfunc_end1-_Z25__device_stub__build_up_bPdS_S_ddddii
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__pressure_poissonPdS_S_ddiid # -- Begin function _Z31__device_stub__pressure_poissonPdS_S_ddiid
	.type	_Z31__device_stub__pressure_poissonPdS_S_ddiid,@function
_Z31__device_stub__pressure_poissonPdS_S_ddiid: # @_Z31__device_stub__pressure_poissonPdS_S_ddiid
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$176, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	72(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	64(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	56(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	48(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	40(%rsp), %r9
	movsd	%xmm1, (%r9)
	leaq	12(%rsp), %r10
	movl	%ecx, (%r10)
	leaq	8(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	32(%rsp), %r8
	movsd	%xmm2, (%r8)
	leaq	112(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%r9, 32(%rbx)
	movq	%r10, 40(%rbx)
	movq	%rcx, 48(%rbx)
	movq	%r8, 56(%rbx)
	leaq	96(%rsp), %r14
	leaq	80(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z16pressure_poissonPdS_S_ddiid, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$192, %rsp
	.cfi_adjust_cfa_offset -192
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z31__device_stub__pressure_poissonPdS_S_ddiid, .Lfunc_end2-_Z31__device_stub__pressure_poissonPdS_S_ddiid
	.cfi_endproc
                                        # -- End function
	.globl	_Z32__device_stub__pressure_boundaryPdii # -- Begin function _Z32__device_stub__pressure_boundaryPdii
	.type	_Z32__device_stub__pressure_boundaryPdii,@function
_Z32__device_stub__pressure_boundaryPdii: # @_Z32__device_stub__pressure_boundaryPdii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$96, %rsp
	.cfi_def_cfa_offset 144
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	4(%rsp), %rcx
	movl	%esi, (%rcx)
	movq	%rsp, %rsi
	movl	%edx, (%rsi)
	leaq	64(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z17pressure_boundaryPdii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$112, %rsp
	.cfi_adjust_cfa_offset -112
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z32__device_stub__pressure_boundaryPdii, .Lfunc_end3-_Z32__device_stub__pressure_boundaryPdii
	.cfi_endproc
                                        # -- End function
	.globl	_Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd # -- Begin function _Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd
	.type	_Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd,@function
_Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd: # @_Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$256, %rsp                      # imm = 0x100
	.cfi_def_cfa_offset 304
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	104(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	96(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	88(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	80(%rsp), %rdx
	movq	%rcx, (%rdx)
	leaq	72(%rsp), %rcx
	movq	%r8, (%rcx)
	leaq	64(%rsp), %r8
	movq	%r9, (%r8)
	leaq	56(%rsp), %r9
	movsd	%xmm0, (%r9)
	leaq	48(%rsp), %r10
	movsd	%xmm1, (%r10)
	leaq	40(%rsp), %r11
	movsd	%xmm2, (%r11)
	leaq	32(%rsp), %r14
	movsd	%xmm3, (%r14)
	leaq	24(%rsp), %r15
	movsd	%xmm4, (%r15)
	leaq	144(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	304(%rsp), %rax
	movq	%rax, 48(%rbx)
	leaq	312(%rsp), %rax
	movq	%rax, 56(%rbx)
	leaq	320(%rsp), %rax
	movq	%rax, 64(%rbx)
	movq	%r9, 72(%rbx)
	movq	%r10, 80(%rbx)
	movq	%r11, 88(%rbx)
	movq	%r14, 96(%rbx)
	movq	%r15, 104(%rbx)
	leaq	128(%rsp), %r14
	leaq	112(%rsp), %r15
	leaq	16(%rsp), %r12
	leaq	8(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z11cavity_flowPdS_S_S_S_S_S_iiddddd, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$272, %rsp                      # imm = 0x110
	.cfi_adjust_cfa_offset -272
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd, .Lfunc_end4-_Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd
	.cfi_endproc
                                        # -- End function
	.globl	_Z32__device_stub__velocity_boundaryPdS_ii # -- Begin function _Z32__device_stub__velocity_boundaryPdS_ii
	.type	_Z32__device_stub__velocity_boundaryPdS_ii,@function
_Z32__device_stub__velocity_boundaryPdS_ii: # @_Z32__device_stub__velocity_boundaryPdS_ii
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z17velocity_boundaryPdS_ii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z32__device_stub__velocity_boundaryPdS_ii, .Lfunc_end5-_Z32__device_stub__velocity_boundaryPdS_ii
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z5ErrorPdS_S_S_ii
.LCPI6_0:
	.quad	0x39b4484bfeebc2a0              # double 1.0000000000000001E-30
	.text
	.globl	_Z5ErrorPdS_S_S_ii
	.type	_Z5ErrorPdS_S_S_ii,@function
_Z5ErrorPdS_S_S_ii:                     # @_Z5ErrorPdS_S_S_ii
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	pushq	%rax
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	xorpd	%xmm1, %xmm1
	xorpd	%xmm6, %xmm6
	xorpd	%xmm0, %xmm0
	testl	%r8d, %r8d
	jle	.LBB6_6
# %bb.1:                                # %.preheader.lr.ph
	movl	%r8d, %eax
	movl	%r9d, %r8d
	leaq	(,%rax,8), %r10
	xorl	%r11d, %r11d
.LBB6_2:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB6_4 Depth 2
	testl	%r9d, %r9d
	jle	.LBB6_5
# %bb.3:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB6_2 Depth=1
	movq	%r8, %rbx
	xorl	%r14d, %r14d
.LBB6_4:                                # %.lr.ph
                                        #   Parent Loop BB6_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rdi,%r14), %xmm2              # xmm2 = mem[0],zero
	movapd	%xmm2, %xmm3
	subsd	(%rsi,%r14), %xmm3
	mulsd	%xmm3, %xmm3
	movsd	(%rdx,%r14), %xmm4              # xmm4 = mem[0],zero
	movapd	%xmm4, %xmm5
	subsd	(%rcx,%r14), %xmm5
	mulsd	%xmm5, %xmm5
	addsd	%xmm3, %xmm5
	addsd	%xmm5, %xmm0
	mulsd	%xmm2, %xmm2
	mulsd	%xmm4, %xmm4
	addsd	%xmm2, %xmm4
	addsd	%xmm4, %xmm6
	addq	%r10, %r14
	decq	%rbx
	jne	.LBB6_4
.LBB6_5:                                # %._crit_edge
                                        #   in Loop: Header=BB6_2 Depth=1
	incq	%r11
	addq	$8, %rcx
	addq	$8, %rdx
	addq	$8, %rsi
	addq	$8, %rdi
	cmpq	%rax, %r11
	jne	.LBB6_2
.LBB6_6:                                # %._crit_edge50
	ucomisd	%xmm1, %xmm0
	jb	.LBB6_8
# %bb.7:
	xorps	%xmm1, %xmm1
	sqrtsd	%xmm0, %xmm1
	jmp	.LBB6_9
.LBB6_8:                                # %call.sqrt
	movsd	%xmm6, (%rsp)                   # 8-byte Spill
	callq	sqrt
	movsd	(%rsp), %xmm6                   # 8-byte Reload
                                        # xmm6 = mem[0],zero
	movapd	%xmm0, %xmm1
.LBB6_9:                                # %._crit_edge50.split
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm6
	jb	.LBB6_11
# %bb.10:
	xorps	%xmm0, %xmm0
	sqrtsd	%xmm6, %xmm0
	jmp	.LBB6_12
.LBB6_11:                               # %call.sqrt77
	movapd	%xmm6, %xmm0
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	callq	sqrt
	movsd	(%rsp), %xmm1                   # 8-byte Reload
                                        # xmm1 = mem[0],zero
.LBB6_12:                               # %._crit_edge50.split.split
	addsd	.LCPI6_0(%rip), %xmm0
	divsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z5ErrorPdS_S_S_ii, .Lfunc_end6-_Z5ErrorPdS_S_S_ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z8output_uiPdS_i               # -- Begin function _Z8output_uiPdS_i
	.type	_Z8output_uiPdS_i,@function
_Z8output_uiPdS_i:                      # @_Z8output_uiPdS_i
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$920, %rsp                      # imm = 0x398
	.cfi_def_cfa_offset 976
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %ebp
	leaq	32(%rsp), %r12
	movq	%r12, %rdi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev
.Ltmp0:
	movl	$.L.str.1, %esi
	movl	$2, %edx
	movq	%r12, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp1:
# %bb.1:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
.Ltmp2:
	leaq	32(%rsp), %rdi
	movl	%ebp, %esi
	callq	_ZNSolsEi
.Ltmp3:
# %bb.2:
.Ltmp4:
	movl	$.L.str.2, %esi
	movl	$4, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp5:
# %bb.3:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit24
	leaq	40(%rsp), %rsi
.Ltmp7:
	movq	%rsp, %rdi
	callq	_ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv
.Ltmp8:
# %bb.4:                                # %_ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv.exit
	movq	(%rsp), %rsi
.Ltmp10:
	leaq	408(%rsp), %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode
.Ltmp11:
# %bb.5:
	leaq	16(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB7_7
# %bb.6:                                # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i
	callq	_ZdlPv
.LBB7_7:                                # %_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev.exit
	testl	%r15d, %r15d
	jle	.LBB7_16
# %bb.8:                                # %.lr.ph
	leal	1(%r15), %eax
	movl	%eax, %ecx
	shrl	%ecx
	imull	%r15d, %eax
	shrl	%eax
	movl	%r15d, %r15d
	leaq	(%r14,%rcx,8), %r12
	leaq	(%rbx,%rax,8), %r13
	leaq	(,%r15,8), %rbp
	xorl	%ebx, %ebx
.LBB7_9:                                # =>This Inner Loop Header: Depth=1
	movsd	(%r12), %xmm0                   # xmm0 = mem[0],zero
.Ltmp13:
	leaq	408(%rsp), %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp14:
# %bb.10:                               # %_ZNSolsEd.exit
                                        #   in Loop: Header=BB7_9 Depth=1
.Ltmp15:
	movq	%rax, %r14
	movl	$.L.str.3, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp16:
# %bb.11:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit28
                                        #   in Loop: Header=BB7_9 Depth=1
	movsd	(%r13,%rbx,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp17:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp18:
# %bb.12:                               # %_ZNSolsEd.exit29
                                        #   in Loop: Header=BB7_9 Depth=1
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp19:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp20:
# %bb.13:                               # %.noexc
                                        #   in Loop: Header=BB7_9 Depth=1
.Ltmp21:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp22:
# %bb.14:                               # %.noexc30
                                        #   in Loop: Header=BB7_9 Depth=1
.Ltmp23:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp24:
# %bb.15:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB7_9 Depth=1
	incq	%rbx
	addq	%rbp, %r12
	cmpq	%rbx, %r15
	jne	.LBB7_9
.LBB7_16:                               # %._crit_edge
.Ltmp26:
	leaq	408(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp27:
# %bb.17:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	416(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 408(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	656(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	leaq	32(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	144(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	addq	$920, %rsp                      # imm = 0x398
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB7_18:
	.cfi_def_cfa_offset 976
.Ltmp28:
	jmp	.LBB7_25
.LBB7_19:
.Ltmp12:
	movq	%rax, %rbx
	leaq	16(%rsp), %rax
	movq	-16(%rax), %rdi
	cmpq	%rax, %rdi
	je	.LBB7_26
# %bb.20:                               # %_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv.exit.i.i25
	callq	_ZdlPv
	jmp	.LBB7_26
.LBB7_21:
.Ltmp9:
	jmp	.LBB7_23
.LBB7_22:
.Ltmp6:
.LBB7_23:
	movq	%rax, %rbx
	jmp	.LBB7_26
.LBB7_24:
.Ltmp25:
.LBB7_25:
	movq	%rax, %rbx
	leaq	408(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
.LBB7_26:
	leaq	32(%rsp), %rdi
	movl	$_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE, %esi
	callq	_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev
	leaq	144(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end7:
	.size	_Z8output_uiPdS_i, .Lfunc_end7-_Z8output_uiPdS_i
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table7:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp5-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp5
	.uleb128 .Ltmp6-.Lfunc_begin0           #     jumps to .Ltmp6
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp7-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp8-.Ltmp7                  #   Call between .Ltmp7 and .Ltmp8
	.uleb128 .Ltmp9-.Lfunc_begin0           #     jumps to .Ltmp9
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp11-.Ltmp10                #   Call between .Ltmp10 and .Ltmp11
	.uleb128 .Ltmp12-.Lfunc_begin0          #     jumps to .Ltmp12
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp24-.Ltmp13                #   Call between .Ltmp13 and .Ltmp24
	.uleb128 .Ltmp25-.Lfunc_begin0          #     jumps to .Ltmp25
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp26-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp27-.Ltmp26                #   Call between .Ltmp26 and .Ltmp27
	.uleb128 .Ltmp28-.Lfunc_begin0          #     jumps to .Ltmp28
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp27-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Lfunc_end7-.Ltmp27            #   Call between .Ltmp27 and .Lfunc_end7
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI8_0:
	.quad	0x3ff0000000000000              # double 1
.LCPI8_1:
	.quad	0x3f50624dd2f1a9fc              # double 0.001
.LCPI8_2:
	.quad	0x3fa999999999999a              # double 0.050000000000000003
.LCPI8_3:
	.quad	0x3fb999999999999a              # double 0.10000000000000001
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movabsq	$176093659137, %rbx             # imm = 0x2900000001
	movabsq	$4294967424, %r14               # imm = 0x100000080
	movl	$13448, %edi                    # imm = 0x3488
	callq	malloc
	movq	%rax, 24(%rsp)                  # 8-byte Spill
	movl	$13448, %edi                    # imm = 0x3488
	callq	malloc
	movq	%rax, 64(%rsp)                  # 8-byte Spill
	movl	$13448, %edi                    # imm = 0x3488
	callq	malloc
	movq	%rax, %r15
	movq	%rax, 72(%rsp)                  # 8-byte Spill
	movl	$13448, %edi                    # imm = 0x3488
	callq	malloc
	movq	%rax, %rbp
	movq	%rax, 80(%rsp)                  # 8-byte Spill
	movl	$13448, %edi                    # imm = 0x3488
	callq	malloc
	movq	%rax, %r13
	movl	$13448, %edi                    # imm = 0x3488
	callq	malloc
	movq	%rax, %r12
	movl	$13448, %edi                    # imm = 0x3488
	callq	malloc
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movl	$41, %r10d
	movq	32(%rsp), %rdi                  # 8-byte Reload
	movq	72(%rsp), %rsi                  # 8-byte Reload
	movq	%r15, %rdx
	movq	%rbp, %rcx
	movq	%r13, %r8
	movq	%r13, %rbp
	movq	%r12, %r9
	movq	%r12, %r15
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	%r10
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	movq	%rax, %r13
	.cfi_adjust_cfa_offset 8
	callq	_Z4initPdS_S_S_S_S_S_ii
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
	leaq	16(%rsp), %r12
	movl	$13448, %esi                    # imm = 0x3488
	movq	%r12, %rdi
	callq	hipMalloc
	leaq	48(%rsp), %rdi
	movl	$13448, %esi                    # imm = 0x3488
	callq	hipMalloc
	leaq	8(%rsp), %rdi
	movl	$13448, %esi                    # imm = 0x3488
	callq	hipMalloc
	leaq	40(%rsp), %rdi
	movl	$13448, %esi                    # imm = 0x3488
	callq	hipMalloc
	movq	%rsp, %rdi
	movl	$13448, %esi                    # imm = 0x3488
	callq	hipMalloc
	leaq	32(%rsp), %rdi
	movl	$13448, %esi                    # imm = 0x3488
	callq	hipMalloc
	leaq	56(%rsp), %rdi
	movl	$13448, %esi                    # imm = 0x3488
	callq	hipMalloc
	movq	(%r12), %rdi
	movl	$1, %r12d
	movl	$13448, %edx                    # imm = 0x3488
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	48(%rsp), %rax
	movq	(%rax), %rdi
	movl	$13448, %edx                    # imm = 0x3488
	movq	64(%rsp), %rsi                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	8(%rsp), %rax
	movq	(%rax), %rdi
	movl	$13448, %edx                    # imm = 0x3488
	movq	72(%rsp), %rsi                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	40(%rsp), %rax
	movq	(%rax), %rdi
	movl	$13448, %edx                    # imm = 0x3488
	movq	80(%rsp), %rsi                  # 8-byte Reload
	movl	$1, %ecx
	callq	hipMemcpy
	movq	%rsp, %rax
	movq	(%rax), %rdi
	movl	$13448, %edx                    # imm = 0x3488
	movq	%rbp, %rsi
	movq	%rbp, 88(%rsp)                  # 8-byte Spill
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	32(%rsp), %rax
	movq	(%rax), %rdi
	movl	$13448, %edx                    # imm = 0x3488
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	leaq	56(%rsp), %rax
	movq	(%rax), %rdi
	movl	$13448, %edx                    # imm = 0x3488
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	movq	72(%rsp), %r13                  # 8-byte Reload
	movq	80(%rsp), %r15                  # 8-byte Reload
.LBB8_1:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB8_4 Depth 2
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_3
# %bb.2:                                #   in Loop: Header=BB8_1 Depth=1
	movq	56(%rsp), %rdi
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdx
	movsd	.LCPI8_0(%rip), %xmm0           # xmm0 = mem[0],zero
	movsd	.LCPI8_1(%rip), %xmm1           # xmm1 = mem[0],zero
	movsd	.LCPI8_2(%rip), %xmm2           # xmm2 = mem[0],zero
	movaps	%xmm2, %xmm3
	movl	$41, %ecx
	movl	$41, %r8d
	callq	_Z25__device_stub__build_up_bPdS_S_ddddii
.LBB8_3:                                #   in Loop: Header=BB8_1 Depth=1
	callq	hipDeviceSynchronize
	movl	$50, %ebp
.LBB8_4:                                #   Parent Loop BB8_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_6
# %bb.5:                                #   in Loop: Header=BB8_4 Depth=2
	movq	(%rsp), %rdi
	movq	32(%rsp), %rsi
	movq	56(%rsp), %rdx
	movsd	.LCPI8_2(%rip), %xmm0           # xmm0 = mem[0],zero
	movaps	%xmm0, %xmm1
	movl	$41, %ecx
	movl	$41, %r8d
	movsd	.LCPI8_0(%rip), %xmm2           # xmm2 = mem[0],zero
	callq	_Z31__device_stub__pressure_poissonPdS_S_ddiid
.LBB8_6:                                #   in Loop: Header=BB8_4 Depth=2
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_8
# %bb.7:                                #   in Loop: Header=BB8_4 Depth=2
	movq	(%rsp), %rdi
	movl	$41, %esi
	movl	$41, %edx
	callq	_Z32__device_stub__pressure_boundaryPdii
.LBB8_8:                                #   in Loop: Header=BB8_4 Depth=2
	movq	32(%rsp), %rax
	movq	(%rsp), %rcx
	movq	%rcx, 32(%rsp)
	movq	%rax, (%rsp)
	decl	%ebp
	jne	.LBB8_4
# %bb.9:                                #   in Loop: Header=BB8_1 Depth=1
	callq	hipDeviceSynchronize
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_11
# %bb.10:                               #   in Loop: Header=BB8_1 Depth=1
	movq	16(%rsp), %rdi
	movq	48(%rsp), %rsi
	movq	8(%rsp), %rdx
	movq	40(%rsp), %rcx
	movq	(%rsp), %r8
	movq	32(%rsp), %r9
	subq	$8, %rsp
	.cfi_adjust_cfa_offset 8
	movsd	.LCPI8_2(%rip), %xmm0           # xmm0 = mem[0],zero
	movaps	%xmm0, %xmm1
	movsd	.LCPI8_1(%rip), %xmm2           # xmm2 = mem[0],zero
	movsd	.LCPI8_3(%rip), %xmm3           # xmm3 = mem[0],zero
	movsd	.LCPI8_0(%rip), %xmm4           # xmm4 = mem[0],zero
	movl	$41, %eax
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	%rax
	.cfi_adjust_cfa_offset 8
	pushq	80(%rsp)
	.cfi_adjust_cfa_offset 8
	callq	_Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd
	addq	$32, %rsp
	.cfi_adjust_cfa_offset -32
.LBB8_11:                               #   in Loop: Header=BB8_1 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB8_13
# %bb.12:                               #   in Loop: Header=BB8_1 Depth=1
	movq	16(%rsp), %rdi
	movq	8(%rsp), %rsi
	movl	$41, %edx
	movl	$41, %ecx
	callq	_Z32__device_stub__velocity_boundaryPdS_ii
.LBB8_13:                               #   in Loop: Header=BB8_1 Depth=1
	movq	48(%rsp), %rax
	movq	16(%rsp), %rcx
	movq	%rcx, 48(%rsp)
	movq	%rax, 16(%rsp)
	movq	40(%rsp), %rax
	movq	8(%rsp), %rcx
	movq	%rcx, 40(%rsp)
	movq	%rax, 8(%rsp)
	callq	hipDeviceSynchronize
	imull	$-1030792151, %r12d, %eax       # imm = 0xC28F5C29
	rorl	$2, %eax
	cmpl	$42949672, %eax                 # imm = 0x28F5C28
	ja	.LBB8_15
# %bb.14:                               #   in Loop: Header=BB8_1 Depth=1
	movq	16(%rsp), %rsi
	movl	$13448, %edx                    # imm = 0x3488
	movq	24(%rsp), %rdi                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
	movq	8(%rsp), %rsi
	movl	$13448, %edx                    # imm = 0x3488
	movq	%r13, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	48(%rsp), %rsi
	movl	$13448, %edx                    # imm = 0x3488
	movq	64(%rsp), %rbp                  # 8-byte Reload
	movq	%rbp, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	40(%rsp), %rsi
	movl	$13448, %edx                    # imm = 0x3488
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	movq	(%rsp), %rsi
	movl	$13448, %edx                    # imm = 0x3488
	movq	88(%rsp), %rdi                  # 8-byte Reload
	movl	$2, %ecx
	callq	hipMemcpy
	movq	24(%rsp), %rdi                  # 8-byte Reload
	movq	%rbp, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	$41, %r8d
	movl	$41, %r9d
	callq	_Z5ErrorPdS_S_S_ii
	movsd	%xmm0, 96(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	%r12d, %esi
	callq	_ZNSolsEi
	movq	%rax, %rbp
	movl	$.L.str.4, %esi
	movl	$25, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	(%rbp), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.5, %esi
	movl	$24, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	96(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbp
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbp, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbp, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	%r12d, %edi
	movq	24(%rsp), %rsi                  # 8-byte Reload
	movq	%r13, %rdx
	movl	$41, %ecx
	callq	_Z8output_uiPdS_i
.LBB8_15:                               #   in Loop: Header=BB8_1 Depth=1
	incl	%r12d
	cmpl	$10001, %r12d                   # imm = 0x2711
	jne	.LBB8_1
# %bb.16:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.6, %esi
	movl	$17, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movq	_ZSt4cout(%rip), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%eax, %eax
	addq	$104, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	main, .Lfunc_end8-main
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB9_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB9_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z10build_up_bPdS_S_ddddii, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16pressure_poissonPdS_S_ddiid, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17pressure_boundaryPdii, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z11cavity_flowPdS_S_S_S_S_S_iiddddd, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17velocity_boundaryPdS_ii, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end9:
	.size	__hip_module_ctor, .Lfunc_end9-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB10_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB10_2:
	retq
.Lfunc_end10:
	.size	__hip_module_dtor, .Lfunc_end10-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"DATA INITIALIZED"
	.size	.L.str, 17

	.type	_Z10build_up_bPdS_S_ddddii,@object # @_Z10build_up_bPdS_S_ddddii
	.section	.rodata,"a",@progbits
	.globl	_Z10build_up_bPdS_S_ddddii
	.p2align	3, 0x0
_Z10build_up_bPdS_S_ddddii:
	.quad	_Z25__device_stub__build_up_bPdS_S_ddddii
	.size	_Z10build_up_bPdS_S_ddddii, 8

	.type	_Z16pressure_poissonPdS_S_ddiid,@object # @_Z16pressure_poissonPdS_S_ddiid
	.globl	_Z16pressure_poissonPdS_S_ddiid
	.p2align	3, 0x0
_Z16pressure_poissonPdS_S_ddiid:
	.quad	_Z31__device_stub__pressure_poissonPdS_S_ddiid
	.size	_Z16pressure_poissonPdS_S_ddiid, 8

	.type	_Z17pressure_boundaryPdii,@object # @_Z17pressure_boundaryPdii
	.globl	_Z17pressure_boundaryPdii
	.p2align	3, 0x0
_Z17pressure_boundaryPdii:
	.quad	_Z32__device_stub__pressure_boundaryPdii
	.size	_Z17pressure_boundaryPdii, 8

	.type	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd,@object # @_Z11cavity_flowPdS_S_S_S_S_S_iiddddd
	.globl	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd
	.p2align	3, 0x0
_Z11cavity_flowPdS_S_S_S_S_S_iiddddd:
	.quad	_Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd
	.size	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd, 8

	.type	_Z17velocity_boundaryPdS_ii,@object # @_Z17velocity_boundaryPdS_ii
	.globl	_Z17velocity_boundaryPdS_ii
	.p2align	3, 0x0
_Z17velocity_boundaryPdS_ii:
	.quad	_Z32__device_stub__velocity_boundaryPdS_ii
	.size	_Z17velocity_boundaryPdS_ii, 8

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"u_"
	.size	.L.str.1, 3

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	".txt"
	.size	.L.str.2, 5

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	" "
	.size	.L.str.3, 2

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	" loops has been operated."
	.size	.L.str.4, 26

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"The relative error is : "
	.size	.L.str.5, 25

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"Computation ends."
	.size	.L.str.6, 18

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z10build_up_bPdS_S_ddddii"
	.size	.L__unnamed_1, 27

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z16pressure_poissonPdS_S_ddiid"
	.size	.L__unnamed_2, 32

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z17pressure_boundaryPdii"
	.size	.L__unnamed_3, 26

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z11cavity_flowPdS_S_S_S_S_S_iiddddd"
	.size	.L__unnamed_4, 37

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z17velocity_boundaryPdS_ii"
	.size	.L__unnamed_5, 28

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z25__device_stub__build_up_bPdS_S_ddddii
	.addrsig_sym _Z31__device_stub__pressure_poissonPdS_S_ddiid
	.addrsig_sym _Z32__device_stub__pressure_boundaryPdii
	.addrsig_sym _Z26__device_stub__cavity_flowPdS_S_S_S_S_S_iiddddd
	.addrsig_sym _Z32__device_stub__velocity_boundaryPdS_ii
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cout
	.addrsig_sym _Z10build_up_bPdS_S_ddddii
	.addrsig_sym _Z16pressure_poissonPdS_S_ddiid
	.addrsig_sym _Z17pressure_boundaryPdii
	.addrsig_sym _Z11cavity_flowPdS_S_S_S_S_S_iiddddd
	.addrsig_sym _Z17velocity_boundaryPdS_ii
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z10build_up_bPdS_S_ddddii ; -- Begin function _Z10build_up_bPdS_S_ddddii
	.globl	_Z10build_up_bPdS_S_ddddii
	.p2align	8
	.type	_Z10build_up_bPdS_S_ddddii,@function
_Z10build_up_bPdS_S_ddddii:             ; @_Z10build_up_bPdS_S_ddddii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x4c
	s_load_b64 s[12:13], s[0:1], 0x38
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s2, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s3, v[3:4]
	s_add_i32 s2, s12, -1
	s_add_i32 s3, s13, -1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	v_cmp_lt_i32_e64 s4, 0, v0
	v_cmp_gt_i32_e64 s2, s3, v1
	v_cmp_lt_i32_e64 s3, 0, v1
	s_delay_alu instid0(VALU_DEP_2)
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s4, s2
	s_and_saveexec_b32 s3, s2
	s_cbranch_execz .LBB0_2
; %bb.1:
	v_mul_lo_u32 v1, v1, s12
	s_load_b256 s[4:11], s[0:1], 0x0
	s_lshl_b32 s2, s12, 1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v3, s12, v1
	v_add_nc_u32_e32 v1, v1, v0
	s_load_b256 s[12:19], s[0:1], 0x20
	v_subrev_nc_u32_e32 v4, s2, v3
	v_add_nc_u32_e32 v3, v3, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v2, 31, v1
	v_add_nc_u32_e32 v0, v4, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v4, 31, v3
	v_lshlrev_b64 v[5:6], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[2:3], 3, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v7, vcc_lo, s6, v5
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v6, vcc_lo
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v11, vcc_lo, s8, v2
	v_add_co_ci_u32_e32 v12, vcc_lo, s9, v3, vcc_lo
	v_add_co_u32 v2, vcc_lo, s6, v2
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v3, vcc_lo
	v_add_co_u32 v13, vcc_lo, s8, v0
	v_add_co_ci_u32_e32 v14, vcc_lo, s9, v1, vcc_lo
	s_clause 0x1
	global_load_b64 v[9:10], v[7:8], off offset:8
	global_load_b64 v[7:8], v[7:8], off offset:-8
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	s_clause 0x1
	global_load_b64 v[11:12], v[11:12], off
	global_load_b64 v[13:14], v[13:14], off
	s_clause 0x1
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[0:1], v[0:1], off
	v_add_f64 v[15:16], s[14:15], s[14:15]
	v_add_co_u32 v21, vcc_lo, s8, v5
	v_add_co_ci_u32_e32 v22, vcc_lo, s9, v6, vcc_lo
	s_clause 0x1
	global_load_b64 v[23:24], v[21:22], off offset:8
	global_load_b64 v[21:22], v[21:22], off offset:-8
	v_div_scale_f64 v[41:42], vcc_lo, 1.0, s[12:13], 1.0
	s_waitcnt vmcnt(6)
	v_add_f64 v[7:8], v[9:10], -v[7:8]
	v_add_f64 v[9:10], s[16:17], s[16:17]
	s_waitcnt vmcnt(4)
	v_add_f64 v[11:12], v[11:12], -v[13:14]
	s_waitcnt vmcnt(2)
	v_add_f64 v[0:1], v[2:3], -v[0:1]
	v_div_scale_f64 v[2:3], null, s[12:13], s[12:13], 1.0
	s_waitcnt vmcnt(0)
	v_add_f64 v[21:22], v[23:24], -v[21:22]
	v_div_scale_f64 v[13:14], null, v[15:16], v[15:16], v[7:8]
	v_div_scale_f64 v[17:18], null, v[9:10], v[9:10], v[11:12]
	v_div_scale_f64 v[19:20], null, v[9:10], v[9:10], v[0:1]
	v_rcp_f64_e32 v[25:26], v[2:3]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[27:28], v[13:14]
	v_rcp_f64_e32 v[29:30], v[17:18]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(TRANS32_DEP_3)
	v_rcp_f64_e32 v[31:32], v[19:20]
	v_fma_f64 v[33:34], -v[2:3], v[25:26], 1.0
	v_fma_f64 v[35:36], -v[13:14], v[27:28], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[37:38], -v[17:18], v[29:30], 1.0
	v_fma_f64 v[39:40], -v[19:20], v[31:32], 1.0
	v_fma_f64 v[25:26], v[25:26], v[33:34], v[25:26]
	v_fma_f64 v[27:28], v[27:28], v[35:36], v[27:28]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[29:30], v[29:30], v[37:38], v[29:30]
	v_fma_f64 v[31:32], v[31:32], v[39:40], v[31:32]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[33:34], -v[2:3], v[25:26], 1.0
	v_fma_f64 v[35:36], -v[13:14], v[27:28], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[37:38], -v[17:18], v[29:30], 1.0
	v_fma_f64 v[39:40], -v[19:20], v[31:32], 1.0
	s_delay_alu instid0(VALU_DEP_4)
	v_fma_f64 v[25:26], v[25:26], v[33:34], v[25:26]
	v_div_scale_f64 v[33:34], s0, v[7:8], v[15:16], v[7:8]
	v_fma_f64 v[27:28], v[27:28], v[35:36], v[27:28]
	v_div_scale_f64 v[35:36], s1, v[11:12], v[9:10], v[11:12]
	v_fma_f64 v[29:30], v[29:30], v[37:38], v[29:30]
	v_div_scale_f64 v[37:38], s2, v[0:1], v[9:10], v[0:1]
	v_fma_f64 v[31:32], v[31:32], v[39:40], v[31:32]
	v_mul_f64 v[39:40], v[41:42], v[25:26]
	v_mul_f64 v[43:44], v[33:34], v[27:28]
	v_mul_f64 v[45:46], v[35:36], v[29:30]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[47:48], v[37:38], v[31:32]
	v_fma_f64 v[2:3], -v[2:3], v[39:40], v[41:42]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[13:14], -v[13:14], v[43:44], v[33:34]
	v_fma_f64 v[17:18], -v[17:18], v[45:46], v[35:36]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[19:20], -v[19:20], v[47:48], v[37:38]
	v_div_fmas_f64 v[2:3], v[2:3], v[25:26], v[39:40]
	s_mov_b32 vcc_lo, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[13:14], v[13:14], v[27:28], v[43:44]
	s_mov_b32 vcc_lo, s1
	v_div_fmas_f64 v[17:18], v[17:18], v[29:30], v[45:46]
	s_mov_b32 vcc_lo, s2
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[19:20], v[19:20], v[31:32], v[47:48]
	v_div_fixup_f64 v[2:3], v[2:3], s[12:13], 1.0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_fixup_f64 v[7:8], v[13:14], v[15:16], v[7:8]
	v_div_fixup_f64 v[0:1], v[19:20], v[9:10], v[0:1]
	v_div_fixup_f64 v[9:10], v[17:18], v[9:10], v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[0:1], v[0:1], v[21:22]
	v_add_f64 v[13:14], v[7:8], v[9:10]
	v_mul_f64 v[7:8], v[7:8], v[7:8]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[19:20], null, v[15:16], v[15:16], v[0:1]
	v_fma_f64 v[2:3], v[2:3], v[13:14], -v[7:8]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[21:22], v[19:20]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[23:24], -v[19:20], v[21:22], 1.0
	v_fma_f64 v[21:22], v[21:22], v[23:24], v[21:22]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[23:24], -v[19:20], v[21:22], 1.0
	v_fma_f64 v[21:22], v[21:22], v[23:24], v[21:22]
	v_div_scale_f64 v[23:24], vcc_lo, v[0:1], v[15:16], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_f64 v[25:26], v[23:24], v[21:22]
	v_fma_f64 v[11:12], -v[19:20], v[25:26], v[23:24]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_div_fmas_f64 v[11:12], v[11:12], v[21:22], v[25:26]
	v_div_fixup_f64 v[0:1], v[11:12], v[15:16], v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_3)
	v_fma_f64 v[0:1], v[0:1], -2.0, v[2:3]
	v_add_co_u32 v2, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v6, vcc_lo
	v_fma_f64 v[0:1], -v[9:10], v[9:10], v[0:1]
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[0:1], v[0:1], s[10:11]
	global_store_b64 v[2:3], v[0:1], off
.LBB0_2:
	s_or_b32 exec_lo, exec_lo, s3
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z10build_up_bPdS_S_ddddii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 320
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 49
		.amdhsa_next_free_sgpr 20
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z10build_up_bPdS_S_ddddii, .Lfunc_end0-_Z10build_up_bPdS_S_ddddii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1092
; NumSgprs: 22
; NumVgprs: 49
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 6
; NumSGPRsForWavesPerEU: 22
; NumVGPRsForWavesPerEU: 49
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z16pressure_poissonPdS_S_ddiid ; -- Begin function _Z16pressure_poissonPdS_S_ddiid
	.globl	_Z16pressure_poissonPdS_S_ddiid
	.p2align	8
	.type	_Z16pressure_poissonPdS_S_ddiid,@function
_Z16pressure_poissonPdS_S_ddiid:        ; @_Z16pressure_poissonPdS_S_ddiid
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x44
	s_load_b64 s[12:13], s[0:1], 0x28
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s2, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s3, v[3:4]
	s_add_i32 s2, s12, -1
	s_add_i32 s3, s13, -1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	v_cmp_lt_i32_e64 s4, 0, v0
	v_cmp_gt_i32_e64 s2, s3, v1
	v_cmp_lt_i32_e64 s3, 0, v1
	s_delay_alu instid0(VALU_DEP_2)
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s3, s4, s2
	s_and_saveexec_b32 s2, s3
	s_cbranch_execz .LBB1_2
; %bb.1:
	v_mul_lo_u32 v5, v1, s12
	s_load_b256 s[4:11], s[0:1], 0x0
	s_lshl_b32 s3, s12, 1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, s12, v5
	v_add_nc_u32_e32 v5, v5, v0
	v_subrev_nc_u32_e32 v2, s3, v1
	v_add_nc_u32_e32 v1, v1, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v6, 31, v5
	v_add_nc_u32_e32 v3, v2, v0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[5:6], 3, v[5:6]
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[13:14], s[10:11], s[10:11]
	v_ashrrev_i32_e32 v4, 31, v3
	v_lshlrev_b64 v[1:2], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[3:4], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s6, v1
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e32 v2, vcc_lo, s7, v2, vcc_lo
	v_add_co_u32 v3, vcc_lo, s6, v3
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v4, vcc_lo, s7, v4, vcc_lo
	v_add_co_u32 v7, vcc_lo, s6, v5
	s_clause 0x1
	global_load_b64 v[1:2], v[1:2], off
	global_load_b64 v[3:4], v[3:4], off
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v6, vcc_lo
	v_add_co_u32 v11, vcc_lo, s8, v5
	s_clause 0x1
	global_load_b64 v[9:10], v[7:8], off offset:8
	global_load_b64 v[7:8], v[7:8], off offset:-8
	v_add_co_ci_u32_e32 v12, vcc_lo, s9, v6, vcc_lo
	s_clause 0x1
	s_load_b64 s[6:7], s[0:1], 0x20
	s_load_b64 s[0:1], s[0:1], 0x30
	global_load_b64 v[11:12], v[11:12], off
	s_waitcnt vmcnt(3)
	v_add_f64 v[0:1], v[1:2], v[3:4]
	s_waitcnt lgkmcnt(0)
	v_mul_f64 v[2:3], v[13:14], s[6:7]
	s_waitcnt vmcnt(1)
	v_add_f64 v[7:8], v[9:10], v[7:8]
	v_fma_f64 v[9:10], s[6:7], s[6:7], v[13:14]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[0:1], v[0:1], s[10:11]
	v_mul_f64 v[2:3], v[2:3], s[6:7]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[7:8], v[7:8], s[6:7]
	v_add_f64 v[9:10], v[9:10], v[9:10]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_mul_f64 v[0:1], v[0:1], s[10:11]
	s_waitcnt vmcnt(0)
	v_mul_f64 v[2:3], v[2:3], v[11:12]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[0:1], v[7:8], s[6:7], v[0:1]
	v_mul_f64 v[2:3], v[2:3], s[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_scale_f64 v[7:8], null, v[9:10], v[9:10], v[0:1]
	v_div_scale_f64 v[11:12], null, v[9:10], v[9:10], v[2:3]
	v_div_scale_f64 v[21:22], vcc_lo, v[0:1], v[9:10], v[0:1]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[13:14], v[7:8]
	v_rcp_f64_e32 v[15:16], v[11:12]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[17:18], -v[7:8], v[13:14], 1.0
	v_fma_f64 v[19:20], -v[11:12], v[15:16], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[13:14], v[13:14], v[17:18], v[13:14]
	v_fma_f64 v[15:16], v[15:16], v[19:20], v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[17:18], -v[7:8], v[13:14], 1.0
	v_fma_f64 v[19:20], -v[11:12], v[15:16], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[13:14], v[13:14], v[17:18], v[13:14]
	v_div_scale_f64 v[17:18], s0, v[2:3], v[9:10], v[2:3]
	v_fma_f64 v[15:16], v[15:16], v[19:20], v[15:16]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_f64 v[19:20], v[21:22], v[13:14]
	v_mul_f64 v[23:24], v[17:18], v[15:16]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[7:8], -v[7:8], v[19:20], v[21:22]
	v_fma_f64 v[11:12], -v[11:12], v[23:24], v[17:18]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_div_fmas_f64 v[7:8], v[7:8], v[13:14], v[19:20]
	s_mov_b32 vcc_lo, s0
	v_div_fmas_f64 v[11:12], v[11:12], v[15:16], v[23:24]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_div_fixup_f64 v[0:1], v[7:8], v[9:10], v[0:1]
	v_div_fixup_f64 v[2:3], v[11:12], v[9:10], v[2:3]
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[0:1], v[0:1], -v[2:3]
	v_add_co_u32 v2, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v6, vcc_lo
	global_store_b64 v[2:3], v[0:1], off
.LBB1_2:
	s_or_b32 exec_lo, exec_lo, s2
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16pressure_poissonPdS_S_ddiid
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 312
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 25
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z16pressure_poissonPdS_S_ddiid, .Lfunc_end1-_Z16pressure_poissonPdS_S_ddiid
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 768
; NumSgprs: 18
; NumVgprs: 25
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 3
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 25
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z17pressure_boundaryPdii ; -- Begin function _Z17pressure_boundaryPdii
	.globl	_Z17pressure_boundaryPdii
	.p2align	8
	.type	_Z17pressure_boundaryPdii,@function
_Z17pressure_boundaryPdii:              ; @_Z17pressure_boundaryPdii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x1c
	s_load_b128 s[4:7], s[0:1], 0x0
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s1, s2, 0xffff
	s_lshr_b32 s0, s2, 16
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[0:1], null, s14, s1, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s0, v[3:4]
	s_add_i32 s0, s6, -1
	s_add_i32 s7, s7, -1
	v_cmp_eq_u32_e64 s1, s0, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cmp_lt_i32_e32 vcc_lo, 0, v1
	v_cmp_gt_i32_e64 s0, s7, v1
	s_and_b32 s1, s1, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, s1, s0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_xor_b32 s1, s1, -1
	s_and_saveexec_b32 s2, s1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s2, exec_lo, s2
	s_cbranch_execz .LBB2_12
; %bb.1:
	v_cmp_eq_u32_e64 s1, 0, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s1, s1, vcc_lo
	s_and_b32 s0, s1, s0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_xor_b32 s0, s0, -1
	s_and_saveexec_b32 s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s3, exec_lo, s1
	s_cbranch_execz .LBB2_9
; %bb.2:
	v_cmp_ne_u32_e64 s0, 0, v1
	v_cmp_le_i32_e64 s1, s6, v0
	v_cmp_gt_i32_e32 vcc_lo, s6, v0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_or_b32 s0, s1, s0
	s_and_saveexec_b32 s1, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s1, exec_lo, s1
	s_cbranch_execz .LBB2_6
; %bb.3:
	v_cmp_eq_u32_e64 s0, s7, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s7, vcc_lo, s0
	s_and_saveexec_b32 s0, s7
	s_cbranch_execz .LBB2_5
; %bb.4:
	v_mad_u64_u32 v[2:3], null, v1, s6, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 3, v[2:3]
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mov_b32_e32 v3, v2
	v_add_co_u32 v0, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_store_b64 v[0:1], v[2:3], off
.LBB2_5:                                ; %Flow
	s_or_b32 exec_lo, exec_lo, s0
                                        ; implicit-def: $vgpr0_vgpr1
.LBB2_6:                                ; %Flow67
	s_and_not1_saveexec_b32 s0, s1
	s_cbranch_execz .LBB2_8
; %bb.7:
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[1:2], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v1, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s5, v2, vcc_lo
	global_load_b64 v[2:3], v[1:2], off
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	v_add_co_u32 v0, vcc_lo, s4, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	s_waitcnt vmcnt(0)
	global_store_b64 v[0:1], v[2:3], off
.LBB2_8:                                ; %Flow68
	s_or_b32 exec_lo, exec_lo, s0
                                        ; implicit-def: $vgpr1_vgpr2
.LBB2_9:                                ; %Flow69
	s_and_not1_saveexec_b32 s0, s3
	s_cbranch_execz .LBB2_11
; %bb.10:
	v_mul_lo_u32 v0, v1, s6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v1, 31, v0
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_load_b64 v[2:3], v[0:1], off offset:8
	s_waitcnt vmcnt(0)
	global_store_b64 v[0:1], v[2:3], off
.LBB2_11:                               ; %Flow70
	s_or_b32 exec_lo, exec_lo, s0
                                        ; implicit-def: $vgpr0_vgpr1
                                        ; implicit-def: $vgpr1_vgpr2
.LBB2_12:                               ; %Flow71
	s_and_not1_saveexec_b32 s0, s2
	s_cbranch_execz .LBB2_14
; %bb.13:
	v_mad_u64_u32 v[2:3], null, v1, s6, v[0:1]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[0:1], 3, v[2:3]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v0, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v1, vcc_lo
	global_load_b64 v[2:3], v[0:1], off offset:-8
	s_waitcnt vmcnt(0)
	global_store_b64 v[0:1], v[2:3], off
.LBB2_14:
	s_or_b32 exec_lo, exec_lo, s0
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17pressure_boundaryPdii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 272
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 5
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z17pressure_boundaryPdii, .Lfunc_end2-_Z17pressure_boundaryPdii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 580
; NumSgprs: 18
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 5
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd ; -- Begin function _Z11cavity_flowPdS_S_S_S_S_S_iiddddd
	.globl	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd
	.p2align	8
	.type	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd,@function
_Z11cavity_flowPdS_S_S_S_S_S_iiddddd:   ; @_Z11cavity_flowPdS_S_S_S_S_S_iiddddd
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x74
	s_load_b64 s[20:21], s[0:1], 0x38
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s2, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s3, v[3:4]
	s_add_i32 s2, s20, -1
	s_add_i32 s3, s21, -1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_cmp_gt_i32_e32 vcc_lo, s2, v0
	v_cmp_lt_i32_e64 s4, 0, v0
	v_cmp_gt_i32_e64 s2, s3, v1
	v_cmp_lt_i32_e64 s3, 0, v1
	s_delay_alu instid0(VALU_DEP_2)
	s_and_b32 s2, vcc_lo, s2
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s2, s3
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, s4, s2
	s_and_saveexec_b32 s21, s2
	s_cbranch_execz .LBB3_2
; %bb.1:
	v_mul_lo_u32 v17, v1, s20
	s_load_b256 s[4:11], s[0:1], 0x0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, v17, v0
	v_subrev_nc_u32_e32 v17, s20, v17
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v17, v17, v0
	v_lshlrev_b64 v[5:6], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshl_add_u32 v18, s20, 1, v17
	v_ashrrev_i32_e32 v19, 31, v18
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v7, vcc_lo, s6, v5
	v_add_co_ci_u32_e32 v8, vcc_lo, s7, v6, vcc_lo
	v_add_co_u32 v9, vcc_lo, s10, v5
	v_add_co_ci_u32_e32 v10, vcc_lo, s11, v6, vcc_lo
	global_load_b128 v[1:4], v[7:8], off offset:-8
	v_lshlrev_b64 v[26:27], 3, v[18:19]
	global_load_b64 v[11:12], v[9:10], off
	s_clause 0x1
	s_load_b64 s[2:3], s[0:1], 0x60
	s_load_b256 s[12:19], s[0:1], 0x40
	v_add_co_u32 v18, vcc_lo, s6, v26
	v_add_co_ci_u32_e32 v19, vcc_lo, s7, v27, vcc_lo
	global_load_b64 v[30:31], v[18:19], off
	v_ashrrev_i32_e32 v18, 31, v17
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[17:18], 3, v[17:18]
	s_waitcnt lgkmcnt(0)
	v_add_f64 v[13:14], s[2:3], s[2:3]
	v_mul_f64 v[22:23], s[12:13], s[12:13]
	v_mul_f64 v[24:25], s[14:15], s[14:15]
	v_add_co_u32 v42, vcc_lo, s6, v17
	v_add_co_ci_u32_e32 v43, vcc_lo, s7, v18, vcc_lo
	s_clause 0x1
	global_load_b64 v[44:45], v[7:8], off offset:8
	global_load_b64 v[42:43], v[42:43], off
	s_load_b64 s[6:7], s[0:1], 0x20
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v56, vcc_lo, s6, v5
	v_add_co_ci_u32_e32 v57, vcc_lo, s7, v6, vcc_lo
	s_clause 0x1
	global_load_b64 v[58:59], v[56:57], off offset:8
	global_load_b64 v[56:57], v[56:57], off offset:-8
	v_mul_f64 v[20:21], v[13:14], s[12:13]
	v_div_scale_f64 v[36:37], null, v[22:23], v[22:23], s[16:17]
	v_div_scale_f64 v[38:39], null, v[24:25], v[24:25], s[16:17]
	v_mul_f64 v[13:14], v[13:14], s[14:15]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_div_scale_f64 v[34:35], null, v[20:21], v[20:21], s[16:17]
	v_rcp_f64_e32 v[50:51], v[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_rcp_f64_e32 v[52:53], v[38:39]
	v_rcp_f64_e32 v[48:49], v[34:35]
	s_delay_alu instid0(TRANS32_DEP_3) | instskip(SKIP_4) | instid1(VALU_DEP_3)
	v_fma_f64 v[64:65], -v[36:37], v[50:51], 1.0
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[66:67], -v[38:39], v[52:53], 1.0
	v_fma_f64 v[62:63], -v[34:35], v[48:49], 1.0
	v_fma_f64 v[50:51], v[50:51], v[64:65], v[50:51]
	v_fma_f64 v[52:53], v[52:53], v[66:67], v[52:53]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[48:49], v[48:49], v[62:63], v[48:49]
	v_fma_f64 v[64:65], -v[36:37], v[50:51], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[66:67], -v[38:39], v[52:53], 1.0
	v_fma_f64 v[62:63], -v[34:35], v[48:49], 1.0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[50:51], v[50:51], v[64:65], v[50:51]
	v_fma_f64 v[52:53], v[52:53], v[66:67], v[52:53]
	s_delay_alu instid0(VALU_DEP_3)
	v_fma_f64 v[48:49], v[48:49], v[62:63], v[48:49]
	v_div_scale_f64 v[62:63], s3, s[16:17], v[24:25], s[16:17]
	s_waitcnt vmcnt(6)
	v_mul_f64 v[15:16], v[3:4], s[16:17]
	s_waitcnt vmcnt(5)
	v_mul_f64 v[11:12], v[11:12], s[16:17]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_mul_f64 v[76:77], v[62:63], v[52:53]
	s_waitcnt vmcnt(4)
	v_fma_f64 v[30:31], v[3:4], -2.0, v[30:31]
	v_div_scale_f64 v[28:29], null, s[12:13], s[12:13], v[15:16]
	v_div_scale_f64 v[68:69], vcc_lo, v[15:16], s[12:13], v[15:16]
	v_div_scale_f64 v[32:33], null, s[14:15], s[14:15], v[11:12]
	v_div_scale_f64 v[70:71], s1, v[11:12], s[14:15], v[11:12]
	v_fma_f64 v[38:39], -v[38:39], v[76:77], v[62:63]
	s_waitcnt vmcnt(2)
	v_add_f64 v[30:31], v[42:43], v[30:31]
	v_rcp_f64_e32 v[40:41], v[28:29]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_rcp_f64_e32 v[46:47], v[32:33]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[54:55], -v[28:29], v[40:41], 1.0
	v_fma_f64 v[60:61], -v[32:33], v[46:47], 1.0
	v_fma_f64 v[40:41], v[40:41], v[54:55], v[40:41]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[46:47], v[46:47], v[60:61], v[46:47]
	v_fma_f64 v[54:55], -v[28:29], v[40:41], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[60:61], -v[32:33], v[46:47], 1.0
	v_fma_f64 v[40:41], v[40:41], v[54:55], v[40:41]
	v_div_scale_f64 v[54:55], s0, s[16:17], v[22:23], s[16:17]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_fma_f64 v[46:47], v[46:47], v[60:61], v[46:47]
	v_div_scale_f64 v[60:61], s2, s[16:17], v[20:21], s[16:17]
	v_mul_f64 v[64:65], v[68:69], v[40:41]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[74:75], v[54:55], v[50:51]
	v_mul_f64 v[66:67], v[70:71], v[46:47]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[72:73], v[60:61], v[48:49]
	v_fma_f64 v[28:29], -v[28:29], v[64:65], v[68:69]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[36:37], -v[36:37], v[74:75], v[54:55]
	v_fma_f64 v[32:33], -v[32:33], v[66:67], v[70:71]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[34:35], -v[34:35], v[72:73], v[60:61]
	v_div_fmas_f64 v[28:29], v[28:29], v[40:41], v[64:65]
	s_mov_b32 vcc_lo, s1
	v_add_f64 v[40:41], v[3:4], -v[1:2]
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_div_fmas_f64 v[32:33], v[32:33], v[46:47], v[66:67]
	s_mov_b32 vcc_lo, s2
	v_div_fmas_f64 v[34:35], v[34:35], v[48:49], v[72:73]
	s_mov_b32 vcc_lo, s0
	v_div_scale_f64 v[48:49], s1, s[16:17], v[13:14], s[16:17]
	v_div_fmas_f64 v[36:37], v[36:37], v[50:51], v[74:75]
	s_mov_b32 vcc_lo, s3
	v_div_fmas_f64 v[38:39], v[38:39], v[52:53], v[76:77]
	v_div_fixup_f64 v[15:16], v[28:29], s[12:13], v[15:16]
	v_fma_f64 v[28:29], v[3:4], -2.0, v[44:45]
	v_add_f64 v[44:45], v[3:4], -v[42:43]
	v_div_fixup_f64 v[11:12], v[32:33], s[14:15], v[11:12]
	v_div_fixup_f64 v[19:20], v[34:35], v[20:21], s[16:17]
	v_div_scale_f64 v[34:35], null, v[13:14], v[13:14], s[16:17]
	v_div_fixup_f64 v[21:22], v[36:37], v[22:23], s[16:17]
	v_div_fixup_f64 v[24:25], v[38:39], v[24:25], s[16:17]
	v_fma_f64 v[3:4], -v[15:16], v[40:41], v[3:4]
	s_waitcnt vmcnt(0)
	v_add_f64 v[15:16], v[58:59], -v[56:57]
	v_add_f64 v[0:1], v[1:2], v[28:29]
	v_rcp_f64_e32 v[40:41], v[34:35]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_mul_f64 v[28:29], v[24:25], v[30:31]
	v_fma_f64 v[2:3], -v[11:12], v[44:45], v[3:4]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[0:1], v[21:22], v[0:1], v[28:29]
	v_fma_f64 v[2:3], -v[19:20], v[15:16], v[2:3]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[0:1], v[0:1], s[18:19], v[2:3]
	v_add_co_u32 v2, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v6, vcc_lo
	v_add_co_u32 v19, vcc_lo, s10, v26
	v_add_co_ci_u32_e32 v20, vcc_lo, s11, v27, vcc_lo
	v_add_co_u32 v32, vcc_lo, s10, v17
	v_add_co_ci_u32_e32 v33, vcc_lo, s11, v18, vcc_lo
	v_add_co_u32 v26, vcc_lo, s6, v26
	v_add_co_ci_u32_e32 v27, vcc_lo, s7, v27, vcc_lo
	v_add_co_u32 v17, vcc_lo, s6, v17
	v_add_co_ci_u32_e32 v18, vcc_lo, s7, v18, vcc_lo
	global_store_b64 v[2:3], v[0:1], off
	global_load_b64 v[7:8], v[7:8], off
	s_clause 0x3
	global_load_b128 v[0:3], v[9:10], off offset:-8
	global_load_b64 v[19:20], v[19:20], off
	global_load_b64 v[32:33], v[32:33], off
	global_load_b64 v[9:10], v[9:10], off offset:8
	s_clause 0x1
	global_load_b64 v[26:27], v[26:27], off
	global_load_b64 v[17:18], v[17:18], off
	s_waitcnt vmcnt(6)
	v_mul_f64 v[7:8], v[7:8], s[16:17]
	s_waitcnt vmcnt(5)
	v_mul_f64 v[11:12], v[2:3], s[16:17]
	s_waitcnt vmcnt(2)
	v_fma_f64 v[9:10], v[2:3], -2.0, v[9:10]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_div_scale_f64 v[15:16], null, s[12:13], s[12:13], v[7:8]
	v_div_scale_f64 v[28:29], null, s[14:15], s[14:15], v[11:12]
	v_div_scale_f64 v[44:45], vcc_lo, v[7:8], s[12:13], v[7:8]
	v_div_scale_f64 v[46:47], s0, v[11:12], s[14:15], v[11:12]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_rcp_f64_e32 v[30:31], v[15:16]
	v_rcp_f64_e32 v[36:37], v[28:29]
	s_waitcnt_depctr 0xfff
	v_fma_f64 v[38:39], -v[15:16], v[30:31], 1.0
	v_fma_f64 v[42:43], -v[28:29], v[36:37], 1.0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_fma_f64 v[30:31], v[30:31], v[38:39], v[30:31]
	v_fma_f64 v[38:39], -v[34:35], v[40:41], 1.0
	v_fma_f64 v[36:37], v[36:37], v[42:43], v[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[42:43], -v[15:16], v[30:31], 1.0
	v_fma_f64 v[38:39], v[40:41], v[38:39], v[40:41]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[40:41], -v[28:29], v[36:37], 1.0
	v_fma_f64 v[30:31], v[30:31], v[42:43], v[30:31]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_fma_f64 v[42:43], -v[34:35], v[38:39], 1.0
	v_fma_f64 v[36:37], v[36:37], v[40:41], v[36:37]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[40:41], v[44:45], v[30:31]
	v_fma_f64 v[38:39], v[38:39], v[42:43], v[38:39]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[42:43], v[46:47], v[36:37]
	v_fma_f64 v[15:16], -v[15:16], v[40:41], v[44:45]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_mul_f64 v[44:45], v[48:49], v[38:39]
	v_fma_f64 v[28:29], -v[28:29], v[42:43], v[46:47]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_div_fmas_f64 v[15:16], v[15:16], v[30:31], v[40:41]
	s_mov_b32 vcc_lo, s0
	v_fma_f64 v[30:31], -v[34:35], v[44:45], v[48:49]
	v_add_f64 v[34:35], v[2:3], -v[0:1]
	s_delay_alu instid0(VALU_DEP_4)
	v_div_fmas_f64 v[28:29], v[28:29], v[36:37], v[42:43]
	s_mov_b32 vcc_lo, s1
	v_add_f64 v[0:1], v[0:1], v[9:10]
	v_div_fixup_f64 v[7:8], v[15:16], s[12:13], v[7:8]
	v_fma_f64 v[15:16], v[2:3], -2.0, v[19:20]
	v_add_f64 v[19:20], v[2:3], -v[32:33]
	v_div_fmas_f64 v[30:31], v[30:31], v[38:39], v[44:45]
	v_div_fixup_f64 v[11:12], v[28:29], s[14:15], v[11:12]
	v_fma_f64 v[2:3], -v[7:8], v[34:35], v[2:3]
	v_add_f64 v[7:8], v[32:33], v[15:16]
	s_waitcnt vmcnt(0)
	v_add_f64 v[15:16], v[26:27], -v[17:18]
	v_div_fixup_f64 v[9:10], v[30:31], v[13:14], s[16:17]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_fma_f64 v[2:3], -v[11:12], v[19:20], v[2:3]
	v_mul_f64 v[7:8], v[24:25], v[7:8]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_fma_f64 v[2:3], -v[9:10], v[15:16], v[2:3]
	v_fma_f64 v[0:1], v[21:22], v[0:1], v[7:8]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[0:1], v[0:1], s[18:19], v[2:3]
	v_add_co_u32 v2, vcc_lo, s8, v5
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v6, vcc_lo
	global_store_b64 v[2:3], v[0:1], off
.LBB3_2:
	s_or_b32 exec_lo, exec_lo, s21
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z11cavity_flowPdS_S_S_S_S_S_iiddddd
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 360
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 78
		.amdhsa_next_free_sgpr 22
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z11cavity_flowPdS_S_S_S_S_S_iiddddd, .Lfunc_end3-_Z11cavity_flowPdS_S_S_S_S_S_iiddddd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1736
; NumSgprs: 24
; NumVgprs: 78
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 9
; NumSGPRsForWavesPerEU: 24
; NumVGPRsForWavesPerEU: 78
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.protected	_Z17velocity_boundaryPdS_ii ; -- Begin function _Z17velocity_boundaryPdS_ii
	.globl	_Z17velocity_boundaryPdS_ii
	.p2align	8
	.type	_Z17velocity_boundaryPdS_ii,@function
_Z17velocity_boundaryPdS_ii:            ; @_Z17velocity_boundaryPdS_ii
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b64 s[4:5], s[0:1], 0x10
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s3, s2, 16
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_3) | instid1(VALU_DEP_2)
	v_mad_u64_u32 v[4:5], null, s15, s3, v[3:4]
	v_mad_u64_u32 v[0:1], null, s14, s2, v[2:3]
	s_add_i32 s2, s4, -1
	s_add_i32 s7, s5, -1
                                        ; implicit-def: $vgpr2_vgpr3
	v_cmp_lt_i32_e32 vcc_lo, 0, v4
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_cmp_eq_u32_e64 s3, s2, v0
	v_cmp_gt_i32_e64 s2, s7, v4
	s_and_b32 s3, s3, vcc_lo
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	s_and_b32 s5, s3, s2
	s_mov_b32 s3, 0
	s_xor_b32 s5, s5, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_saveexec_b32 s6, s5
	s_xor_b32 s5, exec_lo, s6
	s_cbranch_execz .LBB4_10
; %bb.1:
	v_cmp_eq_u32_e64 s3, 0, v0
                                        ; implicit-def: $vgpr2_vgpr3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s3, s3, vcc_lo
	s_and_b32 s3, s3, s2
	s_mov_b32 s2, 0
	s_xor_b32 s3, s3, -1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_saveexec_b32 s6, s3
	s_xor_b32 s6, exec_lo, s6
	s_cbranch_execz .LBB4_7
; %bb.2:
	v_cmp_ne_u32_e64 s2, 0, v4
	v_cmp_le_i32_e64 s3, s4, v0
	v_mov_b32_e32 v2, 0
	v_mov_b32_e32 v3, 0
	v_cmp_gt_i32_e32 vcc_lo, s4, v0
	s_mov_b32 s8, 0
	s_or_b32 s9, s3, s2
	s_mov_b32 s2, -1
	s_and_saveexec_b32 s3, s9
	s_cbranch_execz .LBB4_6
; %bb.3:
	v_cmp_eq_u32_e64 s2, s7, v4
	v_mov_b32_e32 v2, 0
	v_mov_b32_e32 v3, 0
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s2, vcc_lo, s2
	s_and_saveexec_b32 s7, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_xor_b32 s2, exec_lo, s7
; %bb.4:
	v_mad_u64_u32 v[1:2], null, v4, s4, v[0:1]
	v_mov_b32_e32 v2, 0
	v_mov_b32_e32 v3, 0x3ff00000
	s_mov_b32 s8, exec_lo
	s_delay_alu instid0(VALU_DEP_3)
	v_mov_b32_e32 v0, v1
; %bb.5:                                ; %Flow82
	s_or_b32 exec_lo, exec_lo, s2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_or_not1_b32 s2, s8, exec_lo
.LBB4_6:                                ; %Flow81
	s_or_b32 exec_lo, exec_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 s2, s2, exec_lo
                                        ; implicit-def: $vgpr4_vgpr5
.LBB4_7:                                ; %Flow80
	s_and_not1_saveexec_b32 s3, s6
; %bb.8:
	v_mov_b32_e32 v2, 0
	v_mul_lo_u32 v0, v4, s4
	v_mov_b32_e32 v3, 0
	s_or_b32 s2, s2, exec_lo
; %bb.9:                                ; %Flow83
	s_or_b32 exec_lo, exec_lo, s3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 s3, s2, exec_lo
                                        ; implicit-def: $vgpr4_vgpr5
.LBB4_10:                               ; %Flow
	s_and_not1_saveexec_b32 s2, s5
; %bb.11:
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_3) | instid1(VALU_DEP_3)
	v_mad_u64_u32 v[1:2], null, v4, s4, v[0:1]
	v_mov_b32_e32 v2, 0
	v_mov_b32_e32 v3, 0
	s_or_b32 s3, s3, exec_lo
	v_mov_b32_e32 v0, v1
; %bb.12:                               ; %Flow84
	s_or_b32 exec_lo, exec_lo, s2
	s_and_saveexec_b32 s2, s3
	s_cbranch_execz .LBB4_14
; %bb.13:                               ; %.sink.split
	s_load_b128 s[4:7], s[0:1], 0x0
	v_ashrrev_i32_e32 v1, 31, v0
	v_mov_b32_e32 v4, 0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	v_mov_b32_e32 v5, v4
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v6, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s6, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s7, v1, vcc_lo
	global_store_b64 v[6:7], v[2:3], off
	global_store_b64 v[0:1], v[4:5], off
.LBB4_14:
	s_or_b32 exec_lo, exec_lo, s2
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17velocity_boundaryPdS_ii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 14
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 1
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 1
		.amdhsa_next_free_vgpr 8
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z17velocity_boundaryPdS_ii, .Lfunc_end4-_Z17velocity_boundaryPdS_ii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 508
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 14
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 1
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           8
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           8
        .value_kind:     by_value
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         68
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         72
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         76
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         78
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         80
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         82
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         84
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         86
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         120
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         128
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 320
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z10build_up_bPdS_S_ddddii
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z10build_up_bPdS_S_ddddii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     49
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .offset:         24
        .size:           8
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           4
        .value_kind:     by_value
      - .offset:         44
        .size:           4
        .value_kind:     by_value
      - .offset:         48
        .size:           8
        .value_kind:     by_value
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         60
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         64
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         68
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         70
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         72
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         74
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         76
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         78
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         112
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         120
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 312
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16pressure_poissonPdS_S_ddiid
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16pressure_poissonPdS_S_ddiid.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     25
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .offset:         8
        .size:           4
        .value_kind:     by_value
      - .offset:         12
        .size:           4
        .value_kind:     by_value
      - .offset:         16
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         20
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         28
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         30
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         32
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         34
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         36
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         38
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         56
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         80
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 272
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z17pressure_boundaryPdii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z17pressure_boundaryPdii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         16
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         24
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         32
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         40
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         48
        .size:           8
        .value_kind:     global_buffer
      - .offset:         56
        .size:           4
        .value_kind:     by_value
      - .offset:         60
        .size:           4
        .value_kind:     by_value
      - .offset:         64
        .size:           8
        .value_kind:     by_value
      - .offset:         72
        .size:           8
        .value_kind:     by_value
      - .offset:         80
        .size:           8
        .value_kind:     by_value
      - .offset:         88
        .size:           8
        .value_kind:     by_value
      - .offset:         96
        .size:           8
        .value_kind:     by_value
      - .offset:         104
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         108
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         112
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         116
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         118
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         120
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         122
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         124
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         126
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         144
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         152
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         160
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         168
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 360
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z11cavity_flowPdS_S_S_S_S_S_iiddddd
    .private_segment_fixed_size: 0
    .sgpr_count:     24
    .sgpr_spill_count: 0
    .symbol:         _Z11cavity_flowPdS_S_S_S_S_S_iiddddd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     78
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         20
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z17velocity_boundaryPdS_ii
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z17velocity_boundaryPdS_ii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
