/**
 File name: graph_to_csr.cu
 Author: Yuede Ji
 Last update: 15:52 10-09-2015
 Description: convert current normal graph file to scr and begin position stored file
**/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define N 65536 // vertex number
//Using arrays to implement queue
/**
char filein[] = "/home/yuede/dataset/kron_16_16.dat";
char fileout[] = "/home/yuede/dataset/kron_16_16.cpu.as.result";
char file_beg_pos[] = "/home/yuede/dataset/kron_16_16.beg.pos";
char file_csr[] = "/home/yuede/dataset/kron_16_16.csr";
char file_v_e[] = "/home/yuede/dataset/kron_16_16.v_e";
**/
char filein[] = "/home/yuede/dataset/kron_10_4.dat";
char fileout[] = "/home/yuede/dataset/kron_10_4.cpu.as.result";
char file_beg_pos[] = "/home/yuede/dataset/kron_10_4.beg.pos";
char file_csr[] = "/home/yuede/dataset/kron_10_4.csr";
char file_v_e[] = "/home/yuede/dataset/kron_10_4.v_e";

const int INF = 0x7FFFFFFF; 

int v_num = 0;
int e_num = 0;
void empty_file(char * filename)
{
    FILE * fp = fopen(filename, "w");
    fclose(fp);
}
//load from .dat files, and store in array csr[N*N], beg_pos[N]
void csr_begin(char *filename)
{
    empty_file(file_beg_pos);
    empty_file(file_csr);
    FILE * fp_in = fopen(filein, "r");
    FILE * fp_csr = fopen(file_csr, "a");
    FILE * fp_beg_pos = fopen(file_beg_pos, "a");
    int v, n;//v denotes current vertex, n denotes no. of adjacent node
    int j = 0;// j denotes the index in csr[N*N];
    int begin = 0;

    fprintf(fp_beg_pos, "%d\n", begin);
    while(fscanf(fp_in, "%d%d", &v, &n)!=EOF)
    {
        //printf("%d %d\n", v, n);
        begin += n;
        fprintf(fp_beg_pos, "%d\n", begin);
        for(int i=0; i<n; ++i)
        {
            fscanf(fp_in, "%d", &j);
            fprintf(fp_csr, "%d\n", j);
        }
    }
    fclose(fp_beg_pos);
    fclose(fp_csr);
    e_num = begin+1;
    v_num = v+1;
    printf("v_num = %d, e_num = %d\n", v_num, e_num);
    FILE *fp_v_e = fopen(file_v_e, "w");
    fprintf(fp_v_e, "%d %d\n", v_num, e_num);
    fclose(fp_v_e);
}
int main()
{
    csr_begin(filein);
    return 0;
}


	.file	"tmpxft_0037afee_00000000-6_graph_to_csr.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2032:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2032:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"w"
	.text
	.globl	_Z10empty_filePc
	.type	_Z10empty_filePc, @function
_Z10empty_filePc:
.LFB2027:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	.LC0(%rip), %rsi
	call	fopen@PLT
	popq	%rdx
	.cfi_def_cfa_offset 8
	movq	%rax, %rdi
	jmp	fclose@PLT
	.cfi_endproc
.LFE2027:
	.size	_Z10empty_filePc, .-_Z10empty_filePc
	.section	.rodata.str1.1
.LC1:
	.string	"r"
.LC2:
	.string	"a"
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
.LC5:
	.string	"%d%d"
.LC6:
	.string	"v_num = %d, e_num = %d\n"
.LC7:
	.string	"%d %d\n"
	.text
	.globl	_Z9csr_beginPc
	.type	_Z9csr_beginPc, @function
