#include "solve_jacobi.cuh"
//#include <stdio.h>
__global__ void solve1(float* dx, float* dA, float* db, float* dnextX, int size) {
    //printf("kernel launched!\n");
    float sum = 0;
    for (int j = 0; j < size; j++) {
        if (threadIdx.x != j) {
            sum += dA[threadIdx.x*size+j] * dx[j];
        }
    }
    dnextX[threadIdx.x] = (db[threadIdx.x] - sum) / dA[threadIdx.x*size+threadIdx.x];
}

__global__ void solve2(float* dx, float* dA, float* db, float* dnextX, int size) {
    int tidx = blockIdx.x * blockDim.x + threadIdx.x;
    //int A_index = tidx;
    
    float sum = 0;
    for (int j = 0; j < size; j++) {
        if (tidx != j) sum += dA[tidx*size + j] * dx[j];
    }
    dnextX[tidx] = (db[tidx] - sum) / dA[tidx*size + tidx];
}

__global__ void solve3(float* dx, float* dA, float* db, float* dnextX, int size) {
    extern __shared__ float shared_dx[];

    int tidx = blockIdx.x * blockDim.x + threadIdx.x;
    
    //write to shared memory
    for(int i=threadIdx.x; i < size; i = i+blockDim.x)
	{
		shared_dx[i] = dx[i];
	}
    __syncthreads();

    float sum = 0;
    for (int j = 0; j < size; j++) {
        if (tidx != j) sum += dA[tidx*size + j] * shared_dx[j];
    }
    dnextX[tidx] = (db[tidx] - sum) / dA[tidx*size + tidx];
}

// loop unrolling 2
__global__ void solve4(float* dx, float* dA, float* db, float* dnextX, int size) {
    extern __shared__ float shared_dx[];

    int tidx = blockIdx.x * blockDim.x + threadIdx.x;
    
    //write to shared memory
    for(int i=threadIdx.x; i < size; i = i+blockDim.x)
	{
		shared_dx[i] = dx[i];
	}
    __syncthreads();

    float sum = 0;
    for (int j = 0; j < size; j = j+2) {
        if (tidx != j) sum += dA[tidx*size + j] * shared_dx[j];
        if (tidx != j+1) sum += dA[tidx*size + j+1] * shared_dx[j+1];
    }
    dnextX[tidx] = (db[tidx] - sum) / dA[tidx*size + tidx];
}

__global__ void solve5(float* dx, float* dA, float* db, float* dnextX, int size) {
    extern __shared__ float shared_dx[];

    
}
	.file	"tmpxft_002237b6_00000000-6_solve_jacobi.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2010:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2010:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z32__device_stub__Z6solve1PfS_S_S_iPfS_S_S_i
	.type	_Z32__device_stub__Z6solve1PfS_S_S_iPfS_S_S_i, @function
