#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>

extern "C" void JacobiHost( float* a, int n, int m, float w0, float w1, float w2, float tol );
extern "C" void JacobiGPU( float* a, int n, int m, float w0, float w1, float w2, float tol );

static void init( float* a, int n, int m )
{
    int i, j;
    memset( a, 0, sizeof(float) * n * m );
    /* boundary conditions */
    for( j = 0; j < n; ++j ){
	a[j*m+n-1] = j;
    }
    for( i = 0; i < m; ++i ){
	a[(n-1)*m+i] = i;
    }
    a[(n-1)*m+m-1] = m+n;
}

int main( int argc, char* argv[] )
{
    printf("\nJacobi Driver Initiated\n");			    
    
    int n, m;							// The number of rows and columns in the matrix
    float *a;							// The answer vector
    struct timeval tt1, tt2;					// time structures for evaluating the time of day
    int ms;							// miliseconds
    float fms;							// final miliseconds

    if( argc <= 1 ){
	fprintf( stderr, "Error Number of Arguments <=1, Need Col x Row Data\n", argv[0] );
	return 1;
    }

    n = atoi( argv[1] );
    if( n <= 0 ) n = 100;
    m = n;
    if( argc > 2 ){
	m = atoi( argv[2] );
	if( m <= 0 ) m = 100;
    }

    printf( "Jacobi %d x %d\n", n, m );

    a = (float*)malloc( sizeof(float) * n * m );


    // init( a, n, m );

 init( a, n, m );
/* 
<<<<<<< HEAD
    //
=======
>>>>>>> 5f41663343c459d76df14c9dab9add8c93673cba
    init( a, n, m );	
    
    //If the number of rows and columns are both under 10 then print to the screen
    if( n < 10 && m < 10)
    {
    	for(int i = 0; i< m; ++i)
 	{
		for(int t=0; t<n; ++t)
		{
			printf("%f ", a[i*m + t]);
		}
		printf("\n");
	}    
    }
<<<<<<< HEAD
=======
>>>>>>> 4ad927989f9a2fcaba65d52b10d2ccb6b885f643
*/ 


    gettimeofday( &tt1, NULL );
    JacobiHost( a, n, m, .2, .1, .1, .1 );
    gettimeofday( &tt2, NULL );
    ms = (tt2.tv_sec - tt1.tv_sec);
    ms = ms * 1000000 + (tt2.tv_usec - tt1.tv_usec);
    fms = (float)ms / 1000000.0f;
    printf( "time(host) = %f seconds\n", fms );

    init( a, n, m );

    gettimeofday( &tt1, NULL );
    JacobiGPU( a, n, m, .2, .1, .1, .1 );
    gettimeofday( &tt2, NULL );
    ms = (tt2.tv_sec - tt1.tv_sec);
    ms = ms * 1000000 + (tt2.tv_usec - tt1.tv_usec);
    fms = (float)ms / 1000000.0f;
    printf( "time(gpu ) = %f seconds\n", fms );
}

	.file	"tmpxft_0021b442_00000000-6_jdrivert.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL4initPfii, @function
_ZL4initPfii:
.LFB2027:
	.cfi_startproc
	movslq	%esi, %r11
	movslq	%edx, %r9
	movq	%rdi, %r8
	xorl	%eax, %eax
	salq	$2, %r9
	movq	%r11, %r10
	imulq	%r9, %r10
	movq	%r10, %rcx
	rep stosb
	leaq	(%r8,%r11,4), %rdi
	xorl	%eax, %eax
.L2:
	cvtsi2ssl	%eax, %xmm0
	movl	%eax, %ecx
	incl	%eax
	movss	%xmm0, -4(%rdi)
	addq	%r9, %rdi
	cmpl	%eax, %esi
	jne	.L2
	imull	%edx, %ecx
	movslq	%ecx, %rcx
	leaq	(%r8,%rcx,4), %rsi
	xorl	%ecx, %ecx