_Z9csr_beginPc:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC5(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	file_csr(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	file_beg_pos(%rip), %rbx
	movq	%rbx, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	_Z10empty_filePc
	movq	%r13, %rdi
	call	_Z10empty_filePc
	leaq	.LC1(%rip), %rsi
	leaq	filein(%rip), %rdi
	call	fopen@PLT
	movq	%r13, %rdi
	movq	%rbp, %rsi
	leaq	.LC3(%rip), %r13
	movq	%rax, %r12
	call	fopen@PLT
	movq	%rbx, %rdi
	movq	%rbp, %rsi
	xorl	%ebx, %ebx
	movq	%rax, 8(%rsp)
	call	fopen@PLT
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$2, %esi
	movq	%rax, (%rsp)
	movq	%rax, %rdi
	xorl	%eax, %eax
	movl	%edx, 36(%rsp)
	movq	%r13, %rdx
	call	__fprintf_chk@PLT
.L5:
	xorl	%eax, %eax
	leaq	32(%rsp), %rcx
	leaq	28(%rsp), %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	__isoc23_fscanf@PLT
	incl	%eax
	je	.L12
	addl	32(%rsp), %ebx
	movq	(%rsp), %rdi
	movq	%r13, %rdx
	movl	$2, %esi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	leaq	.LC4(%rip), %r15
	xorl	%ebp, %ebp
	call	__fprintf_chk@PLT
.L6:
	cmpl	%ebp, 32(%rsp)
	jle	.L5
	leaq	36(%rsp), %rdx
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc23_fscanf@PLT
	movl	36(%rsp), %ecx
	movq	8(%rsp), %rdi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movl	$2, %esi
	incl	%ebp
	call	__fprintf_chk@PLT
	jmp	.L6
.L12:
	movq	(%rsp), %rdi
	call	fclose@PLT
	movq	8(%rsp), %rdi
	call	fclose@PLT
	movl	28(%rsp), %eax
	leal	1(%rbx), %ecx
	leaq	.LC6(%rip), %rsi
	movl	$2, %edi
	movl	%ecx, e_num(%rip)
	leal	1(%rax), %edx
	xorl	%eax, %eax
	movl	%edx, v_num(%rip)
	call	__printf_chk@PLT
	leaq	.LC0(%rip), %rsi
	leaq	file_v_e(%rip), %rdi
	call	fopen@PLT
	movl	v_num(%rip), %ecx
	movl	$2, %esi
	movl	e_num(%rip), %r8d
	movq	%rax, %rdi
	movq	%rax, %rbx
	leaq	.LC7(%rip), %rdx
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	movq	%rbx, %rdi
	call	fclose@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2028:
	.size	_Z9csr_beginPc, .-_Z9csr_beginPc
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2029:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	filein(%rip), %rdi
	call	_Z9csr_beginPc
	xorl	%eax, %eax
	popq	%rdx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2029:
	.size	main, .-main
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2055:
	.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
.LFE2055:
	.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
	.globl	e_num
	.bss
	.align 4
	.type	e_num, @object
	.size	e_num, 4
e_num:
	.zero	4
	.globl	v_num
	.align 4
	.type	v_num, @object
	.size	v_num, 4
v_num:
	.zero	4
	.globl	file_v_e
	.data
	.align 32
	.type	file_v_e, @object
	.size	file_v_e, 34
file_v_e:
	.string	"/home/yuede/dataset/kron_10_4.v_e"
	.globl	file_csr
	.align 32
	.type	file_csr, @object
	.size	file_csr, 34
file_csr:
	.string	"/home/yuede/dataset/kron_10_4.csr"
	.globl	file_beg_pos
	.align 32
	.type	file_beg_pos, @object
	.size	file_beg_pos, 38
file_beg_pos:
	.string	"/home/yuede/dataset/kron_10_4.beg.pos"
	.globl	fileout
	.align 32
	.type	fileout, @object
	.size	fileout, 44
fileout:
	.string	"/home/yuede/dataset/kron_10_4.cpu.as.result"
	.globl	filein
	.align 32
	.type	filein, @object
	.size	filein, 34
filein:
	.string	"/home/yuede/dataset/kron_10_4.dat"
	.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:

/**
 File name: graph_to_csr.cu
 Author: Yuede Ji
 Last update: 15:52 10-09-2015
 Description: convert current normal graph file to scr and begin position stored file
**/


#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define N 65536 // vertex number
//Using arrays to implement queue
/**
char filein[] = "/home/yuede/dataset/kron_16_16.dat";
char fileout[] = "/home/yuede/dataset/kron_16_16.cpu.as.result";
char file_beg_pos[] = "/home/yuede/dataset/kron_16_16.beg.pos";
char file_csr[] = "/home/yuede/dataset/kron_16_16.csr";
char file_v_e[] = "/home/yuede/dataset/kron_16_16.v_e";
**/
char filein[] = "/home/yuede/dataset/kron_10_4.dat";
char fileout[] = "/home/yuede/dataset/kron_10_4.cpu.as.result";
char file_beg_pos[] = "/home/yuede/dataset/kron_10_4.beg.pos";
char file_csr[] = "/home/yuede/dataset/kron_10_4.csr";
char file_v_e[] = "/home/yuede/dataset/kron_10_4.v_e";

const int INF = 0x7FFFFFFF; 

int v_num = 0;
int e_num = 0;
void empty_file(char * filename)
{
    FILE * fp = fopen(filename, "w");
    fclose(fp);
}
//load from .dat files, and store in array csr[N*N], beg_pos[N]
void csr_begin(char *filename)
{
    empty_file(file_beg_pos);
    empty_file(file_csr);
    FILE * fp_in = fopen(filein, "r");
    FILE * fp_csr = fopen(file_csr, "a");
    FILE * fp_beg_pos = fopen(file_beg_pos, "a");
    int v, n;//v denotes current vertex, n denotes no. of adjacent node
    int j = 0;// j denotes the index in csr[N*N];
    int begin = 0;

    fprintf(fp_beg_pos, "%d\n", begin);
    while(fscanf(fp_in, "%d%d", &v, &n)!=EOF)
    {
        //printf("%d %d\n", v, n);
        begin += n;
        fprintf(fp_beg_pos, "%d\n", begin);
        for(int i=0; i<n; ++i)
        {
            fscanf(fp_in, "%d", &j);
            fprintf(fp_csr, "%d\n", j);
        }
    }
    fclose(fp_beg_pos);
    fclose(fp_csr);
    e_num = begin+1;
    v_num = v+1;
    printf("v_num = %d, e_num = %d\n", v_num, e_num);
    FILE *fp_v_e = fopen(file_v_e, "w");
    fprintf(fp_v_e, "%d %d\n", v_num, e_num);
    fclose(fp_v_e);
}
int main()
{
    csr_begin(filein);
    return 0;
}


	.text
	.file	"graph_to_csr.hip"
	.globl	_Z10empty_filePc                # -- Begin function _Z10empty_filePc
	.type	_Z10empty_filePc,@function
_Z10empty_filePc:                       # @_Z10empty_filePc
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movl	$.L.str, %esi
	callq	fopen
	movq	%rax, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	fclose                          # TAILCALL
.Lfunc_end0:
	.size	_Z10empty_filePc, .Lfunc_end0-_Z10empty_filePc
	.cfi_endproc
                                        # -- End function
	.globl	_Z9csr_beginPc                  # -- Begin function _Z9csr_beginPc
	.type	_Z9csr_beginPc,@function
_Z9csr_beginPc:                         # @_Z9csr_beginPc
	.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	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$file_beg_pos, %edi
	movl	$.L.str, %esi
	callq	fopen
	movq	%rax, %rdi
	callq	fclose
	movl	$file_csr, %edi
	movl	$.L.str, %esi
	callq	fopen
	movq	%rax, %rdi
	callq	fclose
	movl	$filein, %edi
	movl	$.L.str.1, %esi
	callq	fopen
	movq	%rax, %r14
	movl	$file_csr, %edi
	movl	$.L.str.2, %esi
	callq	fopen
	movq	%rax, %rbx
	movl	$file_beg_pos, %edi
	movl	$.L.str.2, %esi
	callq	fopen
	movq	%rax, %r15
	movl	$0, 16(%rsp)
	movl	$.L.str.3, %esi
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	fprintf
	leaq	20(%rsp), %rdx
	leaq	12(%rsp), %rcx
	movl	$.L.str.4, %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	cmpl	$-1, %eax
	je	.LBB1_1
# %bb.2:                                # %.lr.ph18.preheader
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
.LBB1_4:                                # %.lr.ph18
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_6 Depth 2
	addl	12(%rsp), %ebp
	movl	$.L.str.3, %esi
	movq	%r15, %rdi
	movl	%ebp, %edx
	xorl	%eax, %eax
	callq	fprintf
	cmpl	$0, 12(%rsp)
	jle	.LBB1_3
# %bb.5:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB1_4 Depth=1
	xorl	%r13d, %r13d
.LBB1_6:                                # %.lr.ph
                                        #   Parent Loop BB1_4 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$.L.str.5, %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	movl	16(%rsp), %edx
	movl	$.L.str.3, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	fprintf
	incl	%r13d
	cmpl	12(%rsp), %r13d
	jl	.LBB1_6
.LBB1_3:                                # %.loopexit
                                        #   in Loop: Header=BB1_4 Depth=1
	movl	$.L.str.4, %esi
	movq	%r14, %rdi
	leaq	20(%rsp), %rdx
	leaq	12(%rsp), %rcx
	xorl	%eax, %eax
	callq	__isoc23_fscanf
	cmpl	$-1, %eax
	jne	.LBB1_4
# %bb.7:                                # %._crit_edge.loopexit
	incl	%ebp
	jmp	.LBB1_8
.LBB1_1:
	movl	$1, %ebp
.LBB1_8:                                # %._crit_edge
	movq	%r15, %rdi
	callq	fclose
	movq	%rbx, %rdi
	callq	fclose
	movl	%ebp, e_num(%rip)
	movl	20(%rsp), %esi
	incl	%esi
	movl	%esi, v_num(%rip)
	movl	$.L.str.6, %edi
	movl	%ebp, %edx
	xorl	%eax, %eax
	callq	printf
	movl	$file_v_e, %edi
	movl	$.L.str, %esi
	callq	fopen
	movq	%rax, %rbx
	movl	v_num(%rip), %edx
	movl	e_num(%rip), %ecx
	movl	$.L.str.7, %esi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	fprintf
	movq	%rbx, %rdi
	callq	fclose
	addq	$24, %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_end1:
	.size	_Z9csr_beginPc, .Lfunc_end1-_Z9csr_beginPc
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	_Z9csr_beginPc
	xorl	%eax, %eax
	popq	%rcx
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	main, .Lfunc_end2-main
	.cfi_endproc
                                        # -- End function
	.type	filein,@object                  # @filein
	.data
	.globl	filein
	.p2align	4, 0x0
filein:
	.asciz	"/home/yuede/dataset/kron_10_4.dat"
	.size	filein, 34

	.type	fileout,@object                 # @fileout
	.globl	fileout
	.p2align	4, 0x0
fileout:
	.asciz	"/home/yuede/dataset/kron_10_4.cpu.as.result"
	.size	fileout, 44

	.type	file_beg_pos,@object            # @file_beg_pos
	.globl	file_beg_pos
	.p2align	4, 0x0
file_beg_pos:
	.asciz	"/home/yuede/dataset/kron_10_4.beg.pos"
	.size	file_beg_pos, 38

	.type	file_csr,@object                # @file_csr
	.globl	file_csr
	.p2align	4, 0x0
file_csr:
	.asciz	"/home/yuede/dataset/kron_10_4.csr"
	.size	file_csr, 34

	.type	file_v_e,@object                # @file_v_e
	.globl	file_v_e
	.p2align	4, 0x0
file_v_e:
	.asciz	"/home/yuede/dataset/kron_10_4.v_e"
	.size	file_v_e, 34

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

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

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

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

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

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"%d\n"
	.size	.L.str.3, 4

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"%d%d"
	.size	.L.str.4, 5

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"%d"
	.size	.L.str.5, 3

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"v_num = %d, e_num = %d\n"
	.size	.L.str.6, 24

	.type	.L.str.7,@object                # @.str.7
.L.str.7:
	.asciz	"%d %d\n"
	.size	.L.str.7, 7

	.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 filein
	.addrsig_sym file_beg_pos
	.addrsig_sym file_csr
	.addrsig_sym file_v_e
	.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
