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


                                                     

// this is the max iterations decide to do in the loop
unsigned long MAX_OPS = 20000000;

__global__ void gpu_iops(unsigned long max_ops) {


    
    int ab=1;
    int bb=1;
    int cb=1;
    int db=1;
    int eb=1;
    int fb=1;
    int gb=1;
    int hb=1;
    int ib=1;
    int jb=1;
    int kb=1;
    int lb=1;
    int mb=1;
    int nb=1;
    int ob=1;
    int pb=1;
    int qb=1;
    int rb=1;
    int sb=1;
    int tb=1;
    int ub=1;
    int vb=1;
    int wb=1;
    int xb=1;
   // 24 interger calculation 
    for(unsigned long count=0; count<max_ops; count++)
    {
        ab=ab+12;
        bb=bb+22;
        cb=cb+32;
        db=db+42;
        eb=eb+52;
        fb=fb+62;
        gb=gb+72;
        hb=hb+82;
        ib=ib+92;
        jb=jb+10;
        kb=kb+11;
        lb=lb+12;
        mb=mb*13;
        nb=nb*14;
        ob=ob*15;
        pb=pb*16;
        qb=qb*17;
        rb=rb*18;
        sb=sb*19;
        tb=tb*20;
        ub=ub*21;
        vb=vb*22;
        wb=wb*23;
        xb=xb*24;
    }
}

__global__ void gpu_flops(unsigned long max_ops) {


    float ae=0.2;
    float be=0.2;
    float ce=0.2;
    float de=0.2;
    float ee=0.2;
    float fe=0.2;
    float ge=0.2;
    float he=0.2;
    float ie=0.2;
    float je=0.2;
    float ke=0.2;
    float le=0.2;
    float me=0.2;
    float ne=0.2;
    float oe=0.2;
    float pe=0.2;
    float qe=0.2;
    float re=0.2;
    float se=0.2;
    float te=0.2;
    float ue=0.2;
    float ve=0.2;
    float we=0.2;
    float xe=0.2;

//24  floating point calculation
    for(unsigned long count=0; count<max_ops; count++)
    {
        ae=ae+1.11;
        be=be+2.22;
        ce=ce+3.33;
        de=de+4.44;
        ee=ee+5.52;
        fe=fe+6.61;
        ge=ge+7.72;
        he=he+8.83;
        ie=ie+9.94;
        je=je+10.10;
        ke=ke+11.11;
        le=le+12.12;
        me=me*13.13;
        ne=ne*14.14;
        oe=oe*15.15;
        pe=pe*16.16;
        qe=qe*17.17;
        re=re*18.18;
        se=se*19.19;
        te=te*20.20;
        ue=ue*21.21;
        ve=ve*22.22;
        we=we*23.23;
        xe=xe*24.24;
    }
}

int main(int argc, char *argv[]) {
//decide the character  
    char c; 

//decide the maximum thread 
    int threads = 1024;
    char test = 'I';

//get the parameter
    while ( (c = getopt(argc, argv, "n:l:t:") ) != -1) 
    {
        switch (c) 
        {
            case 'n':
                threads = atoi(optarg);
                break;
            case 'l':
                MAX_OPS = atol(optarg);
                break;
            case 't':
                test = optarg[0];
                break;
            default:
                printf("Usage\n");
                return -1;
        }
    }
   
//set the time parameter
    struct timeval tv;
    long long start, stop;
    double secs;

    if(test == 'I')
    {
      gettimeofday(&tv, NULL);
//get the start time
      start = tv.tv_sec*1000000LL + tv.tv_usec;   
      gpu_iops<<< ceil(threads/1024), 1024 >>>(MAX_OPS);        
      cudaThreadSynchronize(); 
      gettimeofday(&tv, NULL);
//get the stop time
      stop = tv.tv_sec*1000000LL + tv.tv_usec;
//get the totally time cost 
      secs = (stop-start)/1000000.0;
      printf("Time taken: %lf\n", secs);
      printf("IOPS\t%lf\n", (MAX_OPS*24.*threads)/(secs*10000000000.)); 
    }
    else if(test == 'F')
    {
      gettimeofday(&tv, NULL);
//get the start time
      start = tv.tv_sec*1000000LL + tv.tv_usec;
      
      gpu_flops<<< ceil(threads/1024), 1024 >>>(MAX_OPS);        
      cudaThreadSynchronize();
// get the stop time 
      gettimeofday(&tv, NULL);
      stop = tv.tv_sec*1000000LL + tv.tv_usec;
//get the totally time cost 
      secs = (stop-start)/1000000.0;
      printf("Time taken: %lf\n", secs);
      printf("GFLOPS\t%lf\n", (MAX_OPS*24.*threads)/(secs*10000000000.)); 
    }
}

	.file	"tmpxft_00359e84_00000000-6_gpu_bench.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2043:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2043:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z26__device_stub__Z8gpu_iopsmm
	.type	_Z26__device_stub__Z8gpu_iopsmm, @function