.L3:
	cvtsi2ssl	%ecx, %xmm0
	movss	%xmm0, (%rsi,%rcx,4)
	incq	%rcx
	cmpl	%ecx, %edx
	jg	.L3
	addl	%eax, %edx
	cvtsi2ssl	%edx, %xmm0
	movss	%xmm0, -4(%r8,%r10)
	ret
	.cfi_endproc
.LFE2027:
	.size	_ZL4initPfii, .-_ZL4initPfii
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2031:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2031:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\nJacobi Driver Initiated\n"
.LC1:
	.string	"Error Number of Arguments <=1, Need Col x Row Data\n"
.LC2:
	.string	"Jacobi %d x %d\n"
.LC6:
	.string	"time(host) = %f seconds\n"
.LC7:
	.string	"time(gpu ) = %f seconds\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movl	%edi, %r13d
	movl	$2, %edi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rsi, %r12
	leaq	.LC0(%rip), %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	$1, %r13d
	jg	.L9
	movq	(%r12), %rcx
	movq	stderr(%rip), %rdi
	leaq	.LC1(%rip), %rdx
	xorl	%eax, %eax
	movl	$2, %esi
	call	__fprintf_chk@PLT
	movl	$1, %eax
	jmp	.L8
.L9:
	movq	8(%r12), %rdi
	call	atoi@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	.L11
	movl	$100, %ebx
.L11:
	movl	%ebx, %ebp
	cmpl	$2, %r13d
	je	.L12
	movq	16(%r12), %rdi
	call	atoi@PLT
	movl	%eax, %ebp
	testl	%eax, %eax
	jg	.L12
	movl	$100, %ebp
