﻿#include <iostream>
#include <fstream>
#include <cmath>

#define N 512
#define THREADS 32
#define BLOCKS 16
#define eps 0.005

using namespace std;


double *devU,*devU_new,*devF;
double *u,*u_new,*f;
double h;
int numberOfBytes;
	
	
double f1(int i,int j)
{
	double x=(double)i*h;
	double y=(double)j*h;
	return 4.0+2.0*x*x-2.0*x+2.0*y*y-2.0*y;
}

__global__ void relax_cu(double *u,double *f,double h2,double relax_param)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
int j = blockIdx.y*blockDim.y + threadIdx.y;
if(i>0 && i<N-1 &&j>0 && j<N-1)
            u[i*N+j]=relax_param*(u[(i-1)*N+j]+u[(i+1)*N+j]+u[i*N+j-1]+u[i*N+j+1]-h2*f[i*N+j])+(1-relax_param*4)*u[i*N+j];
}

__global__ void relax_cu2(double *u,double *u_new,double *f,double h2,double relax_param)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
int j = blockIdx.y*blockDim.y + threadIdx.y;
if(i>0 && i<N-1 &&j>0 && j<N-1)
            u_new[i*N+j]=relax_param*(u_new[(i-1)*N+j]+u[(i+1)*N+j]+u_new[i*N+j-1]+u[i*N+j+1]-h2*f[i*N+j])+(1-relax_param*4)*u[i*N+j];
}

__global__ void jacobi_cu(double *cu,double *cu_new,double *f,double h2)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
int j = blockIdx.y*blockDim.y + threadIdx.y;
if(i>0 && i<N-1 &&j>0 && j<N-1)
            cu_new[i*N+j]=0.25*(cu[(i-1)*N+j]+cu[(i+1)*N+j]+cu[i*N+j-1]+cu[i*N+j+1]-h2*f[i*N+j]);
}

void err_cuda(cudaError_t i)
{
if(i!=0){
	printf("Error: %i\t%s\n",i,cudaGetErrorString(i));
	exit(-1);
}
}

void cudaInit()
{
	err_cuda(cudaMalloc((void**)&devU,numberOfBytes));
	err_cuda(cudaMalloc((void**)&devU_new,numberOfBytes));
	err_cuda(cudaMalloc((void**)&devF,numberOfBytes));
	err_cuda(cudaMemcpy(devU,u,numberOfBytes,cudaMemcpyHostToDevice));
	err_cuda(cudaMemcpy(devF,f,numberOfBytes,cudaMemcpyHostToDevice));
	err_cuda(cudaMemcpy(devU_new,u_new,numberOfBytes,cudaMemcpyHostToDevice));
}

void cudaFinal()
{
	err_cuda(cudaFree(devU));
	err_cuda(cudaFree(devU_new));
	err_cuda(cudaFree(devF));
	
}

void init()
{	
	h=1.0/N;
	numberOfBytes=sizeof(double)*N*N;
	u=new double[numberOfBytes];
	u_new=new double[numberOfBytes];
	f=new double[numberOfBytes];
	
	for(int i=0;i<N;i++)
	{
		for(int j=0;j<N;j++)
		{
			u[i*N+j]=0;
			u_new[i*N+j]=0;
			f[i*N+j]=f1(i,j);
		}
	}
	
	double tmp;
	for(int i=0;i<N;i++)
	{
		tmp=(double)i*h*(double)i*h-(double)i*h+1;
		u[i*N]=tmp;
		u[i*N+N-1]=tmp;
		u[i]=tmp;
		u[(N-1)*N+i]=tmp;
		
		u_new[i*N]=tmp;
		u_new[i*N+N-1]=tmp;
		u_new[i]=tmp;
		u_new[(N-1)*N+i]=tmp;
	}
}

void final()
{
	delete[] u;
	delete[] u_new;
	delete[] f;
}

double exact_solve(int i,int j)
{
	double x=(double)i*h;
	double y=(double)j*h;
	double res=(x*x-x+1.0)*(y*y-y+1.0);
	return res;
}

bool err()
{
	double max=0;
	double tmp;
	for(int i=1;i<N-1;i++)
		for(int j=1;j<N-1;j++)
		{
			tmp=fabs(u[i*N+j]-exact_solve(i,j));
			if(tmp>max)max=tmp;
		}
		cout<<"err: "<<max<<endl;
		if(max<eps)return true;
		return false;

}

void writeToFile(string fname)
{
	ofstream output_file;
	output_file.open(fname.c_str(),std::ofstream::out);
	
	for(int i=0;i<N;i++)
		for(int j=0;j<N;j++)
		{
			output_file<<(double)i*h <<" "<<(double)j*h<<" "<<u[i*N+j]<<endl;
		}
}

void jacobi(double param)
{
	dim3 threads = dim3(THREADS, THREADS,1);
	dim3 blocks  = dim3(BLOCKS, BLOCKS,1);
	
	for(int i=0;;i++)
	{
    	    jacobi_cu<<<threads,blocks,0>>>(devU,devU_new,devF,h*h);
			double *tmp=devU;
			devU=devU_new;
			devU_new=tmp;
			if(i%10000==0)
			{
				err_cuda(cudaMemcpy(u,devU,numberOfBytes,cudaMemcpyDeviceToHost));				
				cout<<i<<endl;
				if(err())break;
			}
			
	}
}

void relax(double param)
{
	dim3 threads = dim3(THREADS, THREADS,1);
	dim3 blocks  = dim3(BLOCKS, BLOCKS,1);
	
	for(int i=0;;i++)
	{
    	    relax_cu<<<threads,blocks,0>>>(devU,devF,h*h,param);			
			if(i%100==0)
			{
				cout<<i<<endl;
				err_cuda(cudaMemcpy(u,devU,numberOfBytes,cudaMemcpyDeviceToHost));
				
				if(err())break;
			}
			
	}
}

void relax2(double param)
{
	dim3 threads = dim3(THREADS, THREADS,1);
	dim3 blocks  = dim3(BLOCKS, BLOCKS,1);
	
	for(int i=0;;i++)
	{
    	    relax_cu2<<<threads,blocks,0>>>(devU,devU_new,devF,h*h,param);			
			if(i%10000==0)
			{
				double *tmp=devU;
				devU=devU_new;
				devU_new=tmp;
				cout<<i<<endl;
				err_cuda(cudaMemcpy(u,devU,numberOfBytes,cudaMemcpyDeviceToHost));				
				if(err())break;
			}
			
	}
}

double CalcTimeOfMethod(void (*method)(double),double param)
{
	init();
	cudaInit();	
	
	clock_t start=clock();
	method(param);
	double time=(double)(clock()-start)/CLOCKS_PER_SEC;
	
	//writeToFile("output2.dat");
	
	cudaFinal();
	final();
	return time;
}

int main(int argc, char* argv[])
{	
	double t1=CalcTimeOfMethod(&jacobi,0.25);
	double t2=CalcTimeOfMethod(&relax,0.25);
	double t3=CalcTimeOfMethod(&relax,0.18);
	double t4=CalcTimeOfMethod(&relax,0.33);
	cout<<"Time: "<<t1<<endl;
	cout<<"Time: "<<t2<<endl;
	cout<<"Time: "<<t3<<endl;
	cout<<"Time: "<<t4<<endl;
	return 0;
	
}
	.file	"tmpxft_002fdf49_00000000-6_dirihle.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3782:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3782:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSolsEPFRSoS_E.isra.0, @function
_ZNSolsEPFRSoS_E.isra.0:
.LFB4491:
	.cfi_startproc
	jmp	*%rsi
	.cfi_endproc
.LFE4491:
	.size	_ZNSolsEPFRSoS_E.isra.0, .-_ZNSolsEPFRSoS_E.isra.0
	.globl	_Z2f1ii
	.type	_Z2f1ii, @function
_Z2f1ii:
.LFB3766:
	.cfi_startproc
	endbr64
	cvtsi2sdl	%edi, %xmm1
	movsd	h(%rip), %xmm2
	cvtsi2sdl	%esi, %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	movaps	%xmm1, %xmm3
	addsd	%xmm1, %xmm3
	movaps	%xmm0, %xmm2
	addsd	%xmm0, %xmm2
	mulsd	%xmm3, %xmm1
	addsd	.LC0(%rip), %xmm1
	mulsd	%xmm2, %xmm0
	subsd	%xmm3, %xmm1
	addsd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	ret
	.cfi_endproc
.LFE3766:
	.size	_Z2f1ii, .-_Z2f1ii
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Error: %i\t%s\n"
	.text
	.globl	_Z8err_cuda9cudaError
	.type	_Z8err_cuda9cudaError, @function
_Z8err_cuda9cudaError:
.LFB3767:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L4
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%edi, %ebx
	call	cudaGetErrorString@PLT
	movl	$2, %edi
	movl	%ebx, %edx
	leaq	.LC1(%rip), %rsi
	movq	%rax, %rcx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	orl	$-1, %edi
	call	exit@PLT
.L4:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	ret
	.cfi_endproc
.LFE3767:
	.size	_Z8err_cuda9cudaError, .-_Z8err_cuda9cudaError
	.globl	_Z8cudaInitv
	.type	_Z8cudaInitv, @function