_Z26__device_stub__Z8gpu_iopsmm:
.LFB2065:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z8gpu_iopsm(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L2:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2065:
	.size	_Z26__device_stub__Z8gpu_iopsmm, .-_Z26__device_stub__Z8gpu_iopsmm
	.globl	_Z8gpu_iopsm
	.type	_Z8gpu_iopsm, @function
_Z8gpu_iopsm:
.LFB2066:
	.cfi_startproc
	endbr64
	jmp	_Z26__device_stub__Z8gpu_iopsmm
	.cfi_endproc
.LFE2066:
	.size	_Z8gpu_iopsm, .-_Z8gpu_iopsm
	.globl	_Z27__device_stub__Z9gpu_flopsmm
	.type	_Z27__device_stub__Z9gpu_flopsmm, @function
_Z27__device_stub__Z9gpu_flopsmm:
.LFB2067:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%rdi, 8(%rsp)
	leaq	24(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	44(%rsp), %rsi
	leaq	32(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	$1, 40(%rsp)
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 32(%rsp)
	movq	%rax, 44(%rsp)
	movl	$1, 52(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L8
	pushq	24(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z9gpu_flopsm(%rip), %rdi
	pushq	24(%rsp)
	.cfi_def_cfa_offset 128
	movq	60(%rsp), %rcx
	movl	68(%rsp), %r8d
	movq	48(%rsp), %rsi
	movl	56(%rsp), %edx
	leaq	96(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L8:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2067:
	.size	_Z27__device_stub__Z9gpu_flopsmm, .-_Z27__device_stub__Z9gpu_flopsmm
	.globl	_Z9gpu_flopsm
	.type	_Z9gpu_flopsm, @function
_Z9gpu_flopsm:
.LFB2068:
	.cfi_startproc
	endbr64
	jmp	_Z27__device_stub__Z9gpu_flopsmm
	.cfi_endproc
.LFE2068:
	.size	_Z9gpu_flopsm, .-_Z9gpu_flopsm
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Usage\n"
.LC1:
	.string	"n:l:t:"
.LC3:
	.string	"Time taken: %lf\n"
.LC6:
	.string	"IOPS\t%lf\n"
.LC7:
	.string	"GFLOPS\t%lf\n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2040:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movl	%edi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movb	$73, %bpl
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movl	$1024, %ebx
	subq	$64, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
.L14:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movl	%r12d, %edi
	call	getopt@PLT
	cmpb	$-1, %al
	je	.L34
	cmpb	$110, %al
	je	.L15
	cmpb	$116, %al
	je	.L16
	cmpb	$108, %al
	jne	.L35
	movq	optarg(%rip), %rdi
	call	atol@PLT
	movq	%rax, MAX_OPS(%rip)
	jmp	.L14
.L15:
	movq	optarg(%rip), %rdi
	call	atoi@PLT
	movl	%eax, %ebx
	jmp	.L14
.L16:
	movq	optarg(%rip), %rax
	movb	(%rax), %bpl
	jmp	.L14
.L35:
	leaq	.LC0(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	orl	$-1, %eax
	jmp	.L13
.L34:
	cmpb	$73, %bpl
	jne	.L22
	leaq	40(%rsp), %r12
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	gettimeofday@PLT
	movl	%ebx, %eax
	movl	$1024, %esi
	xorl	%r9d, %r9d
	cltd
	movl	$4194305, %ecx
	xorl	%r8d, %r8d
	movl	$1, 36(%rsp)
	idivl	%esi
	imulq	$1000000, 40(%rsp), %rbp
	salq	$10, %rcx
	addq	48(%rsp), %rbp
	movq	%rcx, 28(%rsp)
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 16(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 20(%rsp)
	movq	16(%rsp), %rdi
	movl	24(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L23
	movq	MAX_OPS(%rip), %rdi
	call	_Z26__device_stub__Z8gpu_iopsmm
.L23:
	call	cudaThreadSynchronize@PLT
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	gettimeofday@PLT
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	imulq	$1000000, 40(%rsp), %rax
	addq	48(%rsp), %rax
	subq	%rbp, %rax
	cvtsi2sdq	%rax, %xmm1
	movb	$1, %al
	divsd	.LC2(%rip), %xmm1
	movaps	%xmm1, %xmm0
	movsd	%xmm1, 8(%rsp)
	call	__printf_chk@PLT
	movq	MAX_OPS(%rip), %rax
	movsd	8(%rsp), %xmm1
	testq	%rax, %rax
	js	.L24
	cvtsi2sdq	%rax, %xmm0
	jmp	.L25
.L24:
	movq	%rax, %rdx
	andl	$1, %eax
	shrq	%rdx
	orq	%rax, %rdx
	cvtsi2sdq	%rdx, %xmm0
	addsd	%xmm0, %xmm0
.L25:
	mulsd	.LC4(%rip), %xmm0
	cvtsi2sdl	%ebx, %xmm2
	leaq	.LC6(%rip), %rsi
	mulsd	.LC5(%rip), %xmm1
	mulsd	%xmm2, %xmm0
	divsd	%xmm1, %xmm0
.L33:
	movl	$2, %edi
	movb	$1, %al
	call	__printf_chk@PLT
.L26:
	xorl	%eax, %eax
	jmp	.L13
.L22:
	cmpb	$70, %bpl
	jne	.L26
	leaq	40(%rsp), %r12
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	gettimeofday@PLT
	movl	%ebx, %eax
	movl	$1024, %esi
	xorl	%r9d, %r9d
	cltd
	movl	$4194305, %ecx
	xorl	%r8d, %r8d
	movl	$1, 36(%rsp)
	idivl	%esi
	imulq	$1000000, 40(%rsp), %rbp
	salq	$10, %rcx
	addq	48(%rsp), %rbp
	movq	%rcx, 28(%rsp)
	movq	%rcx, %rdx
	movl	$1, %ecx
	movl	%eax, 16(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 20(%rsp)
	movq	16(%rsp), %rdi
	movl	24(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L27
	movq	MAX_OPS(%rip), %rdi
	call	_Z27__device_stub__Z9gpu_flopsmm
.L27:
	call	cudaThreadSynchronize@PLT
	xorl	%esi, %esi
	movq	%r12, %rdi
	call	gettimeofday@PLT
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	imulq	$1000000, 40(%rsp), %rax
	addq	48(%rsp), %rax
	subq	%rbp, %rax
	cvtsi2sdq	%rax, %xmm1
	movb	$1, %al
	divsd	.LC2(%rip), %xmm1
	movaps	%xmm1, %xmm0
	movsd	%xmm1, 8(%rsp)
	call	__printf_chk@PLT
	movq	MAX_OPS(%rip), %rax
	movsd	8(%rsp), %xmm1
	testq	%rax, %rax
	js	.L28
	cvtsi2sdq	%rax, %xmm0
	jmp	.L29
.L28:
	movq	%rax, %rdx
	andl	$1, %eax
	shrq	%rdx
	orq	%rax, %rdx
	cvtsi2sdq	%rdx, %xmm0
	addsd	%xmm0, %xmm0
.L29:
	mulsd	.LC4(%rip), %xmm0
	cvtsi2sdl	%ebx, %xmm2
	leaq	.LC7(%rip), %rsi
	mulsd	.LC5(%rip), %xmm1
	mulsd	%xmm2, %xmm0
	divsd	%xmm1, %xmm0
	jmp	.L33
.L13:
	movq	56(%rsp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	addq	$64, %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
.LFE2040:
	.size	main, .-main
	.section	.rodata.str1.1
.LC8:
	.string	"_Z9gpu_flopsm"
.LC9:
	.string	"_Z8gpu_iopsm"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2070:
	.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	.LC8(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z9gpu_flopsm(%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	.LC9(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z8gpu_iopsm(%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
.LFE2070:
	.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	MAX_OPS
	.data
	.align 8
	.type	MAX_OPS, @object
	.size	MAX_OPS, 8
MAX_OPS:
	.quad	20000000
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1093567616
	.align 8
.LC4:
	.long	0
	.long	1077411840
	.align 8
.LC5:
	.long	536870912
	.long	1107468383
	.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 <sys/time.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>


                                                     

// this is the max iterations decide to do in the loop
unsigned long MAX_OPS = 20000000;

__global__ void gpu_iops(unsigned long max_ops) {


    
    int ab=1;
    int bb=1;
    int cb=1;
    int db=1;
    int eb=1;
    int fb=1;
    int gb=1;
    int hb=1;
    int ib=1;
    int jb=1;
    int kb=1;
    int lb=1;
    int mb=1;
    int nb=1;
    int ob=1;
    int pb=1;
    int qb=1;
    int rb=1;
    int sb=1;
    int tb=1;
    int ub=1;
    int vb=1;
    int wb=1;
    int xb=1;
   // 24 interger calculation 
    for(unsigned long count=0; count<max_ops; count++)
    {
        ab=ab+12;
        bb=bb+22;
        cb=cb+32;
        db=db+42;
        eb=eb+52;
        fb=fb+62;
        gb=gb+72;
        hb=hb+82;
        ib=ib+92;
        jb=jb+10;
        kb=kb+11;
        lb=lb+12;
        mb=mb*13;
        nb=nb*14;
        ob=ob*15;
        pb=pb*16;
        qb=qb*17;
        rb=rb*18;
        sb=sb*19;
        tb=tb*20;
        ub=ub*21;
        vb=vb*22;
        wb=wb*23;
        xb=xb*24;
    }
}

__global__ void gpu_flops(unsigned long max_ops) {


    float ae=0.2;
    float be=0.2;
    float ce=0.2;
    float de=0.2;
    float ee=0.2;
    float fe=0.2;
    float ge=0.2;
    float he=0.2;
    float ie=0.2;
    float je=0.2;
    float ke=0.2;
    float le=0.2;
    float me=0.2;
    float ne=0.2;
    float oe=0.2;
    float pe=0.2;
    float qe=0.2;
    float re=0.2;
    float se=0.2;
    float te=0.2;
    float ue=0.2;
    float ve=0.2;
    float we=0.2;
    float xe=0.2;

//24  floating point calculation
    for(unsigned long count=0; count<max_ops; count++)
    {
        ae=ae+1.11;
        be=be+2.22;
        ce=ce+3.33;
        de=de+4.44;
        ee=ee+5.52;
        fe=fe+6.61;
        ge=ge+7.72;
        he=he+8.83;
        ie=ie+9.94;
        je=je+10.10;
        ke=ke+11.11;
        le=le+12.12;
        me=me*13.13;
        ne=ne*14.14;
        oe=oe*15.15;
        pe=pe*16.16;
        qe=qe*17.17;
        re=re*18.18;
        se=se*19.19;
        te=te*20.20;
        ue=ue*21.21;
        ve=ve*22.22;
        we=we*23.23;
        xe=xe*24.24;
    }
}

int main(int argc, char *argv[]) {
//decide the character  
    char c; 

//decide the maximum thread 
    int threads = 1024;
    char test = 'I';

//get the parameter
    while ( (c = getopt(argc, argv, "n:l:t:") ) != -1) 
    {
        switch (c) 
        {
            case 'n':
                threads = atoi(optarg);
                break;
            case 'l':
                MAX_OPS = atol(optarg);
                break;
            case 't':
                test = optarg[0];
                break;
            default:
                printf("Usage\n");
                return -1;
        }
    }
   
//set the time parameter
    struct timeval tv;
    long long start, stop;
    double secs;

    if(test == 'I')
    {
      gettimeofday(&tv, NULL);
//get the start time
      start = tv.tv_sec*1000000LL + tv.tv_usec;   
      gpu_iops<<< ceil(threads/1024), 1024 >>>(MAX_OPS);        
      hipDeviceSynchronize(); 
      gettimeofday(&tv, NULL);
//get the stop time
      stop = tv.tv_sec*1000000LL + tv.tv_usec;
//get the totally time cost 
      secs = (stop-start)/1000000.0;
      printf("Time taken: %lf\n", secs);
      printf("IOPS\t%lf\n", (MAX_OPS*24.*threads)/(secs*10000000000.)); 
    }
    else if(test == 'F')
    {
      gettimeofday(&tv, NULL);
//get the start time
      start = tv.tv_sec*1000000LL + tv.tv_usec;
      
      gpu_flops<<< ceil(threads/1024), 1024 >>>(MAX_OPS);        
      hipDeviceSynchronize();
// get the stop time 
      gettimeofday(&tv, NULL);
      stop = tv.tv_sec*1000000LL + tv.tv_usec;
//get the totally time cost 
      secs = (stop-start)/1000000.0;
      printf("Time taken: %lf\n", secs);
      printf("GFLOPS\t%lf\n", (MAX_OPS*24.*threads)/(secs*10000000000.)); 
    }
}

	.text
	.file	"gpu_bench.hip"
	.globl	_Z23__device_stub__gpu_iopsm    # -- Begin function _Z23__device_stub__gpu_iopsm
	.type	_Z23__device_stub__gpu_iopsm,@function
_Z23__device_stub__gpu_iopsm:           # @_Z23__device_stub__gpu_iopsm
	.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	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%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	$_Z8gpu_iopsm, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z23__device_stub__gpu_iopsm, .Lfunc_end0-_Z23__device_stub__gpu_iopsm
	.cfi_endproc
                                        # -- End function
	.globl	_Z24__device_stub__gpu_flopsm   # -- Begin function _Z24__device_stub__gpu_flopsm
	.type	_Z24__device_stub__gpu_flopsm,@function
_Z24__device_stub__gpu_flopsm:          # @_Z24__device_stub__gpu_flopsm
	.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	$64, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	24(%rsp), %rax
	movq	%rdi, (%rax)
	movq	%rsp, %rbx
	movq	%rax, (%rbx)
	leaq	48(%rsp), %r14
	leaq	32(%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	$_Z9gpu_flopsm, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$80, %rsp
	.cfi_adjust_cfa_offset -80
	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	_Z24__device_stub__gpu_flopsm, .Lfunc_end1-_Z24__device_stub__gpu_flopsm
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI2_0:
	.quad	0x412e848000000000              # double 1.0E+6
.LCPI2_3:
	.quad	0x4038000000000000              # double 24
.LCPI2_4:
	.quad	0x4202a05f20000000              # double 1.0E+10
	.section	.rodata.cst16,"aM",@progbits,16
	.p2align	4, 0x0
.LCPI2_1:
	.long	1127219200                      # 0x43300000
	.long	1160773632                      # 0x45300000
	.long	0                               # 0x0
	.long	0                               # 0x0
.LCPI2_2:
	.quad	0x4330000000000000              # double 4503599627370496
	.quad	0x4530000000000000              # double 1.9342813113834067E+25
	.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	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rsi, %r14
	movl	%edi, %ebp
	movl	$.L.str, %edx
	callq	getopt
	shll	$24, %eax
	cmpl	$-16777216, %eax                # imm = 0xFF000000
	jne	.LBB2_1
# %bb.21:                               # %._crit_edge.thread
	movl	$1024, %ebx                     # imm = 0x400
.LBB2_12:
	leaq	16(%rsp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	(%r14), %r12
	movq	8(%r14), %r15
	leal	1023(%rbx), %edi
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edi
	sarl	$10, %edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$1024, %rdx                     # imm = 0x400
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_14
# %bb.13:
	movq	MAX_OPS(%rip), %rdi
	callq	_Z23__device_stub__gpu_iopsm
.LBB2_14:
	callq	hipDeviceSynchronize
	leaq	16(%rsp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	(%r14), %rax
	subq	%r12, %rax
	movq	8(%r14), %rcx
	subq	%r15, %rcx
	imulq	$1000000, %rax, %rax            # imm = 0xF4240
	addq	%rcx, %rax
	movl	$.L.str.3, %r14d
.LBB2_18:                               # %.sink.split
	cvtsi2sd	%rax, %xmm0
	divsd	.LCPI2_0(%rip), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movl	$.L.str.2, %edi
	movb	$1, %al
	callq	printf
	movsd	MAX_OPS(%rip), %xmm0            # xmm0 = mem[0],zero
	unpcklps	.LCPI2_1(%rip), %xmm0           # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
	subpd	.LCPI2_2(%rip), %xmm0
	movapd	%xmm0, %xmm1
	unpckhpd	%xmm0, %xmm1                    # xmm1 = xmm1[1],xmm0[1]
	addsd	%xmm0, %xmm1
	mulsd	.LCPI2_3(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	mulsd	%xmm1, %xmm0
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	mulsd	.LCPI2_4(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%r14, %rdi
	movb	$1, %al
	callq	printf
.LBB2_19:
	xorl	%eax, %eax
.LBB2_20:
	addq	$32, %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
.LBB2_1:                                # %.lr.ph.preheader
	.cfi_def_cfa_offset 80
	movb	$73, %r15b
	movl	$1024, %ebx                     # imm = 0x400
.LBB2_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	sarl	$24, %eax
	cmpl	$108, %eax
	je	.LBB2_8
# %bb.3:                                # %.lr.ph
                                        #   in Loop: Header=BB2_2 Depth=1
	cmpl	$116, %eax
	je	.LBB2_6
# %bb.4:                                # %.lr.ph
                                        #   in Loop: Header=BB2_2 Depth=1
	cmpl	$110, %eax
	jne	.LBB2_7
# %bb.5:                                #   in Loop: Header=BB2_2 Depth=1
	movq	optarg(%rip), %rdi
	callq	atoi
	movl	%eax, %ebx
	jmp	.LBB2_9
.LBB2_6:                                #   in Loop: Header=BB2_2 Depth=1
	movq	optarg(%rip), %rax
	movb	(%rax), %r15b
	jmp	.LBB2_9
.LBB2_8:                                #   in Loop: Header=BB2_2 Depth=1
	movq	optarg(%rip), %rdi
	callq	atol
	movq	%rax, MAX_OPS(%rip)
.LBB2_9:                                #   in Loop: Header=BB2_2 Depth=1
	movl	$.L.str, %edx
	movl	%ebp, %edi
	movq	%r14, %rsi
	callq	getopt
	shll	$24, %eax
	cmpl	$-16777216, %eax                # imm = 0xFF000000
	jne	.LBB2_2
# %bb.10:                               # %._crit_edge
	cmpb	$70, %r15b
	je	.LBB2_15
# %bb.11:                               # %._crit_edge
	movzbl	%r15b, %eax
	cmpl	$73, %eax
	je	.LBB2_12
	jmp	.LBB2_19
.LBB2_7:
	movl	$.Lstr, %edi
	callq	puts@PLT
	movl	$-1, %eax
	jmp	.LBB2_20
.LBB2_15:
	leaq	16(%rsp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	(%r14), %r12
	movq	8(%r14), %r15
	leal	1023(%rbx), %edi
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edi
	sarl	$10, %edi
	btsq	$32, %rdi
	movabsq	$4294967296, %rdx               # imm = 0x100000000
	orq	$1024, %rdx                     # imm = 0x400
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB2_17
# %bb.16:
	movq	MAX_OPS(%rip), %rdi
	callq	_Z24__device_stub__gpu_flopsm
.LBB2_17:
	callq	hipDeviceSynchronize
	leaq	16(%rsp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	gettimeofday
	movq	(%r14), %rax
	subq	%r12, %rax
	movq	8(%r14), %rcx
	subq	%r15, %rcx
	imulq	$1000000, %rax, %rax            # imm = 0xF4240
	addq	%rcx, %rax
	movl	$.L.str.4, %r14d
	jmp	.LBB2_18
.Lfunc_end2:
	.size	main, .Lfunc_end2-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	.LBB3_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB3_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z8gpu_iopsm, %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	$_Z9gpu_flopsm, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %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_end3:
	.size	__hip_module_ctor, .Lfunc_end3-__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	.LBB4_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
.LBB4_2:
	retq
.Lfunc_end4:
	.size	__hip_module_dtor, .Lfunc_end4-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	MAX_OPS,@object                 # @MAX_OPS
	.data
	.globl	MAX_OPS
	.p2align	3, 0x0
MAX_OPS:
	.quad	20000000                        # 0x1312d00
	.size	MAX_OPS, 8

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

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

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"n:l:t:"
	.size	.L.str, 7

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Time taken: %lf\n"
	.size	.L.str.2, 17

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"IOPS\t%lf\n"
	.size	.L.str.3, 10

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"GFLOPS\t%lf\n"
	.size	.L.str.4, 12

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z8gpu_iopsm"
	.size	.L__unnamed_1, 13

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z9gpu_flopsm"
	.size	.L__unnamed_2, 14

	.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

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"Usage"
	.size	.Lstr, 6

	.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__gpu_iopsm
	.addrsig_sym _Z24__device_stub__gpu_flopsm
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z8gpu_iopsm
	.addrsig_sym _Z9gpu_flopsm
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z8gpu_iopsm            ; -- Begin function _Z8gpu_iopsm
	.globl	_Z8gpu_iopsm
	.p2align	8
	.type	_Z8gpu_iopsm,@function
_Z8gpu_iopsm:                           ; @_Z8gpu_iopsm
; %bb.0:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z8gpu_iopsm
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 8
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 1
		.amdhsa_next_free_sgpr 1
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z8gpu_iopsm, .Lfunc_end0-_Z8gpu_iopsm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 4
; NumSgprs: 0
; NumVgprs: 0
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 1
; NumVGPRsForWavesPerEU: 1
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z9gpu_flopsm           ; -- Begin function _Z9gpu_flopsm
	.globl	_Z9gpu_flopsm
	.p2align	8
	.type	_Z9gpu_flopsm,@function
_Z9gpu_flopsm:                          ; @_Z9gpu_flopsm
; %bb.0:                                ; %._crit_edge
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z9gpu_flopsm
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 8
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 1
		.amdhsa_next_free_sgpr 1
		.amdhsa_reserve_vcc 0
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z9gpu_flopsm, .Lfunc_end1-_Z9gpu_flopsm
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 4
; NumSgprs: 0
; NumVgprs: 0
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 0
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 1
; NumVGPRsForWavesPerEU: 1
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.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:
      - .offset:         0
        .size:           8
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 8
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z8gpu_iopsm
    .private_segment_fixed_size: 0
    .sgpr_count:     0
    .sgpr_spill_count: 0
    .symbol:         _Z8gpu_iopsm.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     0
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .offset:         0
        .size:           8
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 8
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z9gpu_flopsm
    .private_segment_fixed_size: 0
    .sgpr_count:     0
    .sgpr_spill_count: 0
    .symbol:         _Z9gpu_flopsm.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     0
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
