#include <stdio.h>
#include <cuda_runtime.h>
#include <asm/unistd.h>
#include <fcntl.h>
#include <inttypes.h>
#include <linux/kernel-page-flags.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/sysinfo.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include <vector>
#include <sys/time.h>
#include <assert.h>

#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }


inline void gpuAssert(cudaError_t code, const char *file, int line,
		      bool abort = true)
{
    if (code != cudaSuccess) {
	fprintf(stderr, "GPUassert: %s %s %d\n", cudaGetErrorString(code),
		file, line);
	if (abort)
	    exit(code);
    }
}


__global__ void kernel(int number_of_threads, float * dsum ,volatile int * d_mapping, int cnt, int fence_system_flag, int fence_block_flag)
{
    int i;

    /*printf("D: i am [%d] \n", blockIdx.x * blockDim.x * blockDim.y * blockDim.z 
     + threadIdx.z * blockDim.y * blockDim.x + threadIdx.y * blockDim.x + threadIdx.x);
    */

    for(i=0; i < cnt ; i++){
        *dsum = i;
        d_mapping[0] = *dsum;

        if(fence_system_flag){
            __threadfence_system();
        }
        if(fence_block_flag){
            __threadfence_block();
        }
    }
}


int main(int argc, char **argv)
{

    int opt, BLOCKS = 1, THREADS = 1, cnt =10000, fence_system_flag =0, fence_block_flag = 0;

    cudaEvent_t start, stop;
    float elapsed_time =0;

    gpuErrchk(cudaEventCreate(&start));
    gpuErrchk(cudaEventCreate(&stop));


    while ((opt = getopt(argc, argv, "b:t:n:f:s:")) != -1) {

    	switch (opt) {

    	case 'b':
    	    BLOCKS = atoi(optarg);
    	    break;
    	case 't':
    	    THREADS = atoi(optarg);
    	    break;
        case 'n':
            cnt = atoi(optarg);
            break;
        case 'f':
            fence_system_flag = atoi(optarg);
            break;
        case 's':
            fence_block_flag = atoi(optarg);
            break;

    	default:
    	    fprintf(stderr, "Usage: %s -b [blocks] -t [threads] -n [count of iterations] -f [fence_system] -s [fence_block]\n",
    		    argv[0]);
    	    exit(EXIT_FAILURE);
    	}
    }

    float * dsum;

    gpuErrchk(cudaMallocManaged((void **) &dsum, sizeof(uint64_t)));


    volatile int * h_mapping;

    gpuErrchk(cudaHostAlloc( (void**)&h_mapping, sizeof(volatile int), cudaHostAllocMapped));

    volatile int * d_mapping;

    gpuErrchk(cudaHostGetDevicePointer((void**)&d_mapping,(void*)h_mapping,0));


    *dsum = 0;

    cudaEventRecord(start, 0);

    kernel <<< BLOCKS, THREADS >>> (BLOCKS * THREADS,dsum,d_mapping, cnt, fence_system_flag, fence_block_flag);


    gpuErrchk(cudaDeviceSynchronize());

    gpuErrchk(cudaEventRecord(stop, 0));

    gpuErrchk(cudaEventSynchronize(stop));

    gpuErrchk(cudaEventElapsedTime
              (&elapsed_time, start, stop));


    assert(*dsum != 0);

    printf("H: elapsed_time is : %f \n", elapsed_time);

    cudaEventDestroy(start);
    
    cudaEventDestroy(stop);

    return 0;
}

	.file	"tmpxft_0021e74a_00000000-6_fence.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3407:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3407:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.section	.rodata._Z9gpuAssert9cudaErrorPKcib.str1.1,"aMS",@progbits,1
.LC0:
	.string	"GPUassert: %s %s %d\n"
	.section	.text._Z9gpuAssert9cudaErrorPKcib,"axG",@progbits,_Z9gpuAssert9cudaErrorPKcib,comdat
	.weak	_Z9gpuAssert9cudaErrorPKcib
	.type	_Z9gpuAssert9cudaErrorPKcib, @function