_Z8cudaInitv:
.LFB3768:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	movslq	numberOfBytes(%rip), %rsi
	leaq	devU(%rip), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	movslq	numberOfBytes(%rip), %rsi
	leaq	devU_new(%rip), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	movslq	numberOfBytes(%rip), %rsi
	leaq	devF(%rip), %rdi
	call	cudaMalloc@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	movslq	numberOfBytes(%rip), %rdx
	movl	$1, %ecx
	movq	u(%rip), %rsi
	movq	devU(%rip), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	movslq	numberOfBytes(%rip), %rdx
	movl	$1, %ecx
	movq	f(%rip), %rsi
	movq	devF(%rip), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	movslq	numberOfBytes(%rip), %rdx
	movl	$1, %ecx
	movq	devU_new(%rip), %rdi
	movq	u_new(%rip), %rsi
	call	cudaMemcpy@PLT
	popq	%rdx
	.cfi_def_cfa_offset 8
	movl	%eax, %edi
	jmp	_Z8err_cuda9cudaError
	.cfi_endproc
.LFE3768:
	.size	_Z8cudaInitv, .-_Z8cudaInitv
	.globl	_Z9cudaFinalv
	.type	_Z9cudaFinalv, @function
_Z9cudaFinalv:
.LFB3769:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	devU(%rip), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	movq	devU_new(%rip), %rdi
	call	cudaFree@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	movq	devF(%rip), %rdi
	call	cudaFree@PLT
	popq	%rdx
	.cfi_def_cfa_offset 8
	movl	%eax, %edi
	jmp	_Z8err_cuda9cudaError
	.cfi_endproc
.LFE3769:
	.size	_Z9cudaFinalv, .-_Z9cudaFinalv
	.globl	_Z4initv
	.type	_Z4initv, @function
_Z4initv:
.LFB3770:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	.LC2(%rip), %rax
	movl	$16777216, %edi
	movabsq	$1152921504606846975, %rbx
	movl	$2097152, numberOfBytes(%rip)
	movq	%rax, h(%rip)
	call	_Znam@PLT
	movslq	numberOfBytes(%rip), %rdi
	movq	%rax, u(%rip)
	cmpq	%rdi, %rbx
	jb	.L15
	salq	$3, %rdi
	call	_Znam@PLT
	movslq	numberOfBytes(%rip), %rdi
	movq	%rax, u_new(%rip)
	cmpq	%rdi, %rbx
	jnb	.L16
.L15:
	call	__cxa_throw_bad_array_new_length@PLT
.L16:
	salq	$3, %rdi
	call	_Znam@PLT
	movq	u(%rip), %r8
	movq	u_new(%rip), %rcx
	xorl	%r9d, %r9d
	movq	%rax, f(%rip)
.L17:
	movq	%r9, %rdx
	movl	%r9d, %edi
	xorl	%esi, %esi
	salq	$12, %rdx
.L18:
	movq	$0x000000000, (%r8,%rdx)
	movq	$0x000000000, (%rcx,%rdx)
	call	_Z2f1ii
	incl	%esi
	movsd	%xmm0, (%rax,%rdx)
	addq	$8, %rdx
	cmpl	$512, %esi
	jne	.L18
	incq	%r9
	cmpq	$512, %r9
	jne	.L17
	movsd	.LC4(%rip), %xmm3
	xorl	%edx, %edx
	xorl	%eax, %eax
.L19:
	cvtsi2sdl	%eax, %xmm1
	movsd	h(%rip), %xmm0
	movaps	%xmm1, %xmm2
	mulsd	%xmm0, %xmm2
	mulsd	%xmm2, %xmm1
	mulsd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	addsd	%xmm3, %xmm0
	movsd	%xmm0, (%r8,%rdx)
	movsd	%xmm0, 4088(%r8,%rdx)
	movsd	%xmm0, (%r8,%rax,8)
	movsd	%xmm0, 2093056(%r8,%rax,8)
	movsd	%xmm0, (%rcx,%rdx)
	movsd	%xmm0, 4088(%rcx,%rdx)
	addq	$4096, %rdx
	movsd	%xmm0, (%rcx,%rax,8)
	movsd	%xmm0, 2093056(%rcx,%rax,8)
	incq	%rax
	cmpq	$512, %rax
	jne	.L19
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3770:
	.size	_Z4initv, .-_Z4initv
	.globl	_Z5finalv
	.type	_Z5finalv, @function
_Z5finalv:
.LFB3771:
	.cfi_startproc
	endbr64
	pushq	%rcx
	.cfi_def_cfa_offset 16
	movq	u(%rip), %rdi
	testq	%rdi, %rdi
	je	.L25
	call	_ZdaPv@PLT
.L25:
	movq	u_new(%rip), %rdi
	testq	%rdi, %rdi
	je	.L26
	call	_ZdaPv@PLT
.L26:
	movq	f(%rip), %rdi
	testq	%rdi, %rdi
	je	.L24
	popq	%rdx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	_ZdaPv@PLT
.L24:
	.cfi_restore_state
	popq	%rax
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3771:
	.size	_Z5finalv, .-_Z5finalv
	.globl	_Z11exact_solveii
	.type	_Z11exact_solveii, @function
_Z11exact_solveii:
.LFB3772:
	.cfi_startproc
	endbr64
	cvtsi2sdl	%edi, %xmm1
	movsd	h(%rip), %xmm0
	movsd	.LC4(%rip), %xmm3
	cvtsi2sdl	%esi, %xmm2
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm2
	movaps	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	subsd	%xmm1, %xmm0
	movaps	%xmm2, %xmm1
	mulsd	%xmm2, %xmm1
	addsd	%xmm3, %xmm0
	subsd	%xmm2, %xmm1
	addsd	%xmm3, %xmm1
	mulsd	%xmm1, %xmm0
	ret
	.cfi_endproc
.LFE3772:
	.size	_Z11exact_solveii, .-_Z11exact_solveii
	.section	.rodata.str1.1
.LC6:
	.string	"err: "
	.text
	.globl	_Z3errv
	.type	_Z3errv, @function
_Z3errv:
.LFB3773:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movq	u(%rip), %rax
	movl	$1, %ecx
	movq	.LC5(%rip), %xmm5
	movq	$0x000000000, 8(%rsp)
	leaq	4096(%rax), %rdx
.L37:
	movl	$1, %eax