.L12:
	movl	%ebp, %ecx
	movl	%ebx, %edx
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	leaq	8(%rsp), %r14
	leaq	24(%rsp), %r13
	call	__printf_chk@PLT
	movslq	%ebp, %rax
	movslq	%ebx, %rdi
	imulq	%rax, %rdi
	salq	$2, %rdi
	call	malloc@PLT
	movl	%ebp, %edx
	movl	%ebx, %esi
	movq	%rax, %rdi
	movq	%rax, %r12
	call	_ZL4initPfii
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	gettimeofday@PLT
	movl	%ebp, %edx
	movl	%ebx, %esi
	movq	%r12, %rdi
	movss	.LC3(%rip), %xmm3
	movss	.LC4(%rip), %xmm0
	movaps	%xmm3, %xmm2
	movaps	%xmm3, %xmm1
	call	JacobiHost@PLT
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	gettimeofday@PLT
	movq	24(%rsp), %rax
	subl	8(%rsp), %eax
	leaq	.LC6(%rip), %rsi
	imull	$1000000, %eax, %eax
	subl	16(%rsp), %eax
	addl	32(%rsp), %eax
	movl	$2, %edi
	cvtsi2ssl	%eax, %xmm0
	movb	$1, %al
	divss	.LC5(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	__printf_chk@PLT
	movl	%ebp, %edx
	movl	%ebx, %esi
	movq	%r12, %rdi
	call	_ZL4initPfii
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	gettimeofday@PLT
	movl	%ebp, %edx
	movl	%ebx, %esi
	movq	%r12, %rdi
	movss	.LC3(%rip), %xmm3
	movss	.LC4(%rip), %xmm0
	movaps	%xmm3, %xmm2
	movaps	%xmm3, %xmm1
	call	JacobiGPU@PLT
	xorl	%esi, %esi
	movq	%r13, %rdi
	call	gettimeofday@PLT
	movq	24(%rsp), %rax
	subl	8(%rsp), %eax
	leaq	.LC7(%rip), %rsi
	imull	$1000000, %eax, %eax
	subl	16(%rsp), %eax
	addl	32(%rsp), %eax
	movl	$2, %edi
	cvtsi2ssl	%eax, %xmm0
	movb	$1, %al
	divss	.LC5(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	call	__printf_chk@PLT
	xorl	%eax, %eax
.L8:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	addq	$48, %rsp
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2028:
	.size	main, .-main
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2054:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2054:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC3:
	.long	1036831949
	.align 4
.LC4:
	.long	1045220557
	.align 4
.LC5:
	.long	1232348160
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>

extern "C" void JacobiHost( float* a, int n, int m, float w0, float w1, float w2, float tol );
extern "C" void JacobiGPU( float* a, int n, int m, float w0, float w1, float w2, float tol );

static void init( float* a, int n, int m )
{
    int i, j;
    memset( a, 0, sizeof(float) * n * m );
    /* boundary conditions */
    for( j = 0; j < n; ++j ){
	a[j*m+n-1] = j;
    }
    for( i = 0; i < m; ++i ){
	a[(n-1)*m+i] = i;
    }
    a[(n-1)*m+m-1] = m+n;
}

int main( int argc, char* argv[] )
{
    printf("\nJacobi Driver Initiated\n");			    
    
    int n, m;							// The number of rows and columns in the matrix
    float *a;							// The answer vector
    struct timeval tt1, tt2;					// time structures for evaluating the time of day
    int ms;							// miliseconds
    float fms;							// final miliseconds

    if( argc <= 1 ){
	fprintf( stderr, "Error Number of Arguments <=1, Need Col x Row Data\n", argv[0] );
	return 1;
    }

    n = atoi( argv[1] );
    if( n <= 0 ) n = 100;
    m = n;
    if( argc > 2 ){
	m = atoi( argv[2] );
	if( m <= 0 ) m = 100;
    }

    printf( "Jacobi %d x %d\n", n, m );

    a = (float*)malloc( sizeof(float) * n * m );


    // init( a, n, m );

 init( a, n, m );
/* 
<<<<<<< HEAD
    //
=======
>>>>>>> 5f41663343c459d76df14c9dab9add8c93673cba
    init( a, n, m );	
    
    //If the number of rows and columns are both under 10 then print to the screen
    if( n < 10 && m < 10)
    {
    	for(int i = 0; i< m; ++i)
 	{
		for(int t=0; t<n; ++t)
		{
			printf("%f ", a[i*m + t]);
		}
		printf("\n");
	}    
    }
<<<<<<< HEAD
=======
>>>>>>> 4ad927989f9a2fcaba65d52b10d2ccb6b885f643
*/ 


    gettimeofday( &tt1, NULL );
    JacobiHost( a, n, m, .2, .1, .1, .1 );
    gettimeofday( &tt2, NULL );
    ms = (tt2.tv_sec - tt1.tv_sec);
    ms = ms * 1000000 + (tt2.tv_usec - tt1.tv_usec);
    fms = (float)ms / 1000000.0f;
    printf( "time(host) = %f seconds\n", fms );

    init( a, n, m );

    gettimeofday( &tt1, NULL );
    JacobiGPU( a, n, m, .2, .1, .1, .1 );
    gettimeofday( &tt2, NULL );
    ms = (tt2.tv_sec - tt1.tv_sec);
    ms = ms * 1000000 + (tt2.tv_usec - tt1.tv_usec);
    fms = (float)ms / 1000000.0f;
    printf( "time(gpu ) = %f seconds\n", fms );
}

	.text
	.file	"jdrivert.hip"
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI0_0:
	.long	0x3e4ccccd                      # float 0.200000003
.LCPI0_1:
	.long	0x3dcccccd                      # float 0.100000001
.LCPI0_2:
	.long	0x49742400                      # float 1.0E+6
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movl	$.Lstr, %edi
	callq	puts@PLT
	cmpl	$1, %r14d
	jle	.LBB0_1
# %bb.2:
	movq	8(%rbx), %rdi
	callq	atoi
	movl	%eax, %ebp
	testl	%eax, %eax
	movl	$100, %r15d
	cmovlel	%r15d, %ebp
	movl	%ebp, %r12d
	cmpl	$2, %r14d
	je	.LBB0_4
# %bb.3:
	movq	16(%rbx), %rdi
	callq	atoi
	testl	%eax, %eax
	cmovgl	%eax, %r15d
	movl	%r15d, %r12d
.LBB0_4:
	movl	$.L.str.2, %edi
	movl	%ebp, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	printf
	movslq	%ebp, %r15
	movslq	%r12d, %r12
	movq	%r15, %rdi
	imulq	%r12, %rdi
	shlq	$2, %rdi
	callq	malloc
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_ZL4initPfii
	leaq	24(%rsp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movss	.LCPI0_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	movss	.LCPI0_1(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movaps	%xmm1, %xmm2
	movaps	%xmm1, %xmm3
	callq	JacobiHost
	leaq	8(%rsp), %rbp
	movq	%rbp, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	(%rbp), %rax
	subq	(%r14), %rax
	movabsq	$4294967296000000, %rbx         # imm = 0xF424000000000
	imulq	%rbx, %rax
	shrq	$32, %rax
	movl	8(%rbp), %ecx
	subl	8(%r14), %ecx
	addl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	.LCPI0_2(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movl	$.L.str.3, %edi
	movb	$1, %al
	callq	printf
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_ZL4initPfii
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movss	.LCPI0_0(%rip), %xmm0           # xmm0 = mem[0],zero,zero,zero
	movss	.LCPI0_1(%rip), %xmm1           # xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	movaps	%xmm1, %xmm3
	callq	JacobiGPU
	movq	%rbp, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	(%rbp), %rax
	subq	(%r14), %rax
	imulq	%rbx, %rax
	shrq	$32, %rax
	movl	8(%rbp), %ecx
	subl	8(%r14), %ecx
	addl	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	.LCPI0_2(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movl	$.L.str.4, %edi
	movb	$1, %al
	callq	printf
	xorl	%eax, %eax
.LBB0_5:
                                        # kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB0_1:
	.cfi_def_cfa_offset 96
	movq	stderr(%rip), %rdi
	movq	(%rbx), %rdx
	movl	$.L.str.1, %esi
	xorl	%eax, %eax
	callq	fprintf
	movl	$1, %eax
	jmp	.LBB0_5
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
	.type	_ZL4initPfii,@function          # -- Begin function _ZL4initPfii
_ZL4initPfii:                           # @_ZL4initPfii
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movslq	%esi, %r13
	movslq	%edx, %r12
	movq	%r13, %rdx
	imulq	%r12, %rdx
	shlq	$2, %rdx
	xorl	%esi, %esi
	callq	memset@PLT
	testl	%r13d, %r13d
	jle	.LBB1_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%r13d, %eax
	leaq	(%r14,%r13,4), %rcx
	addq	$-4, %rcx
	shlq	$2, %r12
	xorl	%edx, %edx
.LBB1_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	movss	%xmm0, (%rcx)
	incq	%rdx
	addq	%r12, %rcx
	cmpq	%rdx, %rax
	jne	.LBB1_2
.LBB1_3:                                # %.preheader
	testl	%ebx, %ebx
	jle	.LBB1_6
# %bb.4:                                # %.lr.ph30
	leal	-1(%r15), %eax
	imull	%ebx, %eax
	movslq	%eax, %rcx
	movl	%ebx, %eax
	leaq	(%r14,%rcx,4), %rcx
	xorl	%edx, %edx
.LBB1_5:                                # =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	movss	%xmm0, (%rcx,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	.LBB1_5
.LBB1_6:                                # %._crit_edge
	leal	(%rbx,%r15), %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	imull	%r15d, %ebx
	movslq	%ebx, %rax
	movss	%xmm0, -4(%r14,%rax,4)
	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	_ZL4initPfii, .Lfunc_end1-_ZL4initPfii
	.cfi_endproc
                                        # -- End function
	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"Error Number of Arguments <=1, Need Col x Row Data\n"
	.size	.L.str.1, 52

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Jacobi %d x %d\n"
	.size	.L.str.2, 16

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"time(host) = %f seconds\n"
	.size	.L.str.3, 25

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"time(gpu ) = %f seconds\n"
	.size	.L.str.4, 25

	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"\nJacobi Driver Initiated"
	.size	.Lstr, 25

	.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_

	.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_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