_Z9gpuAssert9cudaErrorPKcib:
.LFB3403:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L8
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%ecx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 48
	movl	%edx, 12(%rsp)
	movq	%rsi, (%rsp)
	call	cudaGetErrorString@PLT
	movl	12(%rsp), %r9d
	movq	(%rsp), %r8
	leaq	.LC0(%rip), %rdx
	movq	stderr(%rip), %rdi
	movq	%rax, %rcx
	movl	$2, %esi
	xorl	%eax, %eax
	call	__fprintf_chk@PLT
	testb	%bpl, %bpl
	je	.L2
	movl	%ebx, %edi
	call	exit@PLT
.L2:
	addq	$24, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE3403:
	.size	_Z9gpuAssert9cudaErrorPKcib, .-_Z9gpuAssert9cudaErrorPKcib
	.text
	.globl	_Z32__device_stub__Z6kerneliPfPViiiiiPfPViiii
	.type	_Z32__device_stub__Z6kerneliPfPViiiiiPfPViiii, @function
_Z32__device_stub__Z6kerneliPfPViiiiiPfPViiii:
.LFB3429:
	.cfi_startproc
	endbr64
	subq	$168, %rsp
	.cfi_def_cfa_offset 176
	movl	%edi, 28(%rsp)
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movq	%rdx, 8(%rsp)
	leaq	40(%rsp), %rdx
	movl	%ecx, 24(%rsp)
	leaq	48(%rsp), %rcx
	movl	%r8d, 4(%rsp)
	movl	%r9d, (%rsp)
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	28(%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)
	leaq	24(%rsp), %rax
	movq	%rax, 128(%rsp)
	leaq	4(%rsp), %rax
	movq	%rax, 136(%rsp)
	movq	%rsp, %rax
	movq	%rax, 144(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L12
	pushq	48(%rsp)
	.cfi_def_cfa_offset 184
	leaq	_Z6kerneliPfPViiii(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 192
	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 184
	popq	%rdx
	.cfi_def_cfa_offset 176
.L12:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$168, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3429:
	.size	_Z32__device_stub__Z6kerneliPfPViiiiiPfPViiii, .-_Z32__device_stub__Z6kerneliPfPViiiiiPfPViiii
	.globl	_Z6kerneliPfPViiii
	.type	_Z6kerneliPfPViiii, @function
_Z6kerneliPfPViiii:
.LFB3430:
	.cfi_startproc
	endbr64
	jmp	_Z32__device_stub__Z6kerneliPfPViiiiiPfPViiii
	.cfi_endproc
.LFE3430:
	.size	_Z6kerneliPfPViiii, .-_Z6kerneliPfPViiii
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/gganagno/GHammer/master/2_indexing_and_synchronisation/fencing/fence_test/fence.cu"
.LC3:
	.string	"Usage: %s -b [blocks] -t [threads] -n [count of iterations] -f [fence_system] -s [fence_block]\n"
.LC4:
	.string	"b:t:n:f:s:"
.LC5:
	.string	"H: elapsed_time is : %f \n"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB3404:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$10000, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	$1, %ebx
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	%edi, 12(%rsp)
	leaq	24(%rsp), %rdi
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	movl	$0x00000000, 20(%rsp)
	call	cudaEventCreate@PLT
	movl	$1, %ecx
	movl	$69, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPKcib
	leaq	32(%rsp), %rdi
	call	cudaEventCreate@PLT
	movl	$1, %ecx
	movl	$70, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPKcib
.L18:
	movl	12(%rsp), %edi
	leaq	.LC4(%rip), %rdx
	movq	%r15, %rsi
	call	getopt@PLT
	cmpl	$-1, %eax
	je	.L31
	cmpl	$110, %eax
	je	.L19
	jg	.L20
	cmpl	$98, %eax
	je	.L21
	cmpl	$102, %eax
	jne	.L23
	movq	optarg(%rip), %rdi
	call	atoi@PLT
	movl	%eax, %r13d
	jmp	.L18
.L20:
	cmpl	$115, %eax
	je	.L24
	cmpl	$116, %eax
	jne	.L23
	movq	optarg(%rip), %rdi
	call	atoi@PLT
	movl	%eax, %ebp
	jmp	.L18
.L21:
	movq	optarg(%rip), %rdi
	call	atoi@PLT
	movl	%eax, %ebx
	jmp	.L18
.L19:
	movq	optarg(%rip), %rdi
	call	atoi@PLT
	movl	%eax, %r12d
	jmp	.L18
.L24:
	movq	optarg(%rip), %rdi
	call	atoi@PLT
	movl	%eax, %r14d
	jmp	.L18
.L23:
	movq	stderr(%rip), %rdi
	movq	(%r15), %rcx
	movl	$2, %esi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdx
	call	__fprintf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L31:
	leaq	40(%rsp), %rdi
	movl	$1, %edx
	movl	$8, %esi
	call	cudaMallocManaged@PLT
	movl	$1, %ecx
	movl	$102, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPKcib
	leaq	48(%rsp), %rdi
	movl	$2, %edx
	movl	$4, %esi
	call	cudaHostAlloc@PLT
	movl	$1, %ecx
	movl	$107, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPKcib
	movq	48(%rsp), %rsi
	xorl	%edx, %edx
	leaq	56(%rsp), %rdi
	call	cudaHostGetDevicePointer@PLT
	movl	$1, %ecx
	movl	$111, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPKcib
	movq	40(%rsp), %rax
	movq	24(%rsp), %rdi
	xorl	%esi, %esi
	movl	$0x00000000, (%rax)
	call	cudaEventRecord@PLT
	movl	%ebp, 76(%rsp)
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movabsq	$4294967297, %rax
	movl	%ebx, 64(%rsp)
	movq	%rax, 80(%rsp)
	movl	84(%rsp), %ecx
	movq	%rax, 68(%rsp)
	movq	76(%rsp), %rdx
	movq	64(%rsp), %rdi
	movl	72(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L28
	imull	%ebp, %ebx
	movq	56(%rsp), %rdx
	movq	40(%rsp), %rsi
	movl	%r14d, %r9d
	movl	%r13d, %r8d
	movl	%r12d, %ecx
	movl	%ebx, %edi
	call	_Z32__device_stub__Z6kerneliPfPViiiiiPfPViiii
.L28:
	call	cudaDeviceSynchronize@PLT
	movl	$1, %ecx
	movl	$121, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPKcib
	movq	32(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	$1, %ecx
	movl	$123, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPKcib
	movq	32(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movl	$1, %ecx
	movl	$125, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPKcib
	movq	32(%rsp), %rdx
	movq	24(%rsp), %rsi
	leaq	20(%rsp), %rdi
	call	cudaEventElapsedTime@PLT
	movl	$1, %ecx
	movl	$127, %edx
	leaq	.LC2(%rip), %rsi
	movl	%eax, %edi
	call	_Z9gpuAssert9cudaErrorPKcib
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	cvtss2sd	20(%rsp), %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	32(%rsp), %rdi
	call	cudaEventDestroy@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	addq	$104, %rsp
	.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
.LFE3404:
	.size	main, .-main
	.section	.rodata.str1.1
.LC6:
	.string	"_Z6kerneliPfPViiii"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3432:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 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	.LC6(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z6kerneliPfPViiii(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	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	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE3432:
	.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:

#include <stdio.h>
#include <hip/hip_runtime.h>
#include <asm/unistd.h>
#include <fcntl.h>
#include <inttypes.h>
#include <linux/kernel-page-flags.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/sysinfo.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include <vector>
#include <sys/time.h>
#include <assert.h>

#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }


inline void gpuAssert(hipError_t code, const char *file, int line,
		      bool abort = true)
{
    if (code != hipSuccess) {
	fprintf(stderr, "GPUassert: %s %s %d\n", hipGetErrorString(code),
		file, line);
	if (abort)
	    exit(code);
    }
}


__global__ void kernel(int number_of_threads, float * dsum ,volatile int * d_mapping, int cnt, int fence_system_flag, int fence_block_flag)
{
    int i;

    /*printf("D: i am [%d] \n", blockIdx.x * blockDim.x * blockDim.y * blockDim.z 
     + threadIdx.z * blockDim.y * blockDim.x + threadIdx.y * blockDim.x + threadIdx.x);
    */

    for(i=0; i < cnt ; i++){
        *dsum = i;
        d_mapping[0] = *dsum;

        if(fence_system_flag){
            __threadfence_system();
        }
        if(fence_block_flag){
            __threadfence_block();
        }
    }
}


int main(int argc, char **argv)
{

    int opt, BLOCKS = 1, THREADS = 1, cnt =10000, fence_system_flag =0, fence_block_flag = 0;

    hipEvent_t start, stop;
    float elapsed_time =0;

    gpuErrchk(hipEventCreate(&start));
    gpuErrchk(hipEventCreate(&stop));


    while ((opt = getopt(argc, argv, "b:t:n:f:s:")) != -1) {

    	switch (opt) {

    	case 'b':
    	    BLOCKS = atoi(optarg);
    	    break;
    	case 't':
    	    THREADS = atoi(optarg);
    	    break;
        case 'n':
            cnt = atoi(optarg);
            break;
        case 'f':
            fence_system_flag = atoi(optarg);
            break;
        case 's':
            fence_block_flag = atoi(optarg);
            break;

    	default:
    	    fprintf(stderr, "Usage: %s -b [blocks] -t [threads] -n [count of iterations] -f [fence_system] -s [fence_block]\n",
    		    argv[0]);
    	    exit(EXIT_FAILURE);
    	}
    }

    float * dsum;

    gpuErrchk(hipMallocManaged((void **) &dsum, sizeof(uint64_t)));


    volatile int * h_mapping;

    gpuErrchk(hipHostAlloc( (void**)&h_mapping, sizeof(volatile int), hipHostMallocMapped));

    volatile int * d_mapping;

    gpuErrchk(hipHostGetDevicePointer((void**)&d_mapping,(void*)h_mapping,0));


    *dsum = 0;

    hipEventRecord(start, 0);

    kernel <<< BLOCKS, THREADS >>> (BLOCKS * THREADS,dsum,d_mapping, cnt, fence_system_flag, fence_block_flag);


    gpuErrchk(hipDeviceSynchronize());

    gpuErrchk(hipEventRecord(stop, 0));

    gpuErrchk(hipEventSynchronize(stop));

    gpuErrchk(hipEventElapsedTime
              (&elapsed_time, start, stop));


    assert(*dsum != 0);

    printf("H: elapsed_time is : %f \n", elapsed_time);

    hipEventDestroy(start);
    
    hipEventDestroy(stop);

    return 0;
}

	.text
	.file	"fence.hip"
	.globl	_Z21__device_stub__kerneliPfPViiii # -- Begin function _Z21__device_stub__kerneliPfPViiii
	.type	_Z21__device_stub__kerneliPfPViiii,@function
_Z21__device_stub__kerneliPfPViiii:     # @_Z21__device_stub__kerneliPfPViiii
	.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	$128, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	12(%rsp), %rax
	movl	%edi, (%rax)
	leaq	40(%rsp), %rdi
	movq	%rsi, (%rdi)
	leaq	32(%rsp), %rsi
	movq	%rdx, (%rsi)
	leaq	8(%rsp), %rdx
	movl	%ecx, (%rdx)
	leaq	4(%rsp), %rcx
	movl	%r8d, (%rcx)
	movq	%rsp, %r8
	movl	%r9d, (%r8)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%rsi, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rcx, 32(%rbx)
	movq	%r8, 40(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%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	$_Z6kerneliPfPViiii, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$144, %rsp
	.cfi_adjust_cfa_offset -144
	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	_Z21__device_stub__kerneliPfPViiii, .Lfunc_end0-_Z21__device_stub__kerneliPfPViiii
	.cfi_endproc
                                        # -- End function
	.globl	main                            # -- Begin function 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	$56, %rsp
	.cfi_def_cfa_offset 112
	.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, %r13
	movl	%edi, %ebx
	movl	$0, 12(%rsp)
	leaq	24(%rsp), %rdi
	callq	hipEventCreate
	testl	%eax, %eax
	jne	.LBB1_1
# %bb.3:                                # %_Z9gpuAssert10hipError_tPKcib.exit
	leaq	16(%rsp), %rdi
	callq	hipEventCreate
	testl	%eax, %eax
	jne	.LBB1_35
# %bb.4:                                # %_Z9gpuAssert10hipError_tPKcib.exit23.outer.preheader
	movl	$1, %r15d
	movl	$10000, %ebp                    # imm = 0x2710
	movl	$0, 8(%rsp)                     # 4-byte Folded Spill
	xorl	%r14d, %r14d
	movl	$1, %r12d
.LBB1_5:                                # %_Z9gpuAssert10hipError_tPKcib.exit23
                                        # =>This Inner Loop Header: Depth=1
	movl	$.L.str.1, %edx
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	getopt
	cmpl	$98, %eax
	jne	.LBB1_6
# %bb.36:                               #   in Loop: Header=BB1_5 Depth=1
	movq	optarg(%rip), %rdi
	callq	atoi
	movl	%eax, %r12d
	jmp	.LBB1_5
.LBB1_6:                                # %_Z9gpuAssert10hipError_tPKcib.exit23
                                        #   in Loop: Header=BB1_5 Depth=1
	cmpl	$109, %eax
	jle	.LBB1_7
# %bb.10:                               # %_Z9gpuAssert10hipError_tPKcib.exit23
                                        #   in Loop: Header=BB1_5 Depth=1
	cmpl	$110, %eax
	je	.LBB1_14
# %bb.11:                               # %_Z9gpuAssert10hipError_tPKcib.exit23
                                        #   in Loop: Header=BB1_5 Depth=1
	cmpl	$115, %eax
	je	.LBB1_15
# %bb.12:                               # %_Z9gpuAssert10hipError_tPKcib.exit23
                                        #   in Loop: Header=BB1_5 Depth=1
	cmpl	$116, %eax
	jne	.LBB1_16
# %bb.13:                               #   in Loop: Header=BB1_5 Depth=1
	movq	optarg(%rip), %rdi
	callq	atoi
	movl	%eax, %r15d
	jmp	.LBB1_5
.LBB1_7:                                # %_Z9gpuAssert10hipError_tPKcib.exit23
                                        #   in Loop: Header=BB1_5 Depth=1
	cmpl	$-1, %eax
	je	.LBB1_17
# %bb.8:                                # %_Z9gpuAssert10hipError_tPKcib.exit23
                                        #   in Loop: Header=BB1_5 Depth=1
	cmpl	$102, %eax
	jne	.LBB1_16
# %bb.9:                                #   in Loop: Header=BB1_5 Depth=1
	movq	optarg(%rip), %rdi
	callq	atoi
	movl	%eax, %r14d
	jmp	.LBB1_5
.LBB1_15:                               #   in Loop: Header=BB1_5 Depth=1
	movq	optarg(%rip), %rdi
	callq	atoi
	movl	%eax, 8(%rsp)                   # 4-byte Spill
	jmp	.LBB1_5
.LBB1_14:                               #   in Loop: Header=BB1_5 Depth=1
	movq	optarg(%rip), %rdi
	callq	atoi
	movl	%eax, %ebp
	jmp	.LBB1_5
.LBB1_17:
	leaq	32(%rsp), %rdi
	movl	$8, %esi
	movl	$1, %edx
	callq	hipMallocManaged
	testl	%eax, %eax
	jne	.LBB1_18
# %bb.20:                               # %_Z9gpuAssert10hipError_tPKcib.exit25
	leaq	48(%rsp), %rdi
	movl	$4, %esi
	movl	$2, %edx
	callq	hipHostAlloc
	testl	%eax, %eax
	jne	.LBB1_21
# %bb.22:                               # %_Z9gpuAssert10hipError_tPKcib.exit27
	movq	48(%rsp), %rsi
	leaq	40(%rsp), %rdi
	xorl	%edx, %edx
	callq	hipHostGetDevicePointer
	testl	%eax, %eax
	jne	.LBB1_23
# %bb.24:                               # %_Z9gpuAssert10hipError_tPKcib.exit29
	movq	32(%rsp), %rax
	movl	$0, (%rax)
	movq	24(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	movl	%r12d, %edi
	btsq	$32, %rdi
	movl	%r15d, %edx
	btsq	$32, %rdx
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB1_26
# %bb.25:
	imull	%r15d, %r12d
	movq	32(%rsp), %rsi
	movq	40(%rsp), %rdx
	movl	%r12d, %edi
	movl	%ebp, %ecx
	movl	%r14d, %r8d
	movl	8(%rsp), %r9d                   # 4-byte Reload
	callq	_Z21__device_stub__kerneliPfPViiii
.LBB1_26:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB1_27
# %bb.28:                               # %_Z9gpuAssert10hipError_tPKcib.exit31
	movq	16(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipEventRecord
	testl	%eax, %eax
	jne	.LBB1_29
# %bb.30:                               # %_Z9gpuAssert10hipError_tPKcib.exit33
	movq	16(%rsp), %rdi
	callq	hipEventSynchronize
	testl	%eax, %eax
	jne	.LBB1_31
# %bb.32:                               # %_Z9gpuAssert10hipError_tPKcib.exit35
	movq	24(%rsp), %rsi
	movq	16(%rsp), %rdx
	leaq	12(%rsp), %rdi
	callq	hipEventElapsedTime
	testl	%eax, %eax
	jne	.LBB1_33
# %bb.34:                               # %_Z9gpuAssert10hipError_tPKcib.exit37
	cvtss2sd	12(%rsp), %xmm0
	movl	$.L.str.3, %edi
	movb	$1, %al
	callq	printf
	movq	24(%rsp), %rdi
	callq	hipEventDestroy
	movq	16(%rsp), %rdi
	callq	hipEventDestroy
	xorl	%eax, %eax
	addq	$56, %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
.LBB1_16:
	.cfi_def_cfa_offset 112
	movq	stderr(%rip), %rdi
	movq	(%r13), %rdx
	movl	$.L.str.2, %esi
	xorl	%eax, %eax
	callq	fprintf
	movl	$1, %edi
	callq	exit
.LBB1_1:
	movl	%eax, %ebp
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %esi
	movl	$.L.str, %ecx
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movl	$69, %r8d
	jmp	.LBB1_2
.LBB1_35:
	movl	%eax, %ebp
	movq	stderr(%rip), %rbx
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %esi
	movl	$.L.str, %ecx
	movq	%rbx, %rdi
	movq	%rax, %rdx
	movl	$70, %r8d
.LBB1_2:
	xorl	%eax, %eax
	callq	fprintf
	movl	%ebp, %edi
	callq	exit
.LBB1_18:
	movl	%eax, %ebx
	movq	stderr(%rip), %r14
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %esi
	movl	$.L.str, %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$102, %r8d
	jmp	.LBB1_19
.LBB1_21:
	movl	%eax, %ebx
	movq	stderr(%rip), %r14
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %esi
	movl	$.L.str, %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$107, %r8d
	jmp	.LBB1_19
.LBB1_23:
	movl	%eax, %ebx
	movq	stderr(%rip), %r14
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %esi
	movl	$.L.str, %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$111, %r8d
	jmp	.LBB1_19
.LBB1_27:
	movl	%eax, %ebx
	movq	stderr(%rip), %r14
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %esi
	movl	$.L.str, %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$121, %r8d
	jmp	.LBB1_19
.LBB1_29:
	movl	%eax, %ebx
	movq	stderr(%rip), %r14
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %esi
	movl	$.L.str, %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$123, %r8d
	jmp	.LBB1_19
.LBB1_31:
	movl	%eax, %ebx
	movq	stderr(%rip), %r14
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %esi
	movl	$.L.str, %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$125, %r8d
	jmp	.LBB1_19
.LBB1_33:
	movl	%eax, %ebx
	movq	stderr(%rip), %r14
	movl	%eax, %edi
	callq	hipGetErrorString
	movl	$.L.str.4, %esi
	movl	$.L.str, %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$128, %r8d
.LBB1_19:
	xorl	%eax, %eax
	callq	fprintf
	movl	%ebx, %edi
	callq	exit
.Lfunc_end1:
	.size	main, .Lfunc_end1-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:
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	jne	.LBB2_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rdi
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB2_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z6kerneliPfPViiii, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end2:
	.size	__hip_module_ctor, .Lfunc_end2-__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	.LBB3_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
.LBB3_2:
	retq
.Lfunc_end3:
	.size	__hip_module_dtor, .Lfunc_end3-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z6kerneliPfPViiii,@object      # @_Z6kerneliPfPViiii
	.section	.rodata,"a",@progbits
	.globl	_Z6kerneliPfPViiii
	.p2align	3, 0x0
_Z6kerneliPfPViiii:
	.quad	_Z21__device_stub__kerneliPfPViiii
	.size	_Z6kerneliPfPViiii, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/gganagno/GHammer/master/2_indexing_and_synchronisation/fencing/fence_test/fence.hip"
	.size	.L.str, 146

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	"b:t:n:f:s:"
	.size	.L.str.1, 11

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"Usage: %s -b [blocks] -t [threads] -n [count of iterations] -f [fence_system] -s [fence_block]\n"
	.size	.L.str.2, 96

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"H: elapsed_time is : %f \n"
	.size	.L.str.3, 26

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z6kerneliPfPViiii"
	.size	.L__unnamed_1, 19

	.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 _Z21__device_stub__kerneliPfPViiii
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z6kerneliPfPViiii
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z6kerneliPfPViiii      ; -- Begin function _Z6kerneliPfPViiii
	.globl	_Z6kerneliPfPViiii
	.p2align	8
	.type	_Z6kerneliPfPViiii,@function
_Z6kerneliPfPViiii:                     ; @_Z6kerneliPfPViiii
; %bb.0:
	s_load_b128 s[4:7], s[0:1], 0x18
	s_waitcnt lgkmcnt(0)
	s_cmp_lt_i32 s4, 1
	s_cbranch_scc1 .LBB0_7
; %bb.1:                                ; %.lr.ph
	s_load_b128 s[8:11], s[0:1], 0x8
	s_cmp_lg_u32 s5, 0
	v_mov_b32_e32 v2, 0
	s_cselect_b32 s0, -1, 0
	s_cmp_lg_u32 s6, 0
	v_cndmask_b32_e64 v0, 0, 1, s0
	s_cselect_b32 s0, -1, 0
	s_mov_b32 s2, 0
	v_cndmask_b32_e64 v3, 0, 1, s0
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_cmp_ne_u32_e64 s0, 1, v0
	v_cmp_ne_u32_e64 s1, 1, v3
	s_waitcnt lgkmcnt(0)
	v_dual_mov_b32 v0, s10 :: v_dual_mov_b32 v1, s11
.LBB0_2:                                ; =>This Inner Loop Header: Depth=1
	v_cvt_f32_i32_e32 v3, s2
	s_and_b32 vcc_lo, exec_lo, s0
	s_delay_alu instid0(VALU_DEP_1)
	v_cvt_i32_f32_e32 v4, v3
	global_store_b32 v2, v3, s[8:9]
	flat_store_b32 v[0:1], v4 dlc
	s_waitcnt_vscnt null, 0x0
	s_cbranch_vccnz .LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	s_waitcnt lgkmcnt(0)
	buffer_gl1_inv
	buffer_gl0_inv
.LBB0_4:                                ;   in Loop: Header=BB0_2 Depth=1
	s_and_b32 vcc_lo, exec_lo, s1
	s_cbranch_vccnz .LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	s_waitcnt lgkmcnt(0)
	buffer_gl0_inv
.LBB0_6:                                ;   in Loop: Header=BB0_2 Depth=1
	s_add_i32 s2, s2, 1
	s_delay_alu instid0(SALU_CYCLE_1)
	s_cmp_lg_u32 s4, s2
	s_cbranch_scc1 .LBB0_2
.LBB0_7:                                ; %._crit_edge
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z6kerneliPfPViiii
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 36
		.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 5
		.amdhsa_next_free_sgpr 12
		.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	_Z6kerneliPfPViiii, .Lfunc_end0-_Z6kerneliPfPViiii
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 200
; NumSgprs: 14
; NumVgprs: 5
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 1
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 14
; NumVGPRsForWavesPerEU: 5
; 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:           4
        .value_kind:     by_value
      - .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:           4
        .value_kind:     by_value
      - .offset:         28
        .size:           4
        .value_kind:     by_value
      - .offset:         32
        .size:           4
        .value_kind:     by_value
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 36
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z6kerneliPfPViiii
    .private_segment_fixed_size: 0
    .sgpr_count:     14
    .sgpr_spill_count: 0
    .symbol:         _Z6kerneliPfPViiii.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     5
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