_Z32__device_stub__Z6solve1PfS_S_S_iPfS_S_S_i:
.LFB2032:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 12(%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	12(%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	.L2
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z6solve1PfS_S_S_i(%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
.L2:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2032:
	.size	_Z32__device_stub__Z6solve1PfS_S_S_iPfS_S_S_i, .-_Z32__device_stub__Z6solve1PfS_S_S_iPfS_S_S_i
	.globl	_Z6solve1PfS_S_S_i
	.type	_Z6solve1PfS_S_S_i, @function
_Z6solve1PfS_S_S_i:
.LFB2033:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z6solve1PfS_S_S_iPfS_S_S_i
	.cfi_endproc
.LFE2033:
	.size	_Z6solve1PfS_S_S_i, .-_Z6solve1PfS_S_S_i
	.globl	_Z32__device_stub__Z6solve2PfS_S_S_iPfS_S_S_i
	.type	_Z32__device_stub__Z6solve2PfS_S_S_iPfS_S_S_i, @function
_Z32__device_stub__Z6solve2PfS_S_S_iPfS_S_S_i:
.LFB2034:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 12(%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	12(%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	.L8
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z6solve2PfS_S_S_i(%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
.L8:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2034:
	.size	_Z32__device_stub__Z6solve2PfS_S_S_iPfS_S_S_i, .-_Z32__device_stub__Z6solve2PfS_S_S_iPfS_S_S_i
	.globl	_Z6solve2PfS_S_S_i
	.type	_Z6solve2PfS_S_S_i, @function
_Z6solve2PfS_S_S_i:
.LFB2035:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z6solve2PfS_S_S_iPfS_S_S_i
	.cfi_endproc
.LFE2035:
	.size	_Z6solve2PfS_S_S_i, .-_Z6solve2PfS_S_S_i
	.globl	_Z32__device_stub__Z6solve3PfS_S_S_iPfS_S_S_i
	.type	_Z32__device_stub__Z6solve3PfS_S_S_iPfS_S_S_i, @function
_Z32__device_stub__Z6solve3PfS_S_S_iPfS_S_S_i:
.LFB2036:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 12(%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	12(%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	.L13
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z6solve3PfS_S_S_i(%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
.L13:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2036:
	.size	_Z32__device_stub__Z6solve3PfS_S_S_iPfS_S_S_i, .-_Z32__device_stub__Z6solve3PfS_S_S_iPfS_S_S_i
	.globl	_Z6solve3PfS_S_S_i
	.type	_Z6solve3PfS_S_S_i, @function
_Z6solve3PfS_S_S_i:
.LFB2037:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z6solve3PfS_S_S_iPfS_S_S_i
	.cfi_endproc
.LFE2037:
	.size	_Z6solve3PfS_S_S_i, .-_Z6solve3PfS_S_S_i
	.globl	_Z32__device_stub__Z6solve4PfS_S_S_iPfS_S_S_i
	.type	_Z32__device_stub__Z6solve4PfS_S_S_iPfS_S_S_i, @function
_Z32__device_stub__Z6solve4PfS_S_S_iPfS_S_S_i:
.LFB2038:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 12(%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	12(%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	.L18
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z6solve4PfS_S_S_i(%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
.L18:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2038:
	.size	_Z32__device_stub__Z6solve4PfS_S_S_iPfS_S_S_i, .-_Z32__device_stub__Z6solve4PfS_S_S_iPfS_S_S_i
	.globl	_Z6solve4PfS_S_S_i
	.type	_Z6solve4PfS_S_S_i, @function
_Z6solve4PfS_S_S_i:
.LFB2039:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z6solve4PfS_S_S_iPfS_S_S_i
	.cfi_endproc
.LFE2039:
	.size	_Z6solve4PfS_S_S_i, .-_Z6solve4PfS_S_S_i
	.globl	_Z32__device_stub__Z6solve5PfS_S_S_iPfS_S_S_i
	.type	_Z32__device_stub__Z6solve5PfS_S_S_iPfS_S_S_i, @function
_Z32__device_stub__Z6solve5PfS_S_S_iPfS_S_S_i:
.LFB2040:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdi, 40(%rsp)
	leaq	64(%rsp), %rdi
	movq	%rsi, 32(%rsp)
	leaq	76(%rsp), %rsi
	movq	%rdx, 24(%rsp)
	leaq	48(%rsp), %rdx
	movq	%rcx, 16(%rsp)
	leaq	56(%rsp), %rcx
	movl	%r8d, 12(%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	12(%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	.L23
	pushq	56(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z6solve5PfS_S_S_i(%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
.L23:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2040:
	.size	_Z32__device_stub__Z6solve5PfS_S_S_iPfS_S_S_i, .-_Z32__device_stub__Z6solve5PfS_S_S_iPfS_S_S_i
	.globl	_Z6solve5PfS_S_S_i
	.type	_Z6solve5PfS_S_S_i, @function
_Z6solve5PfS_S_S_i:
.LFB2041:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z6solve5PfS_S_S_iPfS_S_S_i
	.cfi_endproc
.LFE2041:
	.size	_Z6solve5PfS_S_S_i, .-_Z6solve5PfS_S_S_i
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z6solve5PfS_S_S_i"
.LC1:
	.string	"_Z6solve4PfS_S_S_i"
.LC2:
	.string	"_Z6solve3PfS_S_S_i"
.LC3:
	.string	"_Z6solve2PfS_S_S_i"
.LC4:
	.string	"_Z6solve1PfS_S_S_i"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2043:
	.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	.LC0(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z6solve5PfS_S_S_i(%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	.LC1(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z6solve4PfS_S_S_i(%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	.LC2(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z6solve3PfS_S_S_i(%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	.LC3(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z6solve2PfS_S_S_i(%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	.LC4(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z6solve1PfS_S_S_i(%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
.LFE2043:
	.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
	.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:

#ifndef SOLVE_JACOBI_CUH
#define SOLVE_JACOBI_CUH
__global__ void solve1(float* dx, float* dA, float* db, float* dnextX, int size);
//__global__ void solve2_sum(float* dx, float* dA, float* db, float* dnextX, int size, int nTile);
__global__ void solve2(float* dx, float* dA, float* db, float* dnextX, int size);
__global__ void solve3(float* dx, float* dA, float* db, float* dnextX, int size);
__global__ void solve4(float* dx, float* dA, float* db, float* dnextX, int size);
__global__ void solve5(float* dx, float* dA, float* db, float* dnextX, int size);
#endif
	.text
	.file	"solve_jacobi.hip"
	.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 __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