.L39:
	movsd	(%rdx,%rax,8), %xmm4
	movl	%eax, %esi
	movl	%ecx, %edi
	incq	%rax
	call	_Z11exact_solveii
	subsd	%xmm0, %xmm4
	andps	%xmm5, %xmm4
	maxsd	8(%rsp), %xmm4
	movsd	%xmm4, 8(%rsp)
	cmpq	$511, %rax
	jne	.L39
	incl	%ecx
	addq	$4096, %rdx
	cmpl	$511, %ecx
	jne	.L37
	leaq	.LC6(%rip), %rsi
	leaq	_ZSt4cout(%rip), %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movsd	8(%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
	movsd	.LC7(%rip), %xmm0
	comisd	8(%rsp), %xmm0
	seta	%al
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3773:
	.size	_Z3errv, .-_Z3errv
	.globl	_Z16CalcTimeOfMethodPFvdEd
	.type	_Z16CalcTimeOfMethodPFvdEd, @function
_Z16CalcTimeOfMethodPFvdEd:
.LFB3778:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movsd	%xmm0, 8(%rsp)
	call	_Z4initv
	call	_Z8cudaInitv
	call	clock@PLT
	movsd	8(%rsp), %xmm0
	movq	%rax, %rbx
	call	*%rbp
	call	clock@PLT
	subq	%rbx, %rax
	cvtsi2sdq	%rax, %xmm0
	divsd	.LC8(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)
	call	_Z9cudaFinalv
	call	_Z5finalv
	movsd	8(%rsp), %xmm0
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3778:
	.size	_Z16CalcTimeOfMethodPFvdEd, .-_Z16CalcTimeOfMethodPFvdEd
	.section	.rodata.str1.1
.LC12:
	.string	"Time: "
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3779:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	_Z6jacobid(%rip), %rdi
	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
	leaq	.LC12(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	_Z5relaxd(%rip), %rbx
	pushq	%rax
	.cfi_def_cfa_offset 64
	movsd	.LC9(%rip), %xmm0
	call	_Z16CalcTimeOfMethodPFvdEd
	movq	%rbx, %rdi
	movq	%xmm0, %r14
	movsd	.LC9(%rip), %xmm0
	call	_Z16CalcTimeOfMethodPFvdEd
	movq	%rbx, %rdi
	movq	%xmm0, %r15
	movsd	.LC10(%rip), %xmm0
	call	_Z16CalcTimeOfMethodPFvdEd
	movq	%rbx, %rdi
	leaq	_ZSt4cout(%rip), %rbx
	movq	%xmm0, %r12
	movsd	.LC11(%rip), %xmm0
	call	_Z16CalcTimeOfMethodPFvdEd
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%xmm0, %r13
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r14, %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	%rbp, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r15, %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	%rbp, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r12, %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	%rbp, %rsi
	movq	%rbx, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%r13, %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
	popq	%rdx
	.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
.LFE3779:
	.size	main, .-main
	.text
	.globl	_Z31__device_stub__Z8relax_cuPdS_ddPdS_dd
	.type	_Z31__device_stub__Z8relax_cuPdS_ddPdS_dd, @function
_Z31__device_stub__Z8relax_cuPdS_ddPdS_dd:
.LFB3804:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	40(%rsp), %rdx
	movq	%rsi, 16(%rsp)
	leaq	56(%rsp), %rdi
	leaq	68(%rsp), %rsi
	movsd	%xmm0, 8(%rsp)
	movsd	%xmm1, (%rsp)
	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	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%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	.L48
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z8relax_cuPdS_dd(%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
.L48:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3804:
	.size	_Z31__device_stub__Z8relax_cuPdS_ddPdS_dd, .-_Z31__device_stub__Z8relax_cuPdS_ddPdS_dd
	.globl	_Z8relax_cuPdS_dd
	.type	_Z8relax_cuPdS_dd, @function
_Z8relax_cuPdS_dd:
.LFB3805:
	.cfi_startproc
	endbr64
	jmp	_Z31__device_stub__Z8relax_cuPdS_ddPdS_dd
	.cfi_endproc
.LFE3805:
	.size	_Z8relax_cuPdS_dd, .-_Z8relax_cuPdS_dd
	.globl	_Z5relaxd
	.type	_Z5relaxd, @function
_Z5relaxd:
.LFB3776:
	.cfi_startproc
	endbr64
	movabsq	$137438953504, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%xmm0, %r14
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	_ZSt4cout(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%rax, 8(%rsp)
	movabsq	$68719476752, %rax
	movl	$1, 16(%rsp)
	movq	%rax, 20(%rsp)
	movl	$1, 28(%rsp)
.L56:
	movl	28(%rsp), %ecx
	movq	20(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	8(%rsp), %rdi
	movl	16(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L54
	movsd	h(%rip), %xmm0
	movq	devF(%rip), %rsi
	movq	%r14, %xmm1
	movq	devU(%rip), %rdi
	mulsd	%xmm0, %xmm0
	call	_Z31__device_stub__Z8relax_cuPdS_ddPdS_dd
.L54:
	movl	%ebx, %eax
	movl	$100, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L55
.L57:
	incl	%ebx
	jmp	.L56
.L55:
	movl	%ebx, %esi
	movq	%rbp, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movslq	numberOfBytes(%rip), %rdx
	movl	$2, %ecx
	movq	devU(%rip), %rsi
	movq	u(%rip), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	call	_Z3errv
	testb	%al, %al
	je	.L57
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3776:
	.size	_Z5relaxd, .-_Z5relaxd
	.globl	_Z34__device_stub__Z9relax_cu2PdS_S_ddPdS_S_dd
	.type	_Z34__device_stub__Z9relax_cu2PdS_S_ddPdS_S_dd, @function
_Z34__device_stub__Z9relax_cu2PdS_S_ddPdS_S_dd:
.LFB3806:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	56(%rsp), %rcx
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movsd	%xmm0, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rax
	movl	$1, 72(%rsp)
	movq	%rax, 112(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 136(%rsp)
	leaq	8(%rsp), %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 64(%rsp)
	movq	%rax, 76(%rsp)
	movl	$1, 84(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L62
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z9relax_cu2PdS_S_dd(%rip), %rdi
	pushq	56(%rsp)
	.cfi_def_cfa_offset 192
	movq	92(%rsp), %rcx
	movl	100(%rsp), %r8d
	movq	80(%rsp), %rsi
	movl	88(%rsp), %edx
	leaq	128(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L62:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3806:
	.size	_Z34__device_stub__Z9relax_cu2PdS_S_ddPdS_S_dd, .-_Z34__device_stub__Z9relax_cu2PdS_S_ddPdS_S_dd
	.globl	_Z9relax_cu2PdS_S_dd
	.type	_Z9relax_cu2PdS_S_dd, @function
_Z9relax_cu2PdS_S_dd:
.LFB3807:
	.cfi_startproc
	endbr64
	jmp	_Z34__device_stub__Z9relax_cu2PdS_S_ddPdS_S_dd
	.cfi_endproc
.LFE3807:
	.size	_Z9relax_cu2PdS_S_dd, .-_Z9relax_cu2PdS_S_dd
	.globl	_Z6relax2d
	.type	_Z6relax2d, @function
_Z6relax2d:
.LFB3777:
	.cfi_startproc
	endbr64
	movabsq	$137438953504, %rax
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movq	%xmm0, %r14
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	_ZSt4cout(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%rax, 8(%rsp)
	movabsq	$68719476752, %rax
	movl	$1, 16(%rsp)
	movq	%rax, 20(%rsp)
	movl	$1, 28(%rsp)
.L70:
	movl	28(%rsp), %ecx
	movq	20(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	8(%rsp), %rdi
	movl	16(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L68
	movsd	h(%rip), %xmm0
	movq	devF(%rip), %rdx
	movq	%r14, %xmm1
	movq	devU_new(%rip), %rsi
	movq	devU(%rip), %rdi
	mulsd	%xmm0, %xmm0
	call	_Z34__device_stub__Z9relax_cu2PdS_S_ddPdS_S_dd
.L68:
	movl	%ebx, %eax
	movl	$10000, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L69
.L71:
	incl	%ebx
	jmp	.L70
.L69:
	movq	devU_new(%rip), %rdx
	movq	devU(%rip), %rax
	movl	%ebx, %esi
	movq	%rbp, %rdi
	movq	%rdx, devU(%rip)
	movq	%rax, devU_new(%rip)
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	movslq	numberOfBytes(%rip), %rdx
	movl	$2, %ecx
	movq	devU(%rip), %rsi
	movq	u(%rip), %rdi
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	call	_Z3errv
	testb	%al, %al
	je	.L71
	addq	$32, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3777:
	.size	_Z6relax2d, .-_Z6relax2d
	.globl	_Z33__device_stub__Z9jacobi_cuPdS_S_dPdS_S_d
	.type	_Z33__device_stub__Z9jacobi_cuPdS_S_dPdS_S_d, @function
_Z33__device_stub__Z9jacobi_cuPdS_S_dPdS_S_d:
.LFB3808:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movsd	%xmm0, (%rsp)
	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	8(%rsp), %rax
	movq	%rax, 120(%rsp)
	movq	%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	.L76
	pushq	48(%rsp)
	.cfi_def_cfa_offset 168
	leaq	_Z9jacobi_cuPdS_S_d(%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
.L76:
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	addq	$152, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3808:
	.size	_Z33__device_stub__Z9jacobi_cuPdS_S_dPdS_S_d, .-_Z33__device_stub__Z9jacobi_cuPdS_S_dPdS_S_d
	.globl	_Z9jacobi_cuPdS_S_d
	.type	_Z9jacobi_cuPdS_S_d, @function
_Z9jacobi_cuPdS_S_d:
.LFB3809:
	.cfi_startproc
	endbr64
	jmp	_Z33__device_stub__Z9jacobi_cuPdS_S_dPdS_S_d
	.cfi_endproc
.LFE3809:
	.size	_Z9jacobi_cuPdS_S_d, .-_Z9jacobi_cuPdS_S_d
	.globl	_Z6jacobid
	.type	_Z6jacobid, @function
_Z6jacobid:
.LFB3775:
	.cfi_startproc
	endbr64
	movabsq	$137438953504, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	_ZSt4cout(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xorl	%ebx, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%rax, 8(%rsp)
	movabsq	$68719476752, %rax
	movl	$1, 16(%rsp)
	movq	%rax, 20(%rsp)
	movl	$1, 28(%rsp)
.L84:
	movl	28(%rsp), %ecx
	movq	20(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	8(%rsp), %rdi
	movl	16(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L82
	movsd	h(%rip), %xmm0
	movq	devF(%rip), %rdx
	movq	devU_new(%rip), %rsi
	movq	devU(%rip), %rdi
	mulsd	%xmm0, %xmm0
	call	_Z33__device_stub__Z9jacobi_cuPdS_S_dPdS_S_d
.L82:
	movq	devU(%rip), %rax
	movq	devU_new(%rip), %rsi
	movl	$10000, %ecx
	movq	%rax, devU_new(%rip)
	movl	%ebx, %eax
	cltd
	movq	%rsi, devU(%rip)
	idivl	%ecx
	testl	%edx, %edx
	je	.L83
.L85:
	incl	%ebx
	jmp	.L84
.L83:
	movslq	numberOfBytes(%rip), %rdx
	movq	u(%rip), %rdi
	movl	$2, %ecx
	call	cudaMemcpy@PLT
	movl	%eax, %edi
	call	_Z8err_cuda9cudaError
	movl	%ebx, %esi
	movq	%rbp, %rdi
	call	_ZNSolsEi@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
	call	_Z3errv
	testb	%al, %al
	je	.L85
	addq	$40, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3775:
	.size	_Z6jacobid, .-_Z6jacobid
	.section	.rodata.str1.1
.LC13:
	.string	"_Z9jacobi_cuPdS_S_d"
.LC14:
	.string	"_Z9relax_cu2PdS_S_dd"
.LC15:
	.string	"_Z8relax_cuPdS_dd"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3811:
	.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	.LC13(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z9jacobi_cuPdS_S_d(%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	.LC14(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z9relax_cu2PdS_S_dd(%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	.LC15(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z8relax_cuPdS_dd(%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
.LFE3811:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1
.LC16:
	.string	" "
	.text
	.globl	_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, @function
_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
.LFB3774:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3774
	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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$536, %rsp
	.cfi_def_cfa_offset 592
	movq	%fs:40, %rax
	movq	%rax, 520(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rbx
	movq	%rbx, %rdi
.LEHB0:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE0:
	movq	0(%rbp), %rsi
	movl	$16, %edx
	movq	%rbx, %rdi
.LEHB1:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	xorl	%ebp, %ebp
	leaq	.LC16(%rip), %r14
.L93:
	movq	%rbp, %r13
	movl	%ebp, %r15d
	xorl	%r12d, %r12d
	salq	$12, %r13
.L94:
	cvtsi2sdl	%r15d, %xmm0
	mulsd	h(%rip), %xmm0
	movq	%rbx, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r14, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	cvtsi2sdl	%r12d, %xmm0
	mulsd	h(%rip), %xmm0
	movq	%rax, %rdi
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movq	%r14, %rsi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	movq	u(%rip), %rax
	movsd	(%rax,%r13), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	call	_ZNSolsEPFRSoS_E.isra.0
.LEHE1:
	incl	%r12d
	addq	$8, %r13
	cmpl	$512, %r12d
	jne	.L94
	incq	%rbp
	cmpq	$512, %rbp
	jne	.L93
	movq	%rbx, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	je	.L98
	jmp	.L103
.L100:
	endbr64
	movq	%rax, %rbp
.L96:
	movq	%rbx, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L103
	movq	%rbp, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L103:
	call	__stack_chk_fail@PLT
.L98:
	addq	$536, %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
.LFE3774:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3774:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3774-.LLSDACSB3774
.LLSDACSB3774:
	.uleb128 .LEHB0-.LFB3774
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3774
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L100-.LFB3774
	.uleb128 0
	.uleb128 .LEHB2-.LFB3774
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE3774:
	.text
	.size	_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .-_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.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
	.globl	numberOfBytes
	.bss
	.align 4
	.type	numberOfBytes, @object
	.size	numberOfBytes, 4
numberOfBytes:
	.zero	4
	.globl	h
	.align 8
	.type	h, @object
	.size	h, 8
h:
	.zero	8
	.globl	f
	.align 8
	.type	f, @object
	.size	f, 8
f:
	.zero	8
	.globl	u_new
	.align 8
	.type	u_new, @object
	.size	u_new, 8
u_new:
	.zero	8
	.globl	u
	.align 8
	.type	u, @object
	.size	u, 8
u:
	.zero	8
	.globl	devF
	.align 8
	.type	devF, @object
	.size	devF, 8
devF:
	.zero	8
	.globl	devU_new
	.align 8
	.type	devU_new, @object
	.size	devU_new, 8
devU_new:
	.zero	8
	.globl	devU
	.align 8
	.type	devU, @object
	.size	devU, 8
devU:
	.zero	8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1074790400
	.align 8
.LC2:
	.long	0
	.long	1063256064
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC5:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC7:
	.long	1202590843
	.long	1064598241
	.align 8
.LC8:
	.long	0
	.long	1093567616
	.align 8
.LC9:
	.long	0
	.long	1070596096
	.align 8
.LC10:
	.long	1889785610
	.long	1070008893
	.align 8
.LC11:
	.long	1374389535
	.long	1070931640
	.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:

﻿
#include <hip/hip_runtime.h>
#include <iostream>
#include <fstream>
#include <cmath>

#define N 512
#define THREADS 32
#define BLOCKS 16
#define eps 0.005

using namespace std;


double *devU,*devU_new,*devF;
double *u,*u_new,*f;
double h;
int numberOfBytes;
	
	
double f1(int i,int j)
{
	double x=(double)i*h;
	double y=(double)j*h;
	return 4.0+2.0*x*x-2.0*x+2.0*y*y-2.0*y;
}

__global__ void relax_cu(double *u,double *f,double h2,double relax_param)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
int j = blockIdx.y*blockDim.y + threadIdx.y;
if(i>0 && i<N-1 &&j>0 && j<N-1)
            u[i*N+j]=relax_param*(u[(i-1)*N+j]+u[(i+1)*N+j]+u[i*N+j-1]+u[i*N+j+1]-h2*f[i*N+j])+(1-relax_param*4)*u[i*N+j];
}

__global__ void relax_cu2(double *u,double *u_new,double *f,double h2,double relax_param)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
int j = blockIdx.y*blockDim.y + threadIdx.y;
if(i>0 && i<N-1 &&j>0 && j<N-1)
            u_new[i*N+j]=relax_param*(u_new[(i-1)*N+j]+u[(i+1)*N+j]+u_new[i*N+j-1]+u[i*N+j+1]-h2*f[i*N+j])+(1-relax_param*4)*u[i*N+j];
}

__global__ void jacobi_cu(double *cu,double *cu_new,double *f,double h2)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
int j = blockIdx.y*blockDim.y + threadIdx.y;
if(i>0 && i<N-1 &&j>0 && j<N-1)
            cu_new[i*N+j]=0.25*(cu[(i-1)*N+j]+cu[(i+1)*N+j]+cu[i*N+j-1]+cu[i*N+j+1]-h2*f[i*N+j]);
}

void err_cuda(hipError_t i)
{
if(i!=0){
	printf("Error: %i\t%s\n",i,hipGetErrorString(i));
	exit(-1);
}
}

void cudaInit()
{
	err_cuda(hipMalloc((void**)&devU,numberOfBytes));
	err_cuda(hipMalloc((void**)&devU_new,numberOfBytes));
	err_cuda(hipMalloc((void**)&devF,numberOfBytes));
	err_cuda(hipMemcpy(devU,u,numberOfBytes,hipMemcpyHostToDevice));
	err_cuda(hipMemcpy(devF,f,numberOfBytes,hipMemcpyHostToDevice));
	err_cuda(hipMemcpy(devU_new,u_new,numberOfBytes,hipMemcpyHostToDevice));
}

void cudaFinal()
{
	err_cuda(hipFree(devU));
	err_cuda(hipFree(devU_new));
	err_cuda(hipFree(devF));
	
}

void init()
{	
	h=1.0/N;
	numberOfBytes=sizeof(double)*N*N;
	u=new double[numberOfBytes];
	u_new=new double[numberOfBytes];
	f=new double[numberOfBytes];
	
	for(int i=0;i<N;i++)
	{
		for(int j=0;j<N;j++)
		{
			u[i*N+j]=0;
			u_new[i*N+j]=0;
			f[i*N+j]=f1(i,j);
		}
	}
	
	double tmp;
	for(int i=0;i<N;i++)
	{
		tmp=(double)i*h*(double)i*h-(double)i*h+1;
		u[i*N]=tmp;
		u[i*N+N-1]=tmp;
		u[i]=tmp;
		u[(N-1)*N+i]=tmp;
		
		u_new[i*N]=tmp;
		u_new[i*N+N-1]=tmp;
		u_new[i]=tmp;
		u_new[(N-1)*N+i]=tmp;
	}
}

void final()
{
	delete[] u;
	delete[] u_new;
	delete[] f;
}

double exact_solve(int i,int j)
{
	double x=(double)i*h;
	double y=(double)j*h;
	double res=(x*x-x+1.0)*(y*y-y+1.0);
	return res;
}

bool err()
{
	double max=0;
	double tmp;
	for(int i=1;i<N-1;i++)
		for(int j=1;j<N-1;j++)
		{
			tmp=fabs(u[i*N+j]-exact_solve(i,j));
			if(tmp>max)max=tmp;
		}
		cout<<"err: "<<max<<endl;
		if(max<eps)return true;
		return false;

}

void writeToFile(string fname)
{
	ofstream output_file;
	output_file.open(fname.c_str(),std::ofstream::out);
	
	for(int i=0;i<N;i++)
		for(int j=0;j<N;j++)
		{
			output_file<<(double)i*h <<" "<<(double)j*h<<" "<<u[i*N+j]<<endl;
		}
}

void jacobi(double param)
{
	dim3 threads = dim3(THREADS, THREADS,1);
	dim3 blocks  = dim3(BLOCKS, BLOCKS,1);
	
	for(int i=0;;i++)
	{
    	    jacobi_cu<<<threads,blocks,0>>>(devU,devU_new,devF,h*h);
			double *tmp=devU;
			devU=devU_new;
			devU_new=tmp;
			if(i%10000==0)
			{
				err_cuda(hipMemcpy(u,devU,numberOfBytes,hipMemcpyDeviceToHost));				
				cout<<i<<endl;
				if(err())break;
			}
			
	}
}

void relax(double param)
{
	dim3 threads = dim3(THREADS, THREADS,1);
	dim3 blocks  = dim3(BLOCKS, BLOCKS,1);
	
	for(int i=0;;i++)
	{
    	    relax_cu<<<threads,blocks,0>>>(devU,devF,h*h,param);			
			if(i%100==0)
			{
				cout<<i<<endl;
				err_cuda(hipMemcpy(u,devU,numberOfBytes,hipMemcpyDeviceToHost));
				
				if(err())break;
			}
			
	}
}

void relax2(double param)
{
	dim3 threads = dim3(THREADS, THREADS,1);
	dim3 blocks  = dim3(BLOCKS, BLOCKS,1);
	
	for(int i=0;;i++)
	{
    	    relax_cu2<<<threads,blocks,0>>>(devU,devU_new,devF,h*h,param);			
			if(i%10000==0)
			{
				double *tmp=devU;
				devU=devU_new;
				devU_new=tmp;
				cout<<i<<endl;
				err_cuda(hipMemcpy(u,devU,numberOfBytes,hipMemcpyDeviceToHost));				
				if(err())break;
			}
			
	}
}

double CalcTimeOfMethod(void (*method)(double),double param)
{
	init();
	cudaInit();	
	
	clock_t start=clock();
	method(param);
	double time=(double)(clock()-start)/CLOCKS_PER_SEC;
	
	//writeToFile("output2.dat");
	
	cudaFinal();
	final();
	return time;
}

int main(int argc, char* argv[])
{	
	double t1=CalcTimeOfMethod(&jacobi,0.25);
	double t2=CalcTimeOfMethod(&relax,0.25);
	double t3=CalcTimeOfMethod(&relax,0.18);
	double t4=CalcTimeOfMethod(&relax,0.33);
	cout<<"Time: "<<t1<<endl;
	cout<<"Time: "<<t2<<endl;
	cout<<"Time: "<<t3<<endl;
	cout<<"Time: "<<t4<<endl;
	return 0;
	
}
	.text
	.file	"dirihle.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z2f1ii
.LCPI0_0:
	.quad	0x4010000000000000              # double 4
	.text
	.globl	_Z2f1ii
	.type	_Z2f1ii,@function
_Z2f1ii:                                # @_Z2f1ii
	.cfi_startproc
# %bb.0:
	cvtsi2sd	%edi, %xmm1
	movsd	h(%rip), %xmm2                  # xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm1
	cvtsi2sd	%esi, %xmm0
	movapd	%xmm1, %xmm3
	addsd	%xmm1, %xmm3
	mulsd	%xmm3, %xmm1
	addsd	.LCPI0_0(%rip), %xmm1
	mulsd	%xmm2, %xmm0
	subsd	%xmm3, %xmm1
	movapd	%xmm0, %xmm2
	addsd	%xmm0, %xmm2
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	subsd	%xmm2, %xmm0
	retq
.Lfunc_end0:
	.size	_Z2f1ii, .Lfunc_end0-_Z2f1ii
	.cfi_endproc
                                        # -- End function
	.globl	_Z23__device_stub__relax_cuPdS_dd # -- Begin function _Z23__device_stub__relax_cuPdS_dd
	.type	_Z23__device_stub__relax_cuPdS_dd,@function
_Z23__device_stub__relax_cuPdS_dd:      # @_Z23__device_stub__relax_cuPdS_dd
	.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), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	16(%rsp), %rsi
	movsd	%xmm1, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rdx, 16(%rbx)
	movq	%rsi, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z8relax_cuPdS_dd, %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_end1:
	.size	_Z23__device_stub__relax_cuPdS_dd, .Lfunc_end1-_Z23__device_stub__relax_cuPdS_dd
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__relax_cu2PdS_S_dd # -- Begin function _Z24__device_stub__relax_cu2PdS_S_dd
	.type	_Z24__device_stub__relax_cu2PdS_S_dd,@function
_Z24__device_stub__relax_cu2PdS_S_dd:   # @_Z24__device_stub__relax_cu2PdS_S_dd
	.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), %rcx
	movq	%rsi, (%rcx)
	leaq	40(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	32(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	24(%rsp), %rdi
	movsd	%xmm1, (%rdi)
	leaq	96(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rdi, 32(%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	$_Z9relax_cu2PdS_S_dd, %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_end2:
	.size	_Z24__device_stub__relax_cu2PdS_S_dd, .Lfunc_end2-_Z24__device_stub__relax_cu2PdS_S_dd
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__jacobi_cuPdS_S_d # -- Begin function _Z24__device_stub__jacobi_cuPdS_S_d
	.type	_Z24__device_stub__jacobi_cuPdS_S_d,@function
_Z24__device_stub__jacobi_cuPdS_S_d:    # @_Z24__device_stub__jacobi_cuPdS_S_d
	.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), %rcx
	movq	%rsi, (%rcx)
	leaq	24(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	16(%rsp), %rdx
	movsd	%xmm0, (%rdx)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	8(%rsp), %r12
	movq	%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	$_Z9jacobi_cuPdS_S_d, %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_end3:
	.size	_Z24__device_stub__jacobi_cuPdS_S_d, .Lfunc_end3-_Z24__device_stub__jacobi_cuPdS_S_d
	.cfi_endproc
                                        # -- End function
	.globl	_Z8err_cuda10hipError_t         # -- Begin function _Z8err_cuda10hipError_t
	.type	_Z8err_cuda10hipError_t,@function
_Z8err_cuda10hipError_t:                # @_Z8err_cuda10hipError_t
	.cfi_startproc
# %bb.0:
	testl	%edi, %edi
	jne	.LBB4_2
# %bb.1:
	retq
.LBB4_2:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movl	%edi, %ebx
	callq	hipGetErrorString
	movl	$.L.str, %edi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	printf
	movl	$-1, %edi
	callq	exit
.Lfunc_end4:
	.size	_Z8err_cuda10hipError_t, .Lfunc_end4-_Z8err_cuda10hipError_t
	.cfi_endproc
                                        # -- End function
	.globl	_Z8cudaInitv                    # -- Begin function _Z8cudaInitv
	.type	_Z8cudaInitv,@function
_Z8cudaInitv:                           # @_Z8cudaInitv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movslq	numberOfBytes(%rip), %rsi
	movl	$devU, %edi
	callq	hipMalloc
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	movslq	numberOfBytes(%rip), %rsi
	movl	$devU_new, %edi
	callq	hipMalloc
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	movslq	numberOfBytes(%rip), %rsi
	movl	$devF, %edi
	callq	hipMalloc
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	movq	devU(%rip), %rdi
	movq	u(%rip), %rsi
	movslq	numberOfBytes(%rip), %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	movq	devF(%rip), %rdi
	movq	f(%rip), %rsi
	movslq	numberOfBytes(%rip), %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	movq	devU_new(%rip), %rdi
	movq	u_new(%rip), %rsi
	movslq	numberOfBytes(%rip), %rdx
	movl	$1, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Z8err_cuda10hipError_t         # TAILCALL
.Lfunc_end5:
	.size	_Z8cudaInitv, .Lfunc_end5-_Z8cudaInitv
	.cfi_endproc
                                        # -- End function
	.globl	_Z9cudaFinalv                   # -- Begin function _Z9cudaFinalv
	.type	_Z9cudaFinalv,@function
_Z9cudaFinalv:                          # @_Z9cudaFinalv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	devU(%rip), %rdi
	callq	hipFree
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	movq	devU_new(%rip), %rdi
	callq	hipFree
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	movq	devF(%rip), %rdi
	callq	hipFree
	movl	%eax, %edi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Z8err_cuda10hipError_t         # TAILCALL
.Lfunc_end6:
	.size	_Z9cudaFinalv, .Lfunc_end6-_Z9cudaFinalv
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z4initv
.LCPI7_0:
	.quad	0x3f60000000000000              # double 0.001953125
.LCPI7_1:
	.quad	0x4010000000000000              # double 4
.LCPI7_2:
	.quad	0x3ff0000000000000              # double 1
	.text
	.globl	_Z4initv
	.type	_Z4initv,@function
_Z4initv:                               # @_Z4initv
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.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 %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movabsq	$4566650022153682944, %rax      # imm = 0x3F60000000000000
	movq	%rax, h(%rip)
	movl	$2097152, numberOfBytes(%rip)   # imm = 0x200000
	movl	$16777216, %edi                 # imm = 0x1000000
	callq	_Znam
	movq	%rax, %rbx
	movq	%rax, u(%rip)
	movl	$16777216, %edi                 # imm = 0x1000000
	callq	_Znam
	movq	%rax, %r14
	movq	%rax, u_new(%rip)
	movl	$16777216, %edi                 # imm = 0x1000000
	callq	_Znam
	movq	%rax, %r15
	movq	%rax, f(%rip)
	xorl	%r12d, %r12d
	movl	$2097152, %edx                  # imm = 0x200000
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movl	$2097152, %edx                  # imm = 0x200000
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
	movsd	.LCPI7_0(%rip), %xmm0           # xmm0 = mem[0],zero
	movsd	.LCPI7_1(%rip), %xmm1           # xmm1 = mem[0],zero
.LBB7_1:                                # %.preheader34
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB7_2 Depth 2
	xorps	%xmm2, %xmm2
	cvtsi2sd	%r12d, %xmm2
	mulsd	%xmm0, %xmm2
	movapd	%xmm2, %xmm3
	addsd	%xmm2, %xmm3
	mulsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm2
	subsd	%xmm3, %xmm2
	xorl	%eax, %eax
.LBB7_2:                                #   Parent Loop BB7_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorps	%xmm3, %xmm3
	cvtsi2sd	%eax, %xmm3
	mulsd	%xmm0, %xmm3
	movapd	%xmm3, %xmm4
	addsd	%xmm3, %xmm4
	mulsd	%xmm4, %xmm3
	addsd	%xmm2, %xmm3
	subsd	%xmm4, %xmm3
	movsd	%xmm3, (%r15,%rax,8)
	incq	%rax
	cmpq	$512, %rax                      # imm = 0x200
	jne	.LBB7_2
# %bb.3:                                #   in Loop: Header=BB7_1 Depth=1
	incq	%r12
	addq	$4096, %r15                     # imm = 0x1000
	cmpq	$512, %r12                      # imm = 0x200
	jne	.LBB7_1
# %bb.4:                                # %.preheader.preheader
	xorl	%eax, %eax
	movsd	.LCPI7_2(%rip), %xmm1           # xmm1 = mem[0],zero
	xorl	%ecx, %ecx
.LBB7_5:                                # %.preheader
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm2, %xmm2
	cvtsi2sd	%ecx, %xmm2
	movapd	%xmm2, %xmm3
	mulsd	%xmm0, %xmm3
	mulsd	%xmm3, %xmm2
	mulsd	%xmm0, %xmm2
	subsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm2
	movsd	%xmm2, (%rbx,%rax)
	movsd	%xmm2, 4088(%rbx,%rax)
	movsd	%xmm2, (%rbx,%rcx,8)
	movsd	%xmm2, 2093056(%rbx,%rcx,8)
	movsd	%xmm2, (%r14,%rax)
	movsd	%xmm2, 4088(%r14,%rax)
	movsd	%xmm2, (%r14,%rcx,8)
	movsd	%xmm2, 2093056(%r14,%rcx,8)
	incq	%rcx
	addq	$4096, %rax                     # imm = 0x1000
	cmpq	$512, %rcx                      # imm = 0x200
	jne	.LBB7_5
# %bb.6:
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z4initv, .Lfunc_end7-_Z4initv
	.cfi_endproc
                                        # -- End function
	.globl	_Z5finalv                       # -- Begin function _Z5finalv
	.type	_Z5finalv,@function
_Z5finalv:                              # @_Z5finalv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	u(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB8_2
# %bb.1:
	callq	_ZdaPv
.LBB8_2:
	movq	u_new(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB8_4
# %bb.3:
	callq	_ZdaPv
.LBB8_4:
	movq	f(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB8_5
# %bb.6:
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_ZdaPv                          # TAILCALL
.LBB8_5:
	.cfi_def_cfa_offset 16
	popq	%rax
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z5finalv, .Lfunc_end8-_Z5finalv
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z11exact_solveii
.LCPI9_0:
	.quad	0x3ff0000000000000              # double 1
	.text
	.globl	_Z11exact_solveii
	.type	_Z11exact_solveii,@function
_Z11exact_solveii:                      # @_Z11exact_solveii
	.cfi_startproc
# %bb.0:
	cvtsi2sd	%edi, %xmm0
	movsd	h(%rip), %xmm1                  # xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	cvtsi2sd	%esi, %xmm2
	mulsd	%xmm1, %xmm2
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	subsd	%xmm0, %xmm1
	movsd	.LCPI9_0(%rip), %xmm3           # xmm3 = mem[0],zero
	addsd	%xmm3, %xmm1
	movapd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	subsd	%xmm2, %xmm0
	addsd	%xmm3, %xmm0
	mulsd	%xmm1, %xmm0
	retq
.Lfunc_end9:
	.size	_Z11exact_solveii, .Lfunc_end9-_Z11exact_solveii
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z3errv
.LCPI10_0:
	.quad	0x3ff0000000000000              # double 1
.LCPI10_2:
	.quad	0x3f747ae147ae147b              # double 0.0050000000000000001
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0
.LCPI10_1:
	.quad	0x7fffffffffffffff              # double NaN
	.quad	0x7fffffffffffffff              # double NaN
	.text
	.globl	_Z3errv
	.type	_Z3errv,@function
_Z3errv:                                # @_Z3errv
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -16
	movsd	h(%rip), %xmm0                  # xmm0 = mem[0],zero
	movl	$4104, %eax                     # imm = 0x1008
	addq	u(%rip), %rax
	xorpd	%xmm7, %xmm7
	movl	$1, %ecx
	movsd	.LCPI10_0(%rip), %xmm1          # xmm1 = mem[0],zero
	movapd	.LCPI10_1(%rip), %xmm2          # xmm2 = [NaN,NaN]
.LBB10_1:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB10_2 Depth 2
	xorps	%xmm4, %xmm4
	cvtsi2sd	%ecx, %xmm4
	mulsd	%xmm0, %xmm4
	movapd	%xmm4, %xmm3
	mulsd	%xmm4, %xmm3
	subsd	%xmm4, %xmm3
	addsd	%xmm1, %xmm3
	xorl	%edx, %edx
.LBB10_2:                               #   Parent Loop BB10_1 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movapd	%xmm7, %xmm4
	movsd	(%rax,%rdx,8), %xmm7            # xmm7 = mem[0],zero
	incq	%rdx
	xorps	%xmm5, %xmm5
	cvtsi2sd	%edx, %xmm5
	mulsd	%xmm0, %xmm5
	movapd	%xmm5, %xmm6
	mulsd	%xmm5, %xmm6
	subsd	%xmm5, %xmm6
	addsd	%xmm1, %xmm6
	mulsd	%xmm3, %xmm6
	subsd	%xmm6, %xmm7
	andpd	%xmm2, %xmm7
	maxsd	%xmm4, %xmm7
	cmpq	$510, %rdx                      # imm = 0x1FE
	jne	.LBB10_2
# %bb.3:                                #   in Loop: Header=BB10_1 Depth=1
	incq	%rcx
	addq	$4096, %rax                     # imm = 0x1000
	cmpq	$511, %rcx                      # imm = 0x1FF
	jne	.LBB10_1
# %bb.4:
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$5, %edx
	movapd	%xmm7, (%rsp)                   # 16-byte Spill
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movaps	(%rsp), %xmm0                   # 16-byte Reload
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movsd	.LCPI10_2(%rip), %xmm0          # xmm0 = mem[0],zero
	ucomisd	(%rsp), %xmm0                   # 16-byte Folded Reload
	seta	%al
	addq	$16, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z3errv, .Lfunc_end10-_Z3errv
	.cfi_endproc
                                        # -- End function
	.globl	_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE # -- Begin function _Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.type	_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE,@function
_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: # @_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %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	$528, %rsp                      # imm = 0x210
	.cfi_def_cfa_offset 576
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	leaq	16(%rsp), %r14
	movq	%r14, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
	movq	(%rbx), %rsi
.Ltmp0:
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.1:                                # %.preheader.preheader
	xorl	%r15d, %r15d
	leaq	16(%rsp), %rbx
	xorl	%r12d, %r12d
.LBB11_2:                               # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB11_3 Depth 2
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	xorl	%r13d, %r13d
.LBB11_3:                               #   Parent Loop BB11_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	h(%rip), %xmm0                  # xmm0 = mem[0],zero
	mulsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
.Ltmp3:
	movq	%rbx, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp4:
# %bb.4:                                # %_ZNSolsEd.exit
                                        #   in Loop: Header=BB11_3 Depth=2
.Ltmp5:
	movq	%rax, %r14
	movl	$.L.str.2, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp6:
# %bb.5:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB11_3 Depth=2
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r13d, %xmm0
	mulsd	h(%rip), %xmm0
.Ltmp7:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp8:
# %bb.6:                                # %_ZNSolsEd.exit13
                                        #   in Loop: Header=BB11_3 Depth=2
.Ltmp9:
	movq	%rax, %r14
	movl	$.L.str.2, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp10:
# %bb.7:                                # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit14
                                        #   in Loop: Header=BB11_3 Depth=2
	movq	u(%rip), %rax
	addq	%r15, %rax
	movsd	(%rax,%r13,8), %xmm0            # xmm0 = mem[0],zero
.Ltmp11:
	movq	%r14, %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp12:
# %bb.8:                                # %_ZNSolsEd.exit15
                                        #   in Loop: Header=BB11_3 Depth=2
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r14, %rdi
.Ltmp13:
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp14:
# %bb.9:                                # %.noexc
                                        #   in Loop: Header=BB11_3 Depth=2
.Ltmp15:
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_ZNSo3putEc
.Ltmp16:
# %bb.10:                               # %.noexc16
                                        #   in Loop: Header=BB11_3 Depth=2
.Ltmp17:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp18:
# %bb.11:                               # %_ZNSolsEPFRSoS_E.exit
                                        #   in Loop: Header=BB11_3 Depth=2
	incq	%r13
	cmpq	$512, %r13                      # imm = 0x200
	jne	.LBB11_3
# %bb.12:                               #   in Loop: Header=BB11_2 Depth=1
	incq	%r12
	addq	$4096, %r15                     # imm = 0x1000
	cmpq	$512, %r12                      # imm = 0x200
	jne	.LBB11_2
# %bb.13:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	24(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 16(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	264(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	addq	$528, %rsp                      # imm = 0x210
	.cfi_def_cfa_offset 48
	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
.LBB11_16:
	.cfi_def_cfa_offset 576
.Ltmp2:
	jmp	.LBB11_15
.LBB11_14:
.Ltmp19:
.LBB11_15:
	movq	%rax, %rbx
	leaq	16(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end11:
	.size	_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, .Lfunc_end11-_Z11writeToFileNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table11:
.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 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp18-.Ltmp3                 #   Call between .Ltmp3 and .Ltmp18
	.uleb128 .Ltmp19-.Lfunc_begin0          #     jumps to .Ltmp19
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp18-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Lfunc_end11-.Ltmp18           #   Call between .Ltmp18 and .Lfunc_end11
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.globl	_Z6jacobid                      # -- Begin function _Z6jacobid
	.type	_Z6jacobid,@function
_Z6jacobid:                             # @_Z6jacobid
	.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
	xorl	%r12d, %r12d
	movl	$3518437209, %r13d              # imm = 0xD1B71759
	movabsq	$137438953504, %rbx             # imm = 0x2000000020
	movabsq	$68719476752, %r14              # imm = 0x1000000010
	xorl	%ebp, %ebp
.LBB12_1:                               # =>This Inner Loop Header: 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	.LBB12_3
# %bb.2:                                #   in Loop: Header=BB12_1 Depth=1
	movq	devU(%rip), %rdi
	movq	devU_new(%rip), %rsi
	movq	devF(%rip), %rdx
	movsd	h(%rip), %xmm0                  # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm0
	callq	_Z24__device_stub__jacobi_cuPdS_S_d
.LBB12_3:                               #   in Loop: Header=BB12_1 Depth=1
	movq	devU(%rip), %rax
	movq	devU_new(%rip), %rsi
	movq	%rax, devU_new(%rip)
	movl	%ebp, %eax
	imulq	%r13, %rax
	shrq	$45, %rax
	imull	$10000, %eax, %eax              # imm = 0x2710
	movq	%rsi, devU(%rip)
	addl	%r12d, %eax
	jne	.LBB12_5
# %bb.4:                                #   in Loop: Header=BB12_1 Depth=1
	movq	u(%rip), %rdi
	movslq	numberOfBytes(%rip), %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	callq	_Z3errv
	testb	%al, %al
	jne	.LBB12_6
.LBB12_5:                               # %.critedge
                                        #   in Loop: Header=BB12_1 Depth=1
	incl	%ebp
	decl	%r12d
	jmp	.LBB12_1
.LBB12_6:
	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_end12:
	.size	_Z6jacobid, .Lfunc_end12-_Z6jacobid
	.cfi_endproc
                                        # -- End function
	.globl	_Z5relaxd                       # -- Begin function _Z5relaxd
	.type	_Z5relaxd,@function
_Z5relaxd:                              # @_Z5relaxd
	.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	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	xorl	%r12d, %r12d
	movabsq	$137438953504, %rbx             # imm = 0x2000000020
	movabsq	$68719476752, %r14              # imm = 0x1000000010
	xorl	%ebp, %ebp
.LBB13_1:                               # =>This Inner Loop Header: 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	.LBB13_3
# %bb.2:                                #   in Loop: Header=BB13_1 Depth=1
	movq	devU(%rip), %rdi
	movq	devF(%rip), %rsi
	movsd	h(%rip), %xmm0                  # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	callq	_Z23__device_stub__relax_cuPdS_dd
.LBB13_3:                               #   in Loop: Header=BB13_1 Depth=1
	movl	%ebp, %eax
	imulq	$1374389535, %rax, %rax         # imm = 0x51EB851F
	shrq	$37, %rax
	imull	$100, %eax, %eax
	addl	%r12d, %eax
	jne	.LBB13_6
# %bb.4:                                #   in Loop: Header=BB13_1 Depth=1
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	u(%rip), %rdi
	movq	devU(%rip), %rsi
	movslq	numberOfBytes(%rip), %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	callq	_Z3errv
	testb	%al, %al
	jne	.LBB13_5
.LBB13_6:                               #   in Loop: Header=BB13_1 Depth=1
	incl	%ebp
	decl	%r12d
	jmp	.LBB13_1
.LBB13_5:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.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_end13:
	.size	_Z5relaxd, .Lfunc_end13-_Z5relaxd
	.cfi_endproc
                                        # -- End function
	.globl	_Z6relax2d                      # -- Begin function _Z6relax2d
	.type	_Z6relax2d,@function
_Z6relax2d:                             # @_Z6relax2d
	.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
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	xorl	%r12d, %r12d
	movl	$3518437209, %r13d              # imm = 0xD1B71759
	movabsq	$137438953504, %rbx             # imm = 0x2000000020
	movabsq	$68719476752, %r14              # imm = 0x1000000010
	xorl	%ebp, %ebp
.LBB14_1:                               # =>This Inner Loop Header: 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	.LBB14_3
# %bb.2:                                #   in Loop: Header=BB14_1 Depth=1
	movq	devU(%rip), %rdi
	movq	devU_new(%rip), %rsi
	movq	devF(%rip), %rdx
	movsd	h(%rip), %xmm0                  # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm0
	movsd	(%rsp), %xmm1                   # 8-byte Reload
                                        # xmm1 = mem[0],zero
	callq	_Z24__device_stub__relax_cu2PdS_S_dd
.LBB14_3:                               #   in Loop: Header=BB14_1 Depth=1
	movl	%ebp, %eax
	imulq	%r13, %rax
	shrq	$45, %rax
	imull	$10000, %eax, %eax              # imm = 0x2710
	addl	%r12d, %eax
	jne	.LBB14_5
# %bb.4:                                #   in Loop: Header=BB14_1 Depth=1
	movq	devU(%rip), %rax
	movq	devU_new(%rip), %rcx
	movq	%rcx, devU(%rip)
	movq	%rax, devU_new(%rip)
	movl	$_ZSt4cout, %edi
	movl	%ebp, %esi
	callq	_ZNSolsEi
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%r15, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movq	u(%rip), %rdi
	movq	devU(%rip), %rsi
	movslq	numberOfBytes(%rip), %rdx
	movl	$2, %ecx
	callq	hipMemcpy
	movl	%eax, %edi
	callq	_Z8err_cuda10hipError_t
	callq	_Z3errv
	testb	%al, %al
	jne	.LBB14_6
.LBB14_5:                               #   in Loop: Header=BB14_1 Depth=1
	incl	%ebp
	decl	%r12d
	jmp	.LBB14_1
.LBB14_6:
	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_end14:
	.size	_Z6relax2d, .Lfunc_end14-_Z6relax2d
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z16CalcTimeOfMethodPFvdEd
.LCPI15_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	_Z16CalcTimeOfMethodPFvdEd
	.type	_Z16CalcTimeOfMethodPFvdEd,@function
_Z16CalcTimeOfMethodPFvdEd:             # @_Z16CalcTimeOfMethodPFvdEd
	.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
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	movq	%rdi, %rbx
	callq	_Z4initv
	callq	_Z8cudaInitv
	callq	clock
	movq	%rax, %r14
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	*%rbx
	callq	clock
	subq	%r14, %rax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI15_0(%rip), %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	callq	_Z9cudaFinalv
	callq	_Z5finalv
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end15:
	.size	_Z16CalcTimeOfMethodPFvdEd, .Lfunc_end15-_Z16CalcTimeOfMethodPFvdEd
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI16_0:
	.quad	0x3fd0000000000000              # double 0.25
.LCPI16_1:
	.quad	0x3fc70a3d70a3d70a              # double 0.17999999999999999
.LCPI16_2:
	.quad	0x3fd51eb851eb851f              # double 0.33000000000000002
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movsd	.LCPI16_0(%rip), %xmm0          # xmm0 = mem[0],zero
	movl	$_Z6jacobid, %edi
	callq	_Z16CalcTimeOfMethodPFvdEd
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	movl	$_Z5relaxd, %edi
	movsd	.LCPI16_0(%rip), %xmm0          # xmm0 = mem[0],zero
	callq	_Z16CalcTimeOfMethodPFvdEd
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movsd	.LCPI16_1(%rip), %xmm0          # xmm0 = mem[0],zero
	movl	$_Z5relaxd, %edi
	callq	_Z16CalcTimeOfMethodPFvdEd
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movsd	.LCPI16_2(%rip), %xmm0          # xmm0 = mem[0],zero
	movl	$_Z5relaxd, %edi
	callq	_Z16CalcTimeOfMethodPFvdEd
	movsd	%xmm0, 24(%rsp)                 # 8-byte Spill
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	16(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	movl	$_ZSt4cout, %edi
	movl	$.L.str.3, %esi
	movl	$6, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
	movl	$_ZSt4cout, %edi
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	_ZNSo9_M_insertIdEERSoT_
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	-24(%rax), %rdi
	addq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
	movsbl	%al, %esi
	movq	%rbx, %rdi
	callq	_ZNSo3putEc
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
	xorl	%eax, %eax
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end16:
	.size	main, .Lfunc_end16-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	.LBB17_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB17_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z8relax_cuPdS_dd, %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	$_Z9relax_cu2PdS_S_dd, %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	$_Z9jacobi_cuPdS_S_d, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %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_end17:
	.size	__hip_module_ctor, .Lfunc_end17-__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	.LBB18_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
.LBB18_2:
	retq
.Lfunc_end18:
	.size	__hip_module_dtor, .Lfunc_end18-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	devU,@object                    # @devU
	.bss
	.globl	devU
	.p2align	3, 0x0
devU:
	.quad	0
	.size	devU, 8

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

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

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

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

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

	.type	h,@object                       # @h
	.globl	h
	.p2align	3, 0x0
h:
	.quad	0x0000000000000000              # double 0
	.size	h, 8

	.type	numberOfBytes,@object           # @numberOfBytes
	.globl	numberOfBytes
	.p2align	2, 0x0
numberOfBytes:
	.long	0                               # 0x0
	.size	numberOfBytes, 4

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

	.type	_Z9relax_cu2PdS_S_dd,@object    # @_Z9relax_cu2PdS_S_dd
	.globl	_Z9relax_cu2PdS_S_dd
	.p2align	3, 0x0
_Z9relax_cu2PdS_S_dd:
	.quad	_Z24__device_stub__relax_cu2PdS_S_dd
	.size	_Z9relax_cu2PdS_S_dd, 8

	.type	_Z9jacobi_cuPdS_S_d,@object     # @_Z9jacobi_cuPdS_S_d
	.globl	_Z9jacobi_cuPdS_S_d
	.p2align	3, 0x0
_Z9jacobi_cuPdS_S_d:
	.quad	_Z24__device_stub__jacobi_cuPdS_S_d
	.size	_Z9jacobi_cuPdS_S_d, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Error: %i\t%s\n"
	.size	.L.str, 14

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"err: "
	.size	.L.str.1, 6

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

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z8relax_cuPdS_dd"
	.size	.L__unnamed_1, 18

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z9relax_cu2PdS_S_dd"
	.size	.L__unnamed_2, 21

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z9jacobi_cuPdS_S_d"
	.size	.L__unnamed_3, 20

	.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 _Z23__device_stub__relax_cuPdS_dd
	.addrsig_sym _Z24__device_stub__relax_cu2PdS_S_dd
	.addrsig_sym _Z24__device_stub__jacobi_cuPdS_S_d
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _Z6jacobid
	.addrsig_sym _Z5relaxd
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym devU
	.addrsig_sym devU_new
	.addrsig_sym devF
	.addrsig_sym _Z8relax_cuPdS_dd
	.addrsig_sym _Z9relax_cu2PdS_S_dd
	.addrsig_sym _Z9jacobi_cuPdS_S_d
	.addrsig_sym _ZSt4cout
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z8relax_cuPdS_dd       ; -- Begin function _Z8relax_cuPdS_dd
	.globl	_Z8relax_cuPdS_dd
	.p2align	8
	.type	_Z8relax_cuPdS_dd,@function
_Z8relax_cuPdS_dd:                      ; @_Z8relax_cuPdS_dd
; %bb.0:
	s_load_b32 s2, s[0:1], 0x2c
	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_mov_b32 s2, 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_u32_e32 v2, v2, v3
	v_cmpx_gt_u32_e32 0x1fe, v2
	s_cbranch_execz .LBB0_2
; %bb.1:
	s_load_b256 s[0:7], s[0:1], 0x0
	v_lshl_add_u32 v0, v0, 9, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_mov_b32 v2, 0 :: v_dual_add_nc_u32 v1, 0xfffffe00, v0
	v_lshlrev_b64 v[3:4], 3, v[1:2]
	v_add_nc_u32_e32 v1, 0x200, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[5:6], 3, v[1:2]
	v_mov_b32_e32 v1, v2
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v5, vcc_lo, s0, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s1, v6, vcc_lo
	v_lshlrev_b64 v[9:10], 3, v[0:1]
	s_clause 0x1
	global_load_b64 v[7:8], v[3:4], off
	global_load_b64 v[4:5], v[5:6], off
	v_add_co_u32 v11, vcc_lo, s0, v9
	v_add_co_ci_u32_e32 v12, vcc_lo, s1, v10, vcc_lo
	s_clause 0x1
	global_load_b128 v[0:3], v[11:12], off offset:-8
	global_load_b64 v[13:14], v[11:12], off offset:8
	v_add_co_u32 v9, vcc_lo, s2, v9
	v_add_co_ci_u32_e32 v10, vcc_lo, s3, v10, vcc_lo
	global_load_b64 v[9:10], v[9:10], off
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[7:8], v[4:5]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_2)
	v_add_f64 v[0:1], v[4:5], v[0:1]
	v_fma_f64 v[4:5], s[6:7], -4.0, 1.0
	s_waitcnt vmcnt(1)
	v_add_f64 v[0:1], v[0:1], v[13:14]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[0:1], -v[9:10], s[4:5], v[0:1]
	v_mul_f64 v[0:1], v[0:1], s[6:7]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[0:1], v[4:5], v[2:3], v[0:1]
	global_store_b64 v[11:12], v[0:1], off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z8relax_cuPdS_dd
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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 15
		.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_end0:
	.size	_Z8relax_cuPdS_dd, .Lfunc_end0-_Z8relax_cuPdS_dd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 376
; NumSgprs: 18
; NumVgprs: 15
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 15
; 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	_Z9relax_cu2PdS_S_dd    ; -- Begin function _Z9relax_cu2PdS_S_dd
	.globl	_Z9relax_cu2PdS_S_dd
	.p2align	8
	.type	_Z9relax_cu2PdS_S_dd,@function
_Z9relax_cu2PdS_S_dd:                   ; @_Z9relax_cu2PdS_S_dd
; %bb.0:
	s_load_b32 s2, s[0:1], 0x34
	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_mov_b32 s2, 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_u32_e32 v2, v2, v3
	v_cmpx_gt_u32_e32 0x1fe, v2
	s_cbranch_execz .LBB1_2
; %bb.1:
	s_load_b256 s[4:11], s[0:1], 0x0
	v_lshl_add_u32 v0, v0, 9, v1
	v_mov_b32_e32 v2, 0
	s_load_b64 s[0:1], s[0:1], 0x20
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, 0xfffffe00, v0
	v_lshlrev_b64 v[3:4], 3, v[1:2]
	v_add_nc_u32_e32 v1, 0x200, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[5:6], 3, v[1:2]
	v_mov_b32_e32 v1, v2
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s6, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s7, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v5, vcc_lo, s4, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s5, v6, vcc_lo
	v_lshlrev_b64 v[9:10], 3, v[0:1]
	global_load_b64 v[7:8], v[3:4], off
	global_load_b64 v[4:5], v[5:6], off
	v_add_co_u32 v11, vcc_lo, s6, v9
	v_add_co_ci_u32_e32 v12, vcc_lo, s7, v10, vcc_lo
	v_add_co_u32 v0, vcc_lo, s4, v9
	v_add_co_ci_u32_e32 v1, vcc_lo, s5, v10, vcc_lo
	global_load_b64 v[13:14], v[11:12], off offset:-8
	v_add_co_u32 v9, vcc_lo, s8, v9
	global_load_b128 v[0:3], v[0:1], off
	v_add_co_ci_u32_e32 v10, vcc_lo, s9, v10, vcc_lo
	global_load_b64 v[9:10], v[9:10], off
	s_waitcnt vmcnt(3)
	v_add_f64 v[4:5], v[7:8], 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[4:5], v[4:5], v[13:14]
	s_waitcnt vmcnt(1)
	v_add_f64 v[2:3], v[4:5], v[2:3]
	v_fma_f64 v[4:5], s[0:1], -4.0, 1.0
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], -v[9:10], s[10:11], v[2:3]
	v_mul_f64 v[2:3], v[2:3], s[0:1]
	s_delay_alu instid0(VALU_DEP_1)
	v_fma_f64 v[0:1], v[4:5], v[0:1], v[2:3]
	global_store_b64 v[11:12], 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 _Z9relax_cu2PdS_S_dd
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 296
		.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 15
		.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	_Z9relax_cu2PdS_S_dd, .Lfunc_end1-_Z9relax_cu2PdS_S_dd
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 388
; NumSgprs: 18
; NumVgprs: 15
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 15
; 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	_Z9jacobi_cuPdS_S_d     ; -- Begin function _Z9jacobi_cuPdS_S_d
	.globl	_Z9jacobi_cuPdS_S_d
	.p2align	8
	.type	_Z9jacobi_cuPdS_S_d,@function
_Z9jacobi_cuPdS_S_d:                    ; @_Z9jacobi_cuPdS_S_d
; %bb.0:
	s_load_b32 s2, s[0:1], 0x2c
	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_mov_b32 s2, 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_u32_e32 v2, v2, v3
	v_cmpx_gt_u32_e32 0x1fe, v2
	s_cbranch_execz .LBB2_2
; %bb.1:
	s_load_b256 s[0:7], s[0:1], 0x0
	v_lshl_add_u32 v0, v0, 9, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_dual_mov_b32 v2, 0 :: v_dual_add_nc_u32 v1, 0xfffffe00, v0
	v_lshlrev_b64 v[3:4], 3, v[1:2]
	v_add_nc_u32_e32 v1, 0x200, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_2) | instid1(VALU_DEP_4)
	v_lshlrev_b64 v[5:6], 3, v[1:2]
	v_mov_b32_e32 v1, v2
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v5, vcc_lo, s0, v5
	v_add_co_ci_u32_e32 v6, vcc_lo, s1, v6, vcc_lo
	v_lshlrev_b64 v[0:1], 3, v[0:1]
	s_clause 0x1
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[5:6], v[5:6], off
	v_add_co_u32 v7, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v8, vcc_lo, s1, 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 v11, vcc_lo, s4, v0
	v_add_co_ci_u32_e32 v12, vcc_lo, s5, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s2, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s3, v1, vcc_lo
	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[9:10]
	s_waitcnt vmcnt(1)
	v_add_f64 v[2:3], v[2:3], v[7:8]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_fma_f64 v[2:3], -v[11:12], s[6:7], v[2:3]
	v_ldexp_f64 v[2:3], v[2:3], -2
	global_store_b64 v[0:1], v[2:3], off
.LBB2_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9jacobi_cuPdS_S_d
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 288
		.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_end2:
	.size	_Z9jacobi_cuPdS_S_d, .Lfunc_end2-_Z9jacobi_cuPdS_S_d
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 368
; 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
	.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
      - .offset:         16
        .size:           8
        .value_kind:     by_value
      - .offset:         24
        .size:           8
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z8relax_cuPdS_dd
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z8relax_cuPdS_dd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     15
    .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:     hidden_block_count_x
      - .offset:         44
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         48
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         52
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         54
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         56
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         58
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         60
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         62
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         96
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         104
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 296
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9relax_cu2PdS_S_dd
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z9relax_cu2PdS_S_dd.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     15
    .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:           4
        .value_kind:     hidden_block_count_x
      - .offset:         36
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         40
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         44
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         46
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         48
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         50
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         52
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         54
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         88
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         96
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 288
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9jacobi_cuPdS_S_d
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z9jacobi_cuPdS_S_d.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     13
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
