#include <stdio.h>
#include <math.h>

__global__ void
update_jacobi_gpu(double *d_Uk, double *d_Uk1, double *d_F, int N, double delta_squared, double h){
	
	int i,j;	
	double tmp, tmp1;
	double norm=0.0;
	int up, down, left, right;
	int loc = 0;
	for(j=1;j<N+1;j++){
		for(i=1;i<N+1;i++){
			up = ((N+2) * (i - 1)) + j;
			down = ((N+2) * (i + 1)) + j;
			left = ((N+2) * i) + (j -1);
			right = ((N+2) * i) + (j + 1);
			loc = ((N+2) * i) + j;
			tmp = h*(d_Uk[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
			tmp1 = tmp - d_Uk[loc];
			norm +=  tmp1 * tmp1;
			d_Uk1[loc] = tmp;
		}
	}
}

__global__ void
update_jacobi_gpu2(double *d_Uk, double *d_Uk1, double *d_F, int N, double delta_squared, double h){
	
	int i,j;
	j = threadIdx.x + blockIdx.x * blockDim.x +1;
	i = threadIdx.y + blockIdx.y * blockDim.y +1;	
	double tmp, tmp1;
	double norm=0.0;
	int up, down, left, right;
	int loc = 0;
	if (j < N+1 && i < N+1) {
		up = ((N+2) * (i - 1)) + j;
		down = ((N+2) * (i + 1)) + j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		tmp = h*(d_Uk[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
		tmp1 = tmp - d_Uk[loc];
		norm +=  tmp1 * tmp1;
		d_Uk1[loc] = tmp;
	}
}


__global__ void
update_jacobi_2gpu0(double *d_Uk, double *d_Ukbot, double *d_Uk1, double *d_F, int N, double delta_squared, double h){
	
	int i,j;
	j = threadIdx.x + blockIdx.x * blockDim.x +1 ;
	i = threadIdx.y + blockIdx.y * blockDim.y +1;
	
	double tmp, tmp1;
	double norm=0.0;
	int up, down, left, right;
	int loc = 0;

	if(j < N+1 && i==N/2){
		up = ((N+2) * (i - 1)) + j;
		down = j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		//printf("0:%d, %f, \n",loc, d_Ukbot[down]);
		d_Uk1[loc] = h*(d_Ukbot[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
	}
	if (j < N+1 && i < N/2) {
		up = ((N+2) * (i - 1)) + j;
		down = ((N+2) * (i + 1)) + j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		//printf("0:%d, %f\n",loc, d_Uk[right]);
		d_Uk1[loc] = h*(d_Uk[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
		
	}

}


__global__ void
update_jacobi_2gpu1(double *d_Uk, double *d_Uktop, double *d_Uk1, double *d_F, int N, double delta_squared, double h){
	
	int i,j;
	j = threadIdx.x + blockIdx.x * blockDim.x +1;
	i = threadIdx.y + blockIdx.y * blockDim.y;
	//printf("1:");
	//printf("i = %d, j = %d \n",i,j);	
	double tmp, tmp1;
	double norm=0.0;
	int up, down, left, right;
	int loc = 0;
	if(j < N+1 && i == 0){
		up = ((N+2) * N/2) + j;
		down = ((N+2) * (i + 1)) + j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		//printf("1:%d, %f\n",loc, d_Uk[right]);
		d_Uk1[loc] = h*(d_Uk[down] + d_Uktop[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
	}

	if (j < N+1 && i < N/2 && i>0) {
		up = ((N+2) * (i - 1)) + j;
		down = ((N+2) * (i + 1)) + j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		//printf("1:%d, %f\n",loc, d_Uk[right]);
		d_Uk1[loc] = h*(d_Uk[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
		//printf("%f\n", d_Uk1[loc]);
	}
}

void
init_matrices(double *h_Uk, double *h_Uk1, double *h_F, int N){
	int i, j;
	int loc = 0;
	for(i=0;i<N+2;i++){
		for(j=0;j<N+2;j++){
			//initialize matrix with 0s or 20 for walls.
			int value = 0;
			if (i == 0 || j ==0 || j == N+1) value = 20;
			loc = ((N+2) * i) + j;
			h_Uk[loc] = value;
			h_Uk1[loc] = value;
			h_F[loc] = value;
		}
	}

	
	int rad_start_i, rad_start_j, rad_end_i, rad_end_j;

	rad_start_i = round((N+2)*4.0/6);
	rad_end_i = round((N+2)*5.0/6);
	rad_start_j = round((N+2)*3.0/6);
	rad_end_j = round((N+2)*4.0/6);	

	for(i=rad_start_i; i< rad_end_i; i++){
		for(j=rad_start_j; j< rad_end_j; j++){
			h_F[((N+2) * i) + j] = 2000;		
		}
	}
}

void
display_mat(double *M, int N){
	int i, j;
	printf("\n");
	for(i=0;i<N+2;i++){
		for(j=0;j<N+2;j++){
			printf("%f ", M[((N+2) * i) + j]);
		}
		printf("\n");
	}
}





	.file	"tmpxft_002e0bae_00000000-6_poisson.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2031:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2031:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z13init_matricesPdS_S_i
	.type	_Z13init_matricesPdS_S_i, @function
_Z13init_matricesPdS_S_i:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movslq	%ecx, %rax
	movq	%rdi, %r8
	movq	%rsi, %r9
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	16(,%rax,8), %r11
	xorl	%edi, %edi
	xorl	%esi, %esi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leal	2(%rcx), %ebp
	incl	%ecx
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdx, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
.L3:
	cmpl	%esi, %ecx
	jl	.L15
	movq	%rdi, %rdx
	xorl	%eax, %eax
.L5:
	testl	%eax, %eax
	sete	%r10b
	cmpl	%eax, %ecx
	sete	%r12b
	orb	%r12b, %r10b
	jne	.L10
	xorl	%r10d, %r10d
	testl	%esi, %esi
	jne	.L4
.L10:
	movl	$20, %r10d
.L4:
	cvtsi2sdl	%r10d, %xmm0
	incl	%eax
	movsd	%xmm0, (%r8,%rdx)
	movsd	%xmm0, (%r9,%rdx)
	movsd	%xmm0, (%rbx,%rdx)
	addq	$8, %rdx
	cmpl	%ebp, %eax
	jne	.L5
	incl	%esi
	addq	%r11, %rdi
	jmp	.L3
.L15:
	cvtsi2sdl	%ebp, %xmm1
	movaps	%xmm1, %xmm0
	movsd	%xmm1, 8(%rsp)
	mulsd	.LC0(%rip), %xmm0
	divsd	.LC1(%rip), %xmm0
	call	round@PLT
	movsd	8(%rsp), %xmm1
	cvttsd2sil	%xmm0, %r12d
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	divsd	.LC1(%rip), %xmm0
	call	round@PLT
	movsd	8(%rsp), %xmm1
	mulsd	.LC3(%rip), %xmm1
	cvttsd2sil	%xmm0, %r13d
	movaps	%xmm1, %xmm0
	divsd	.LC1(%rip), %xmm0
	call	round@PLT
	movl	%r12d, %edx
	movl	%r12d, %ecx
	imull	%ebp, %edx
	cvttsd2sil	%xmm0, %edi
	movsd	.LC4(%rip), %xmm0
.L6:
	cmpl	%r13d, %ecx
	jge	.L2
	movslq	%edx, %rsi
	movslq	%edi, %rax
	leaq	(%rbx,%rsi,8), %rsi
.L9:
	cmpl	%eax, %r12d
	jle	.L16
	movsd	%xmm0, (%rsi,%rax,8)
	incq	%rax
	jmp	.L9
.L16:
	incl	%ecx
	addl	%ebp, %edx
	jmp	.L6
.L2:
	addq	$24, %rsp
	.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
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z13init_matricesPdS_S_i, .-_Z13init_matricesPdS_S_i
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"\n"
.LC6:
	.string	"%f "
	.text
	.globl	_Z11display_matPdi
	.type	_Z11display_matPdi, @function
_Z11display_matPdi:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	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
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	leaq	.LC5(%rip), %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leal	1(%rbp), %r14d
	movq	%rdi, %rbx
	movl	$2, %edi
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	__printf_chk@PLT
	movl	%r14d, 12(%rsp)
	movslq	%ebp, %rax
	leaq	16(,%rax,8), %r13
.L18:
	cmpl	%r12d, 12(%rsp)
	jl	.L23
	leaq	8(%rbx,%r14,8), %r15
	movq	%rbx, %rbp
.L19:
	movsd	0(%rbp), %xmm0
	movl	$2, %edi
	movb	$1, %al
	addq	$8, %rbp
	leaq	.LC6(%rip), %rsi
	call	__printf_chk@PLT
	cmpq	%r15, %rbp
	jne	.L19
	leaq	.LC5(%rip), %rsi
	xorl	%eax, %eax
	incl	%r12d
	addq	%r13, %rbx
	movl	$2, %edi
	call	__printf_chk@PLT
	jmp	.L18
.L23:
	addq	$24, %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
.LFE2028:
	.size	_Z11display_matPdi, .-_Z11display_matPdi
	.globl	_Z44__device_stub__Z17update_jacobi_gpuPdS_S_iddPdS_S_idd
	.type	_Z44__device_stub__Z17update_jacobi_gpuPdS_S_iddPdS_S_idd, @function
_Z44__device_stub__Z17update_jacobi_gpuPdS_S_iddPdS_S_idd:
.LFB2053:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 20(%rsp)
	leaq	64(%rsp), %rcx
	movsd	%xmm0, 8(%rsp)
	movsd	%xmm1, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	%rsp, %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L24
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z17update_jacobi_gpuPdS_S_idd(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L24:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2053:
	.size	_Z44__device_stub__Z17update_jacobi_gpuPdS_S_iddPdS_S_idd, .-_Z44__device_stub__Z17update_jacobi_gpuPdS_S_iddPdS_S_idd
	.globl	_Z17update_jacobi_gpuPdS_S_idd
	.type	_Z17update_jacobi_gpuPdS_S_idd, @function
_Z17update_jacobi_gpuPdS_S_idd:
.LFB2054:
	.cfi_startproc
	endbr64
	jmp	_Z44__device_stub__Z17update_jacobi_gpuPdS_S_iddPdS_S_idd
	.cfi_endproc
.LFE2054:
	.size	_Z17update_jacobi_gpuPdS_S_idd, .-_Z17update_jacobi_gpuPdS_S_idd
	.globl	_Z45__device_stub__Z18update_jacobi_gpu2PdS_S_iddPdS_S_idd
	.type	_Z45__device_stub__Z18update_jacobi_gpu2PdS_S_iddPdS_S_idd, @function
_Z45__device_stub__Z18update_jacobi_gpu2PdS_S_iddPdS_S_idd:
.LFB2055:
	.cfi_startproc
	endbr64
	subq	$184, %rsp
	.cfi_def_cfa_offset 192
	movq	%rdi, 40(%rsp)
	leaq	72(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	84(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	56(%rsp), %rdx
	movl	%ecx, 20(%rsp)
	leaq	64(%rsp), %rcx
	movsd	%xmm0, 8(%rsp)
	movsd	%xmm1, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 80(%rsp)
	movq	%rax, 120(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, 144(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 152(%rsp)
	movq	%rsp, %rax
	movq	%rax, 160(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 72(%rsp)
	movq	%rax, 84(%rsp)
	movl	$1, 92(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L29
	pushq	64(%rsp)
	.cfi_def_cfa_offset 200
	leaq	_Z18update_jacobi_gpu2PdS_S_idd(%rip), %rdi
	pushq	64(%rsp)
	.cfi_def_cfa_offset 208
	movq	100(%rsp), %rcx
	movl	108(%rsp), %r8d
	movq	88(%rsp), %rsi
	movl	96(%rsp), %edx
	leaq	136(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 200
	popq	%rdx
	.cfi_def_cfa_offset 192
.L29:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	addq	$184, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2055:
	.size	_Z45__device_stub__Z18update_jacobi_gpu2PdS_S_iddPdS_S_idd, .-_Z45__device_stub__Z18update_jacobi_gpu2PdS_S_iddPdS_S_idd
	.globl	_Z18update_jacobi_gpu2PdS_S_idd
	.type	_Z18update_jacobi_gpu2PdS_S_idd, @function
_Z18update_jacobi_gpu2PdS_S_idd:
.LFB2056:
	.cfi_startproc
	endbr64
	jmp	_Z45__device_stub__Z18update_jacobi_gpu2PdS_S_iddPdS_S_idd
	.cfi_endproc
.LFE2056:
	.size	_Z18update_jacobi_gpu2PdS_S_idd, .-_Z18update_jacobi_gpu2PdS_S_idd
	.globl	_Z48__device_stub__Z19update_jacobi_2gpu0PdS_S_S_iddPdS_S_S_idd
	.type	_Z48__device_stub__Z19update_jacobi_2gpu0PdS_S_S_iddPdS_S_S_idd, @function
_Z48__device_stub__Z19update_jacobi_2gpu0PdS_S_S_iddPdS_S_S_idd:
.LFB2057:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	movq	%rdi, 56(%rsp)
	leaq	80(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	92(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	64(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	72(%rsp), %rcx
	movl	%r8d, 28(%rsp)
	movsd	%xmm0, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%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	28(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L34
	pushq	72(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z19update_jacobi_2gpu0PdS_S_S_idd(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 224
	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 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L34:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2057:
	.size	_Z48__device_stub__Z19update_jacobi_2gpu0PdS_S_S_iddPdS_S_S_idd, .-_Z48__device_stub__Z19update_jacobi_2gpu0PdS_S_S_iddPdS_S_S_idd
	.globl	_Z19update_jacobi_2gpu0PdS_S_S_idd
	.type	_Z19update_jacobi_2gpu0PdS_S_S_idd, @function
_Z19update_jacobi_2gpu0PdS_S_S_idd:
.LFB2058:
	.cfi_startproc
	endbr64
	jmp	_Z48__device_stub__Z19update_jacobi_2gpu0PdS_S_S_iddPdS_S_S_idd
	.cfi_endproc
.LFE2058:
	.size	_Z19update_jacobi_2gpu0PdS_S_S_idd, .-_Z19update_jacobi_2gpu0PdS_S_S_idd
	.globl	_Z48__device_stub__Z19update_jacobi_2gpu1PdS_S_S_iddPdS_S_S_idd
	.type	_Z48__device_stub__Z19update_jacobi_2gpu1PdS_S_S_iddPdS_S_S_idd, @function
_Z48__device_stub__Z19update_jacobi_2gpu1PdS_S_S_iddPdS_S_S_idd:
.LFB2059:
	.cfi_startproc
	endbr64
	subq	$200, %rsp
	.cfi_def_cfa_offset 208
	movq	%rdi, 56(%rsp)
	leaq	80(%rsp), %rdi
	movq	%rsi, 48(%rsp)
	leaq	92(%rsp), %rsi
	movq	%rdx, 40(%rsp)
	leaq	64(%rsp), %rdx
	movq	%rcx, 32(%rsp)
	leaq	72(%rsp), %rcx
	movl	%r8d, 28(%rsp)
	movsd	%xmm0, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 184(%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	28(%rsp), %rax
	movq	%rax, 160(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 168(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 176(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 80(%rsp)
	movq	%rax, 92(%rsp)
	movl	$1, 100(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L39
	pushq	72(%rsp)
	.cfi_def_cfa_offset 216
	leaq	_Z19update_jacobi_2gpu1PdS_S_S_idd(%rip), %rdi
	pushq	72(%rsp)
	.cfi_def_cfa_offset 224
	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 216
	popq	%rdx
	.cfi_def_cfa_offset 208
.L39:
	movq	184(%rsp), %rax
	subq	%fs:40, %rax
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	addq	$200, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2059:
	.size	_Z48__device_stub__Z19update_jacobi_2gpu1PdS_S_S_iddPdS_S_S_idd, .-_Z48__device_stub__Z19update_jacobi_2gpu1PdS_S_S_iddPdS_S_S_idd
	.globl	_Z19update_jacobi_2gpu1PdS_S_S_idd
	.type	_Z19update_jacobi_2gpu1PdS_S_S_idd, @function
_Z19update_jacobi_2gpu1PdS_S_S_idd:
.LFB2060:
	.cfi_startproc
	endbr64
	jmp	_Z48__device_stub__Z19update_jacobi_2gpu1PdS_S_S_iddPdS_S_S_idd
	.cfi_endproc
.LFE2060:
	.size	_Z19update_jacobi_2gpu1PdS_S_S_idd, .-_Z19update_jacobi_2gpu1PdS_S_S_idd
	.section	.rodata.str1.1
.LC7:
	.string	"_Z19update_jacobi_2gpu1PdS_S_S_idd"
.LC8:
	.string	"_Z19update_jacobi_2gpu0PdS_S_S_idd"
.LC9:
	.string	"_Z18update_jacobi_gpu2PdS_S_idd"
.LC10:
	.string	"_Z17update_jacobi_gpuPdS_S_idd"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2062:
	.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	.LC7(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z19update_jacobi_2gpu1PdS_S_S_idd(%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	.LC8(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z19update_jacobi_2gpu0PdS_S_S_idd(%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	.LC9(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z18update_jacobi_gpu2PdS_S_idd(%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	.LC10(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z17update_jacobi_gpuPdS_S_idd(%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
.LFE2062:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.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
.LC0:
	.long	0
	.long	1074790400
	.align 8
.LC1:
	.long	0
	.long	1075314688
	.align 8
.LC2:
	.long	0
	.long	1075052544
	.align 8
.LC3:
	.long	0
	.long	1074266112
	.align 8
.LC4:
	.long	0
	.long	1084178432
	.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:


#include <hip/hip_runtime.h>
#include <stdio.h>
#include <math.h>

__global__ void
update_jacobi_gpu(double *d_Uk, double *d_Uk1, double *d_F, int N, double delta_squared, double h){
	
	int i,j;	
	double tmp, tmp1;
	double norm=0.0;
	int up, down, left, right;
	int loc = 0;
	for(j=1;j<N+1;j++){
		for(i=1;i<N+1;i++){
			up = ((N+2) * (i - 1)) + j;
			down = ((N+2) * (i + 1)) + j;
			left = ((N+2) * i) + (j -1);
			right = ((N+2) * i) + (j + 1);
			loc = ((N+2) * i) + j;
			tmp = h*(d_Uk[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
			tmp1 = tmp - d_Uk[loc];
			norm +=  tmp1 * tmp1;
			d_Uk1[loc] = tmp;
		}
	}
}

__global__ void
update_jacobi_gpu2(double *d_Uk, double *d_Uk1, double *d_F, int N, double delta_squared, double h){
	
	int i,j;
	j = threadIdx.x + blockIdx.x * blockDim.x +1;
	i = threadIdx.y + blockIdx.y * blockDim.y +1;	
	double tmp, tmp1;
	double norm=0.0;
	int up, down, left, right;
	int loc = 0;
	if (j < N+1 && i < N+1) {
		up = ((N+2) * (i - 1)) + j;
		down = ((N+2) * (i + 1)) + j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		tmp = h*(d_Uk[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
		tmp1 = tmp - d_Uk[loc];
		norm +=  tmp1 * tmp1;
		d_Uk1[loc] = tmp;
	}
}


__global__ void
update_jacobi_2gpu0(double *d_Uk, double *d_Ukbot, double *d_Uk1, double *d_F, int N, double delta_squared, double h){
	
	int i,j;
	j = threadIdx.x + blockIdx.x * blockDim.x +1 ;
	i = threadIdx.y + blockIdx.y * blockDim.y +1;
	
	double tmp, tmp1;
	double norm=0.0;
	int up, down, left, right;
	int loc = 0;

	if(j < N+1 && i==N/2){
		up = ((N+2) * (i - 1)) + j;
		down = j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		//printf("0:%d, %f, \n",loc, d_Ukbot[down]);
		d_Uk1[loc] = h*(d_Ukbot[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
	}
	if (j < N+1 && i < N/2) {
		up = ((N+2) * (i - 1)) + j;
		down = ((N+2) * (i + 1)) + j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		//printf("0:%d, %f\n",loc, d_Uk[right]);
		d_Uk1[loc] = h*(d_Uk[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
		
	}

}


__global__ void
update_jacobi_2gpu1(double *d_Uk, double *d_Uktop, double *d_Uk1, double *d_F, int N, double delta_squared, double h){
	
	int i,j;
	j = threadIdx.x + blockIdx.x * blockDim.x +1;
	i = threadIdx.y + blockIdx.y * blockDim.y;
	//printf("1:");
	//printf("i = %d, j = %d \n",i,j);	
	double tmp, tmp1;
	double norm=0.0;
	int up, down, left, right;
	int loc = 0;
	if(j < N+1 && i == 0){
		up = ((N+2) * N/2) + j;
		down = ((N+2) * (i + 1)) + j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		//printf("1:%d, %f\n",loc, d_Uk[right]);
		d_Uk1[loc] = h*(d_Uk[down] + d_Uktop[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
	}

	if (j < N+1 && i < N/2 && i>0) {
		up = ((N+2) * (i - 1)) + j;
		down = ((N+2) * (i + 1)) + j;
		left = ((N+2) * i) + (j -1);
		right = ((N+2) * i) + (j + 1);
		loc = ((N+2) * i) + j;
		//printf("1:%d, %f\n",loc, d_Uk[right]);
		d_Uk1[loc] = h*(d_Uk[down] + d_Uk[up] + d_Uk[right] + d_Uk[left] +  delta_squared * d_F[loc]);
		//printf("%f\n", d_Uk1[loc]);
	}
}

void
init_matrices(double *h_Uk, double *h_Uk1, double *h_F, int N){
	int i, j;
	int loc = 0;
	for(i=0;i<N+2;i++){
		for(j=0;j<N+2;j++){
			//initialize matrix with 0s or 20 for walls.
			int value = 0;
			if (i == 0 || j ==0 || j == N+1) value = 20;
			loc = ((N+2) * i) + j;
			h_Uk[loc] = value;
			h_Uk1[loc] = value;
			h_F[loc] = value;
		}
	}

	
	int rad_start_i, rad_start_j, rad_end_i, rad_end_j;

	rad_start_i = round((N+2)*4.0/6);
	rad_end_i = round((N+2)*5.0/6);
	rad_start_j = round((N+2)*3.0/6);
	rad_end_j = round((N+2)*4.0/6);	

	for(i=rad_start_i; i< rad_end_i; i++){
		for(j=rad_start_j; j< rad_end_j; j++){
			h_F[((N+2) * i) + j] = 2000;		
		}
	}
}

void
display_mat(double *M, int N){
	int i, j;
	printf("\n");
	for(i=0;i<N+2;i++){
		for(j=0;j<N+2;j++){
			printf("%f ", M[((N+2) * i) + j]);
		}
		printf("\n");
	}
}





	.text
	.file	"poisson.hip"
	.globl	_Z32__device_stub__update_jacobi_gpuPdS_S_idd # -- Begin function _Z32__device_stub__update_jacobi_gpuPdS_S_idd
	.type	_Z32__device_stub__update_jacobi_gpuPdS_S_idd,@function
_Z32__device_stub__update_jacobi_gpuPdS_S_idd: # @_Z32__device_stub__update_jacobi_gpuPdS_S_idd
	.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	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	32(%rsp), %rcx
	movsd	%xmm0, (%rcx)
	leaq	24(%rsp), %r8
	movsd	%xmm1, (%r8)
	leaq	96(%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	80(%rsp), %r14
	leaq	64(%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	$_Z17update_jacobi_gpuPdS_S_idd, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	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_end0:
	.size	_Z32__device_stub__update_jacobi_gpuPdS_S_idd, .Lfunc_end0-_Z32__device_stub__update_jacobi_gpuPdS_S_idd
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__update_jacobi_gpu2PdS_S_idd # -- Begin function _Z33__device_stub__update_jacobi_gpu2PdS_S_idd
	.type	_Z33__device_stub__update_jacobi_gpu2PdS_S_idd,@function
_Z33__device_stub__update_jacobi_gpu2PdS_S_idd: # @_Z33__device_stub__update_jacobi_gpu2PdS_S_idd
	.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	$144, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	56(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	48(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	4(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	32(%rsp), %rcx
	movsd	%xmm0, (%rcx)
	leaq	24(%rsp), %r8
	movsd	%xmm1, (%r8)
	leaq	96(%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	80(%rsp), %r14
	leaq	64(%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	$_Z18update_jacobi_gpu2PdS_S_idd, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$160, %rsp
	.cfi_adjust_cfa_offset -160
	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	_Z33__device_stub__update_jacobi_gpu2PdS_S_idd, .Lfunc_end1-_Z33__device_stub__update_jacobi_gpu2PdS_S_idd
	.cfi_endproc
                                        # -- End function
	.globl	_Z34__device_stub__update_jacobi_2gpu0PdS_S_S_idd # -- Begin function _Z34__device_stub__update_jacobi_2gpu0PdS_S_S_idd
	.type	_Z34__device_stub__update_jacobi_2gpu0PdS_S_S_idd,@function
_Z34__device_stub__update_jacobi_2gpu0PdS_S_S_idd: # @_Z34__device_stub__update_jacobi_2gpu0PdS_S_S_idd
	.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
	movq	%rcx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	40(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	32(%rsp), %r9
	movsd	%xmm1, (%r9)
	leaq	112(%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)
	movq	%r9, 48(%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	$_Z19update_jacobi_2gpu0PdS_S_S_idd, %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	_Z34__device_stub__update_jacobi_2gpu0PdS_S_S_idd, .Lfunc_end2-_Z34__device_stub__update_jacobi_2gpu0PdS_S_S_idd
	.cfi_endproc
                                        # -- End function
	.globl	_Z34__device_stub__update_jacobi_2gpu1PdS_S_S_idd # -- Begin function _Z34__device_stub__update_jacobi_2gpu1PdS_S_S_idd
	.type	_Z34__device_stub__update_jacobi_2gpu1PdS_S_S_idd,@function
_Z34__device_stub__update_jacobi_2gpu1PdS_S_S_idd: # @_Z34__device_stub__update_jacobi_2gpu1PdS_S_S_idd
	.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
	movq	%rcx, (%rdx)
	leaq	12(%rsp), %rcx
	movl	%r8d, (%rcx)
	leaq	40(%rsp), %r8
	movsd	%xmm0, (%r8)
	leaq	32(%rsp), %r9
	movsd	%xmm1, (%r9)
	leaq	112(%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)
	movq	%r9, 48(%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	$_Z19update_jacobi_2gpu1PdS_S_S_idd, %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_end3:
	.size	_Z34__device_stub__update_jacobi_2gpu1PdS_S_S_idd, .Lfunc_end3-_Z34__device_stub__update_jacobi_2gpu1PdS_S_S_idd
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z13init_matricesPdS_S_i
.LCPI4_0:
	.quad	0x4034000000000000              # double 20
.LCPI4_1:
	.quad	0x4010000000000000              # double 4
.LCPI4_2:
	.quad	0x4018000000000000              # double 6
.LCPI4_3:
	.quad	0x4014000000000000              # double 5
.LCPI4_4:
	.quad	0x4008000000000000              # double 3
	.text
	.globl	_Z13init_matricesPdS_S_i
	.type	_Z13init_matricesPdS_S_i,@function
_Z13init_matricesPdS_S_i:               # @_Z13init_matricesPdS_S_i
	.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	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
                                        # kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %rbx
	leal	2(%rcx), %eax
	movslq	%eax, %r14
	cmpl	$-1, %ecx
	jl	.LBB4_11
# %bb.1:                                # %.preheader44.lr.ph
	incl	%ecx
	cmpl	$2, %r14d
	movl	$1, %edx
	cmovgel	%eax, %edx
	leaq	(,%r14,8), %r8
	xorl	%r9d, %r9d
	movsd	.LCPI4_0(%rip), %xmm0           # xmm0 = mem[0],zero
	movq	%rbx, %r10
.LBB4_2:                                # %.lr.ph
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_3 Depth 2
	xorl	%r11d, %r11d
.LBB4_3:                                #   Parent Loop BB4_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movaps	%xmm0, %xmm1
	cmpq	%r11, %rcx
	je	.LBB4_5
# %bb.4:                                #   in Loop: Header=BB4_3 Depth=2
	xorps	%xmm1, %xmm1
.LBB4_5:                                #   in Loop: Header=BB4_3 Depth=2
	movaps	%xmm0, %xmm2
	testq	%r11, %r11
	je	.LBB4_7
# %bb.6:                                #   in Loop: Header=BB4_3 Depth=2
	movaps	%xmm1, %xmm2
.LBB4_7:                                #   in Loop: Header=BB4_3 Depth=2
	movaps	%xmm0, %xmm1
	testq	%r9, %r9
	je	.LBB4_9
# %bb.8:                                #   in Loop: Header=BB4_3 Depth=2
	movaps	%xmm2, %xmm1
.LBB4_9:                                #   in Loop: Header=BB4_3 Depth=2
	movsd	%xmm1, (%rdi,%r11,8)
	movsd	%xmm1, (%rsi,%r11,8)
	movsd	%xmm1, (%r10,%r11,8)
	incq	%r11
	cmpq	%r11, %rdx
	jne	.LBB4_3
# %bb.10:                               # %._crit_edge
                                        #   in Loop: Header=BB4_2 Depth=1
	incq	%r9
	addq	%r8, %rdi
	addq	%r8, %rsi
	addq	%r8, %r10
	cmpq	%rdx, %r9
	jne	.LBB4_2
.LBB4_11:                               # %._crit_edge47
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movsd	.LCPI4_1(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	divsd	.LCPI4_2(%rip), %xmm0
	callq	round@PLT
	cvttsd2si	%xmm0, %ebp
	movsd	.LCPI4_3(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	divsd	.LCPI4_2(%rip), %xmm0
	callq	round@PLT
	cvttsd2si	%xmm0, %r15d
	cmpl	%r15d, %ebp
	jge	.LBB4_17
# %bb.12:                               # %.preheader.lr.ph
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	.LCPI4_4(%rip), %xmm0
	divsd	.LCPI4_2(%rip), %xmm0
	callq	round@PLT
	cvttsd2si	%xmm0, %eax
	movslq	%eax, %rcx
	movslq	%ebp, %rdx
	movslq	%r15d, %rsi
	movq	%rdx, %rdi
	imulq	%r14, %rdi
	leaq	(%rbx,%rdi,8), %rdi
	shlq	$3, %r14
	movabsq	$4656510908468559872, %r8       # imm = 0x409F400000000000
	movq	%rdx, %r9
.LBB4_13:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_15 Depth 2
	cmpl	%ebp, %eax
	jge	.LBB4_16
# %bb.14:                               # %.lr.ph49
                                        #   in Loop: Header=BB4_13 Depth=1
	movq	%rcx, %r10
.LBB4_15:                               #   Parent Loop BB4_13 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	%r8, (%rdi,%r10,8)
	incq	%r10
	cmpq	%r10, %rdx
	jne	.LBB4_15
.LBB4_16:                               # %._crit_edge50
                                        #   in Loop: Header=BB4_13 Depth=1
	incq	%r9
	addq	%r14, %rdi
	cmpq	%rsi, %r9
	jne	.LBB4_13
.LBB4_17:                               # %._crit_edge52
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.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_end4:
	.size	_Z13init_matricesPdS_S_i, .Lfunc_end4-_Z13init_matricesPdS_S_i
	.cfi_endproc
                                        # -- End function
	.globl	_Z11display_matPdi              # -- Begin function _Z11display_matPdi
	.type	_Z11display_matPdi,@function
_Z11display_matPdi:                     # @_Z11display_matPdi
	.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
	pushq	%rax
	.cfi_def_cfa_offset 64
	.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	%esi, %ebp
	movq	%rdi, %rbx
	movl	$10, %edi
	callq	putchar@PLT
	cmpl	$-1, %ebp
	jl	.LBB5_5
# %bb.1:                                # %.preheader.lr.ph
	addl	$2, %ebp
	cmpl	$2, %ebp
	movl	$1, %r14d
	cmovgel	%ebp, %r14d
	movslq	%ebp, %r15
	shlq	$3, %r15
	xorl	%r12d, %r12d
.LBB5_2:                                # %.lr.ph
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB5_3 Depth 2
	xorl	%r13d, %r13d
.LBB5_3:                                #   Parent Loop BB5_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rbx,%r13,8), %xmm0            # xmm0 = mem[0],zero
	movl	$.L.str.1, %edi
	movb	$1, %al
	callq	printf
	incq	%r13
	cmpq	%r13, %r14
	jne	.LBB5_3
# %bb.4:                                # %._crit_edge
                                        #   in Loop: Header=BB5_2 Depth=1
	movl	$10, %edi
	callq	putchar@PLT
	incq	%r12
	addq	%r15, %rbx
	cmpq	%r14, %r12
	jne	.LBB5_2
.LBB5_5:                                # %._crit_edge14
	addq	$8, %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_end5:
	.size	_Z11display_matPdi, .Lfunc_end5-_Z11display_matPdi
	.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	.LBB6_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB6_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17update_jacobi_gpuPdS_S_idd, %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	$_Z18update_jacobi_gpu2PdS_S_idd, %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	$_Z19update_jacobi_2gpu0PdS_S_S_idd, %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	$_Z19update_jacobi_2gpu1PdS_S_S_idd, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %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_end6:
	.size	__hip_module_ctor, .Lfunc_end6-__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	.LBB7_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
.LBB7_2:
	retq
.Lfunc_end7:
	.size	__hip_module_dtor, .Lfunc_end7-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z17update_jacobi_gpuPdS_S_idd,@object # @_Z17update_jacobi_gpuPdS_S_idd
	.section	.rodata,"a",@progbits
	.globl	_Z17update_jacobi_gpuPdS_S_idd
	.p2align	3, 0x0
_Z17update_jacobi_gpuPdS_S_idd:
	.quad	_Z32__device_stub__update_jacobi_gpuPdS_S_idd
	.size	_Z17update_jacobi_gpuPdS_S_idd, 8

	.type	_Z18update_jacobi_gpu2PdS_S_idd,@object # @_Z18update_jacobi_gpu2PdS_S_idd
	.globl	_Z18update_jacobi_gpu2PdS_S_idd
	.p2align	3, 0x0
_Z18update_jacobi_gpu2PdS_S_idd:
	.quad	_Z33__device_stub__update_jacobi_gpu2PdS_S_idd
	.size	_Z18update_jacobi_gpu2PdS_S_idd, 8

	.type	_Z19update_jacobi_2gpu0PdS_S_S_idd,@object # @_Z19update_jacobi_2gpu0PdS_S_S_idd
	.globl	_Z19update_jacobi_2gpu0PdS_S_S_idd
	.p2align	3, 0x0
_Z19update_jacobi_2gpu0PdS_S_S_idd:
	.quad	_Z34__device_stub__update_jacobi_2gpu0PdS_S_S_idd
	.size	_Z19update_jacobi_2gpu0PdS_S_S_idd, 8

	.type	_Z19update_jacobi_2gpu1PdS_S_S_idd,@object # @_Z19update_jacobi_2gpu1PdS_S_S_idd
	.globl	_Z19update_jacobi_2gpu1PdS_S_S_idd
	.p2align	3, 0x0
_Z19update_jacobi_2gpu1PdS_S_S_idd:
	.quad	_Z34__device_stub__update_jacobi_2gpu1PdS_S_S_idd
	.size	_Z19update_jacobi_2gpu1PdS_S_S_idd, 8

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"%f "
	.size	.L.str.1, 4

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z17update_jacobi_gpuPdS_S_idd"
	.size	.L__unnamed_1, 31

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

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z19update_jacobi_2gpu0PdS_S_S_idd"
	.size	.L__unnamed_3, 35

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z19update_jacobi_2gpu1PdS_S_S_idd"
	.size	.L__unnamed_4, 35

	.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 _Z32__device_stub__update_jacobi_gpuPdS_S_idd
	.addrsig_sym _Z33__device_stub__update_jacobi_gpu2PdS_S_idd
	.addrsig_sym _Z34__device_stub__update_jacobi_2gpu0PdS_S_S_idd
	.addrsig_sym _Z34__device_stub__update_jacobi_2gpu1PdS_S_S_idd
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z17update_jacobi_gpuPdS_S_idd
	.addrsig_sym _Z18update_jacobi_gpu2PdS_S_idd
	.addrsig_sym _Z19update_jacobi_2gpu0PdS_S_S_idd
	.addrsig_sym _Z19update_jacobi_2gpu1PdS_S_S_idd
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z17update_jacobi_gpuPdS_S_idd ; -- Begin function _Z17update_jacobi_gpuPdS_S_idd
	.globl	_Z17update_jacobi_gpuPdS_S_idd
	.p2align	8
	.type	_Z17update_jacobi_gpuPdS_S_idd,@function
_Z17update_jacobi_gpuPdS_S_idd:         ; @_Z17update_jacobi_gpuPdS_S_idd
; %bb.0:
	s_load_b32 s12, s[0:1], 0x18
	s_mov_b32 s13, 1
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s12, 1
	s_cbranch_scc1 .LBB0_5
; %bb.1:                                ; %.preheader.lr.ph
	s_clause 0x2
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[8:9], s[0:1], 0x10
	s_load_b128 s[0:3], s[0:1], 0x20
	s_add_i32 s14, s12, 2
	v_mov_b32_e32 v0, 0
	s_lshl_b32 s15, s14, 1
	s_mov_b32 s11, 0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s16, s4, 8
	s_addc_u32 s17, s5, 0
	s_add_u32 s18, s4, -8
	s_addc_u32 s19, s5, -1
.LBB0_2:                                ; %.preheader
                                        ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	s_mov_b32 s20, 1
.LBB0_3:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_i32 s10, s20, -1
	s_mul_i32 s23, s20, s14
	s_mul_i32 s10, s10, s14
	s_add_i32 s21, s20, 1
	s_add_i32 s24, s10, s13
	s_add_i32 s22, s23, s13
	s_add_i32 s10, s24, s15
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[26:27], s[10:11], 3
	s_add_u32 s26, s4, s26
	s_addc_u32 s27, s5, s27
	s_ashr_i32 s25, s24, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[24:25], s[24:25], 3
	s_add_u32 s24, s4, s24
	s_addc_u32 s25, s5, s25
	s_clause 0x1
	global_load_b64 v[1:2], v0, s[26:27]
	global_load_b64 v[3:4], v0, s[24:25]
	s_add_u32 s24, s13, s23
	s_addc_u32 s25, 0, 0
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[24:25], s[24:25], 3
	s_add_u32 s24, s16, s24
	s_addc_u32 s25, s17, s25
	s_ashr_i32 s23, s22, 31
	global_load_b64 v[5:6], v0, s[24:25]
	s_lshl_b64 s[24:25], s[22:23], 3
	s_mov_b32 s23, s11
	s_add_u32 s24, s18, s24
	s_addc_u32 s25, s19, s25
	s_lshl_b64 s[22:23], s[22:23], 3
	global_load_b64 v[7:8], v0, s[24:25]
	s_add_u32 s24, s8, s22
	s_addc_u32 s25, s9, s23
	s_add_u32 s22, s6, s22
	global_load_b64 v[9:10], v0, s[24:25]
	s_addc_u32 s23, s7, s23
	s_cmp_lg_u32 s20, s12
	s_mov_b32 s20, s21
	s_waitcnt vmcnt(3)
	v_add_f64 v[1:2], v[1:2], v[3:4]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	s_waitcnt vmcnt(1)
	v_add_f64 v[1:2], v[1:2], v[7:8]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[1:2], v[9:10], s[0:1], v[1:2]
	v_mul_f64 v[1:2], v[1:2], s[2:3]
	global_store_b64 v0, v[1:2], s[22:23]
	s_cbranch_scc1 .LBB0_3
; %bb.4:                                ; %._crit_edge
                                        ;   in Loop: Header=BB0_2 Depth=1
	s_add_i32 s10, s13, 1
	s_cmp_lg_u32 s13, s12
	s_mov_b32 s13, s10
	s_cbranch_scc1 .LBB0_2
.LBB0_5:                                ; %._crit_edge54
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17update_jacobi_gpuPdS_S_idd
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 48
		.amdhsa_user_sgpr_count 15
		.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 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 11
		.amdhsa_next_free_sgpr 28
		.amdhsa_reserve_vcc 0
		.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	_Z17update_jacobi_gpuPdS_S_idd, .Lfunc_end0-_Z17update_jacobi_gpuPdS_S_idd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 380
; NumSgprs: 28
; NumVgprs: 11
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 3
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 28
; NumVGPRsForWavesPerEU: 11
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z18update_jacobi_gpu2PdS_S_idd ; -- Begin function _Z18update_jacobi_gpu2PdS_S_idd
	.globl	_Z18update_jacobi_gpu2PdS_S_idd
	.p2align	8
	.type	_Z18update_jacobi_gpu2PdS_S_idd,@function
_Z18update_jacobi_gpu2PdS_S_idd:        ; @_Z18update_jacobi_gpu2PdS_S_idd
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x3c
	s_load_b32 s2, s[0:1], 0x18
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v3, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s4, s3, 16
	s_and_b32 s3, s3, 0xffff
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s3, v[2:3]
	v_mad_u64_u32 v[1:2], null, s15, s4, v[3:4]
	s_mov_b32 s3, exec_lo
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v2, 1, v0
	v_add_nc_u32_e32 v3, 1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_max_i32_e32 v3, v2, v3
	v_cmpx_ge_i32_e64 s2, v3
	s_cbranch_execz .LBB1_2
; %bb.1:
	s_add_i32 s8, s2, 2
	s_clause 0x1
	s_load_b128 s[4:7], s[0:1], 0x0
	s_load_b64 s[2:3], s[0:1], 0x10
	v_mul_lo_u32 v1, v1, s8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_lshl_add_u32 v7, s8, 1, v1
	v_add_nc_u32_e32 v5, v1, v2
	v_add_nc_u32_e32 v3, v7, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v6, 31, v5
	v_subrev_nc_u32_e32 v9, s8, v7
	v_ashrrev_i32_e32 v4, 31, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[5:6], 3, v[5:6]
	v_add_nc_u32_e32 v0, v9, v0
	v_add_nc_u32_e32 v9, v9, v2
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[3:4], 3, v[3:4]
	v_add_nc_u32_e32 v7, 2, v0
	v_ashrrev_i32_e32 v1, 31, v0
	s_delay_alu instid0(VALU_DEP_4) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_ashrrev_i32_e32 v10, 31, v9
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s4, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s5, v4, vcc_lo
	v_add_co_u32 v5, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s5, v6, vcc_lo
	s_clause 0x1
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[5:6], v[5:6], off
	v_ashrrev_i32_e32 v8, 31, v7
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	v_lshlrev_b64 v[9:10], 3, v[9:10]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[7:8], 3, v[7:8]
	v_add_co_u32 v7, vcc_lo, s4, v7
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v8, vcc_lo
	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[7:8], v[7:8], off
	v_add_co_u32 v11, vcc_lo, s2, v9
	global_load_b64 v[0:1], v[0:1], off
	v_add_co_ci_u32_e32 v12, vcc_lo, s3, v10, vcc_lo
	s_load_b128 s[0:3], s[0:1], 0x20
	global_load_b64 v[11:12], v[11:12], off
	s_waitcnt vmcnt(3)
	v_add_f64 v[2:3], v[3:4], v[5:6]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[2:3], v[2:3], v[7:8]
	s_waitcnt vmcnt(1)
	v_add_f64 v[0:1], v[2:3], v[0:1]
	v_add_co_u32 v2, vcc_lo, s6, v9
	v_add_co_ci_u32_e32 v3, vcc_lo, s7, v10, vcc_lo
	s_waitcnt vmcnt(0) lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[0:1], v[11:12], s[0:1], v[0:1]
	v_mul_f64 v[0:1], v[0:1], s[2:3]
	global_store_b64 v[2:3], v[0:1], off
.LBB1_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18update_jacobi_gpu2PdS_S_idd
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 304
		.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 13
		.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	_Z18update_jacobi_gpu2PdS_S_idd, .Lfunc_end1-_Z18update_jacobi_gpu2PdS_S_idd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 472
; NumSgprs: 18
; NumVgprs: 13
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 13
; 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	_Z19update_jacobi_2gpu0PdS_S_S_idd ; -- Begin function _Z19update_jacobi_2gpu0PdS_S_S_idd
	.globl	_Z19update_jacobi_2gpu0PdS_S_S_idd
	.p2align	8
	.type	_Z19update_jacobi_2gpu0PdS_S_S_idd,@function
_Z19update_jacobi_2gpu0PdS_S_S_idd:     ; @_Z19update_jacobi_2gpu0PdS_S_S_idd
; %bb.0:
	s_clause 0x3
	s_load_b32 s3, s[0:1], 0x44
	s_load_b32 s2, s[0:1], 0x20
	s_load_b128 s[16:19], s[0:1], 0x28
	s_load_b256 s[4:11], s[0:1], 0x0
	v_and_b32_e32 v2, 0x3ff, v0
	v_bfe_u32 v4, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_lshr_b32 s0, s3, 16
	s_and_b32 s1, s3, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[0:1], null, s14, s1, v[2:3]
	v_mad_u64_u32 v[2:3], null, s15, s0, v[4:5]
	s_lshr_b32 s0, s2, 31
	s_add_i32 s0, s2, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v3, 1, v0
	s_ashr_i32 s1, s0, 1
	v_add_nc_u32_e32 v4, 1, v2
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_ge_i32_e32 vcc_lo, s2, v3
	v_cmp_eq_u32_e64 s0, s1, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, vcc_lo, s0
	s_and_saveexec_b32 s3, s0
	s_cbranch_execz .LBB2_2
; %bb.1:
	s_add_i32 s12, s2, 2
	v_ashrrev_i32_e32 v1, 31, v0
	v_mul_lo_u32 v9, v2, s12
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_lshlrev_b64 v[7:8], 3, v[0:1]
	v_add_nc_u32_e32 v5, v9, v3
	v_add_nc_u32_e32 v1, s12, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v7, s0, s6, v7
	v_add_co_ci_u32_e64 v8, s0, s7, v8, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ashrrev_i32_e32 v6, 31, v5
	v_add_nc_u32_e32 v9, v1, v0
	v_add_nc_u32_e32 v13, v1, v3
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[5:6], 3, v[5:6]
	v_add_nc_u32_e32 v10, 2, v9
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_ashrrev_i32_e32 v14, 31, v13
	v_ashrrev_i32_e32 v11, 31, v10
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v5, s0, s4, v5
	v_add_co_ci_u32_e64 v6, s0, s5, v6, s0
	global_load_b64 v[7:8], v[7:8], off offset:8
	global_load_b64 v[5:6], v[5:6], off
	v_lshlrev_b64 v[10:11], 3, v[10:11]
	v_lshlrev_b64 v[13:14], 3, v[13:14]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v10, s0, s4, v10
	v_add_co_ci_u32_e64 v11, s0, s5, v11, s0
	global_load_b64 v[11:12], v[10:11], off
	v_ashrrev_i32_e32 v10, 31, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[9:10], 3, v[9:10]
	v_add_co_u32 v9, s0, s4, v9
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v10, s0, s5, v10, s0
	v_add_co_u32 v15, s0, s10, v13
	v_add_co_ci_u32_e64 v16, s0, s11, v14, s0
	global_load_b64 v[9:10], v[9:10], off
	global_load_b64 v[15:16], v[15:16], off
	s_waitcnt vmcnt(3)
	v_add_f64 v[5:6], v[7:8], v[5:6]
	v_add_co_u32 v7, s0, s8, v13
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v8, s0, s9, v14, s0
	s_waitcnt vmcnt(2)
	v_add_f64 v[5:6], v[5:6], v[11:12]
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[5:6], v[5:6], v[9:10]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[5:6], v[15:16], s[16:17], v[5:6]
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[5:6], v[5:6], s[18:19]
	global_store_b64 v[7:8], v[5:6], off
.LBB2_2:
	s_or_b32 exec_lo, exec_lo, s3
	v_cmp_gt_i32_e64 s0, s1, v4
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, vcc_lo, s0
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB2_4
; %bb.3:
	s_add_i32 s2, s2, 2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mul_lo_u32 v2, v2, s2
	v_lshl_add_u32 v6, s2, 1, v2
	v_add_nc_u32_e32 v4, v2, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_nc_u32_e32 v1, v6, v3
	v_ashrrev_i32_e32 v5, 31, v4
	v_subrev_nc_u32_e32 v10, s2, v6
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_4)
	v_add_nc_u32_e32 v6, v10, v0
	v_add_nc_u32_e32 v10, v10, v3
	v_lshlrev_b64 v[1:2], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v7, 2, v6
	v_ashrrev_i32_e32 v11, 31, v10
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v1, vcc_lo, s4, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s5, v2, vcc_lo
	v_add_co_u32 v4, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	v_ashrrev_i32_e32 v8, 31, v7
	s_clause 0x1
	global_load_b64 v[1:2], v[1:2], off
	global_load_b64 v[4:5], v[4:5], off
	v_lshlrev_b64 v[10:11], 3, v[10:11]
	v_lshlrev_b64 v[7:8], 3, v[7:8]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v7, vcc_lo, s4, v7
	v_add_co_ci_u32_e32 v8, vcc_lo, s5, v8, vcc_lo
	global_load_b64 v[8:9], v[7:8], off
	v_ashrrev_i32_e32 v7, 31, v6
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	v_add_co_u32 v6, vcc_lo, s4, v6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v7, vcc_lo
	v_add_co_u32 v12, vcc_lo, s10, v10
	v_add_co_ci_u32_e32 v13, vcc_lo, s11, v11, vcc_lo
	global_load_b64 v[6:7], v[6:7], off
	global_load_b64 v[12:13], v[12:13], off
	s_waitcnt vmcnt(3)
	v_add_f64 v[0:1], v[1:2], v[4:5]
	v_add_co_u32 v2, vcc_lo, s8, v10
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v11, vcc_lo
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[0:1], v[0:1], v[8:9]
	s_waitcnt vmcnt(1)
	v_add_f64 v[0:1], v[0:1], v[6:7]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[0:1], v[12:13], s[16:17], v[0:1]
	v_mul_f64 v[0:1], v[0:1], s[18:19]
	global_store_b64 v[2:3], v[0:1], off
.LBB2_4:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19update_jacobi_2gpu0PdS_S_S_idd
		.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 17
		.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_end2:
	.size	_Z19update_jacobi_2gpu0PdS_S_S_idd, .Lfunc_end2-_Z19update_jacobi_2gpu0PdS_S_S_idd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 852
; NumSgprs: 22
; NumVgprs: 17
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 22
; NumVGPRsForWavesPerEU: 17
; 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	_Z19update_jacobi_2gpu1PdS_S_S_idd ; -- Begin function _Z19update_jacobi_2gpu1PdS_S_S_idd
	.globl	_Z19update_jacobi_2gpu1PdS_S_S_idd
	.p2align	8
	.type	_Z19update_jacobi_2gpu1PdS_S_S_idd,@function
_Z19update_jacobi_2gpu1PdS_S_S_idd:     ; @_Z19update_jacobi_2gpu1PdS_S_S_idd
; %bb.0:
	s_clause 0x1
	s_load_b32 s3, s[0:1], 0x44
	s_load_b32 s2, s[0:1], 0x20
	v_and_b32_e32 v3, 0x3ff, v0
	s_clause 0x1
	s_load_b128 s[16:19], s[0:1], 0x28
	s_load_b256 s[4:11], s[0:1], 0x0
	v_bfe_u32 v0, v0, 10, 10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s0, s3, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1)
	v_mad_u64_u32 v[1:2], null, s14, s0, v[3:4]
	s_lshr_b32 s0, s3, 16
	s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
	v_mad_u64_u32 v[3:4], null, s15, s0, v[0:1]
	v_add_nc_u32_e32 v0, 1, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_cmp_ge_i32_e32 vcc_lo, s2, v0
	v_cmp_eq_u32_e64 s0, 0, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_and_b32 s0, vcc_lo, s0
	s_and_saveexec_b32 s1, s0
	s_cbranch_execz .LBB3_2
; %bb.1:
	s_add_i32 s0, s2, 2
	v_ashrrev_i32_e32 v2, 31, v0
	s_mul_i32 s0, s0, s2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshr_b32 s3, s0, 31
	s_add_i32 s0, s0, s3
	s_ashr_i32 s3, s2, 31
	s_ashr_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v4, s0, v0
	v_add_co_u32 v6, s0, v0, s2
	v_add_co_ci_u32_e64 v7, s0, s3, v2, s0
	s_delay_alu instid0(VALU_DEP_3) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_ashrrev_i32_e32 v5, 31, v4
	v_ashrrev_i32_e32 v2, 31, v1
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	v_lshlrev_b64 v[8:9], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v6, s0, s4, v6
	v_add_co_ci_u32_e64 v7, s0, s5, v7, s0
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v4, s0, s6, v4
	v_add_co_ci_u32_e64 v5, s0, s7, v5, s0
	global_load_b64 v[6:7], v[6:7], off offset:16
	global_load_b64 v[4:5], v[4:5], off
	v_add_co_u32 v10, s0, s4, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v11, s0, s5, v9, s0
	s_clause 0x1
	global_load_b64 v[12:13], v[10:11], off offset:16
	global_load_b64 v[10:11], v[10:11], off
	v_add_co_u32 v14, s0, s10, v8
	v_add_co_ci_u32_e64 v15, s0, s11, v9, s0
	global_load_b64 v[14:15], v[14:15], off offset:8
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[6:7], v[4:5]
	v_add_co_u32 v6, s0, s8, v8
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_co_ci_u32_e64 v7, s0, s9, v9, s0
	s_waitcnt vmcnt(2)
	v_add_f64 v[4:5], v[4:5], v[12:13]
	s_waitcnt vmcnt(1)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[4:5], v[4:5], v[10:11]
	s_waitcnt vmcnt(0)
	v_fma_f64 v[4:5], v[14:15], s[16:17], v[4:5]
	s_delay_alu instid0(VALU_DEP_1)
	v_mul_f64 v[4:5], v[4:5], s[18:19]
	global_store_b64 v[6:7], v[4:5], off offset:8
.LBB3_2:
	s_or_b32 exec_lo, exec_lo, s1
	s_and_saveexec_b32 s0, vcc_lo
	s_cbranch_execz .LBB3_5
; %bb.3:
	s_lshr_b32 s0, s2, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_add_i32 s0, s2, s0
	s_ashr_i32 s0, s0, 1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_cmp_gt_i32_e32 vcc_lo, s0, v3
	v_cmp_lt_i32_e64 s0, 0, v3
	s_and_b32 s0, vcc_lo, s0
	s_delay_alu instid0(SALU_CYCLE_1)
	s_and_b32 exec_lo, exec_lo, s0
	s_cbranch_execz .LBB3_5
; %bb.4:
	v_add_nc_u32_e32 v2, -1, v3
	s_add_i32 s2, s2, 2
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_mul_lo_u32 v10, v3, s2
	v_mad_u64_u32 v[4:5], null, v2, s2, v[0:1]
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_1) | instid1(VALU_DEP_3)
	v_add_nc_u32_e32 v1, v10, v1
	v_add_nc_u32_e32 v10, v10, v0
	v_lshl_add_u32 v6, s2, 1, v4
	v_ashrrev_i32_e32 v5, 31, v4
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_nc_u32_e32 v2, 2, v1
	v_ashrrev_i32_e32 v11, 31, v10
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ashrrev_i32_e32 v7, 31, v6
	v_lshlrev_b64 v[4:5], 3, v[4:5]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_ashrrev_i32_e32 v3, 31, v2
	v_lshlrev_b64 v[10:11], 3, v[10:11]
	s_delay_alu instid0(VALU_DEP_4) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_lshlrev_b64 v[6:7], 3, v[6:7]
	v_lshlrev_b64 v[2:3], 3, v[2:3]
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v6, vcc_lo, s4, v6
	v_add_co_ci_u32_e32 v7, vcc_lo, s5, v7, vcc_lo
	v_add_co_u32 v4, vcc_lo, s4, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s5, v5, vcc_lo
	v_add_co_u32 v2, vcc_lo, s4, v2
	s_clause 0x1
	global_load_b64 v[6:7], v[6:7], off
	global_load_b64 v[4:5], v[4:5], off
	v_add_co_ci_u32_e32 v3, vcc_lo, s5, v3, vcc_lo
	global_load_b64 v[8:9], v[2:3], off
	v_ashrrev_i32_e32 v2, 31, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[1:2]
	v_add_co_u32 v1, vcc_lo, s4, v1
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v2, vcc_lo, s5, v2, vcc_lo
	v_add_co_u32 v12, vcc_lo, s10, v10
	v_add_co_ci_u32_e32 v13, vcc_lo, s11, v11, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	global_load_b64 v[12:13], v[12:13], off
	s_waitcnt vmcnt(3)
	v_add_f64 v[3:4], v[6:7], v[4:5]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[8:9]
	s_waitcnt vmcnt(1)
	v_add_f64 v[0:1], v[3:4], v[1:2]
	v_add_co_u32 v2, vcc_lo, s8, v10
	v_add_co_ci_u32_e32 v3, vcc_lo, s9, v11, vcc_lo
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[0:1], v[12:13], s[16:17], v[0:1]
	v_mul_f64 v[0:1], v[0:1], s[18:19]
	global_store_b64 v[2:3], v[0:1], off
.LBB3_5:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z19update_jacobi_2gpu1PdS_S_S_idd
		.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 16
		.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_end3:
	.size	_Z19update_jacobi_2gpu1PdS_S_S_idd, .Lfunc_end3-_Z19update_jacobi_2gpu1PdS_S_S_idd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 840
; NumSgprs: 22
; NumVgprs: 16
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 22
; NumVGPRsForWavesPerEU: 16
; 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:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 48
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z17update_jacobi_gpuPdS_S_idd
    .private_segment_fixed_size: 0
    .sgpr_count:     28
    .sgpr_spill_count: 0
    .symbol:         _Z17update_jacobi_gpuPdS_S_idd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     11
    .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:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           8
        .value_kind:     by_value
      - .offset:         40
        .size:           8
        .value_kind:     by_value
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         52
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         56
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         60
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         62
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         64
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         66
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         68
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         70
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         104
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         112
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 304
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18update_jacobi_gpu2PdS_S_idd
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z18update_jacobi_gpu2PdS_S_idd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     13
    .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
      - .offset:         32
        .size:           4
        .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:     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:           _Z19update_jacobi_2gpu0PdS_S_S_idd
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z19update_jacobi_2gpu0PdS_S_S_idd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     17
    .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
      - .offset:         32
        .size:           4
        .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:     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:           _Z19update_jacobi_2gpu1PdS_S_S_idd
    .private_segment_fixed_size: 0
    .sgpr_count:     22
    .sgpr_spill_count: 0
    .symbol:         _Z19update_jacobi_2gpu1PdS_S_S_idd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     16
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
