#include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <iostream>
#include <fstream>

__global__ void mapping_kernel(unsigned int * d_out, unsigned int * d_in, const unsigned int IN_SIZE)
{
	unsigned int myId = threadIdx.x + blockDim.x * blockIdx.x;
	// checking for out-of-bounds
	if (myId>=IN_SIZE)
	{
		return;
	}
	d_out[myId] = 1*d_in[myId]/1;
}

int main(int argc, char **argv)
{
	std::ofstream myfile;
    myfile.open ("par_mapping.csv");
//	printf("---STARTED---\n");
    const unsigned int times = 10;
	const unsigned int IN_SIZE = 1<<29;
	const unsigned int IN_BYTES = sizeof(unsigned int) * IN_SIZE;
	const unsigned int OUT_SIZE = IN_SIZE;
	const unsigned int OUT_BYTES = IN_BYTES;


	for(unsigned int rounds = 1; rounds<33; rounds++)
	{
		
		const dim3 NUM_THREADS(32*rounds);
		const dim3 NUM_BLOCKS(IN_SIZE/NUM_THREADS.x + ((IN_SIZE % NUM_THREADS.x)?1:0));

		// Generate the input array on host
		unsigned int * h_in = (unsigned int *)malloc(IN_BYTES);
		unsigned int * h_out = (unsigned int *)malloc(OUT_BYTES);
	    for (unsigned int j = 0; j<IN_SIZE; j++) {h_in[j] = 1;} //printf("  h_in[%d]: %d\n", j, h_in[j]);}

		// Declare GPU memory pointers
		unsigned int * d_in;
		unsigned int * d_out;
	    printf("\n@@@ROUND@@@: %d\n", rounds);
//	    printf("---IN_SIZE---: %d\n", IN_SIZE);
//	    printf("---IN_BYTES---: %d\n", IN_BYTES);
//	    printf("---OUT_SIZE---: %d\n", OUT_SIZE);
//	    printf("---OUT_BYTES---: %d\n", OUT_BYTES);
//	    printf("---THREAD_SIZE---: %d\n", NUM_THREADS.x);
//	    printf("---NUM_BLOCKS---: %d\n", NUM_BLOCKS.x);


		// Allocate GPU memory
		cudaMalloc((void **) &d_in, IN_BYTES);
		cudaMalloc((void **) &d_out, OUT_BYTES);

		// Transfer the arrays to the GPU
		cudaMemcpy(d_in, h_in, IN_BYTES, cudaMemcpyHostToDevice);

		cudaEvent_t start, stop;
        cudaEventCreate(&start);
        cudaEventCreate(&stop);
        cudaEventRecord(start, 0);
        // running the code on the GPU $times times        
        for (unsigned int k = 0; k<times; k++)
        {
            mapping_kernel<<<NUM_BLOCKS, NUM_THREADS>>>(d_out, d_in, IN_SIZE);
        }
        cudaEventRecord(stop, 0);
        cudaEventSynchronize(stop);
        // calculating time
        float elapsedTime = .0f;
        cudaEventElapsedTime(&elapsedTime, start, stop);
        elapsedTime = elapsedTime / ((float) times);
        printf(" time: %.5f\n", elapsedTime);

		// Copy back to HOST
		cudaMemcpy(h_out, d_out, OUT_BYTES, cudaMemcpyDeviceToHost);
		int sum = 0;
		for(unsigned int i = 0; i<OUT_SIZE; i++){sum += h_out[i];}
		for(unsigned int i = 0; (i<OUT_SIZE) && (i<10); i++)
		{
//			printf("OUT %d: count %d\n", i, h_out[i]);
		}
//		printf("%d\n", sum);
		// free GPU memory allocation
		cudaFree(d_in);
		cudaFree(d_out);
        myfile << elapsedTime << ",";
        free(h_in);
        free(h_out);
	}
	myfile.close();
	return 0;
}

	.file	"tmpxft_00269770_00000000-6_PARALLEL_mapping.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3769:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE3769:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z37__device_stub__Z14mapping_kernelPjS_jPjS_j
	.type	_Z37__device_stub__Z14mapping_kernelPjS_jPjS_j, @function
_Z37__device_stub__Z14mapping_kernelPjS_jPjS_j:
.LFB3791:
	.cfi_startproc
	endbr64
	subq	$136, %rsp
	.cfi_def_cfa_offset 144
	movq	%rdi, 24(%rsp)
	leaq	40(%rsp), %rcx
	leaq	48(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	60(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	32(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 56(%rsp)
	movq	%rax, 96(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 104(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 112(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 48(%rsp)
	movq	%rax, 60(%rsp)
	movl	$1, 68(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L2
	pushq	40(%rsp)
	.cfi_def_cfa_offset 152
	leaq	_Z14mapping_kernelPjS_j(%rip), %rdi
	pushq	40(%rsp)
	.cfi_def_cfa_offset 160
	movq	76(%rsp), %rcx
	movl	84(%rsp), %r8d
	movq	64(%rsp), %rsi
	movl	72(%rsp), %edx
	leaq	112(%rsp), %r9
	call	cudaLaunchKernel@PLT
	popq	%rax
	.cfi_def_cfa_offset 152
	popq	%rdx
	.cfi_def_cfa_offset 144
.L2:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	addq	$136, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE3791:
	.size	_Z37__device_stub__Z14mapping_kernelPjS_jPjS_j, .-_Z37__device_stub__Z14mapping_kernelPjS_jPjS_j
	.globl	_Z14mapping_kernelPjS_j
	.type	_Z14mapping_kernelPjS_j, @function
_Z14mapping_kernelPjS_j:
.LFB3792:
	.cfi_startproc
	endbr64
	jmp	_Z37__device_stub__Z14mapping_kernelPjS_jPjS_j
	.cfi_endproc
.LFE3792:
	.size	_Z14mapping_kernelPjS_j, .-_Z14mapping_kernelPjS_j
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_Z14mapping_kernelPjS_j"
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB3794:
	.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	.LC0(%rip), %rdx
	movq	%rax, %rdi
	leaq	_Z14mapping_kernelPjS_j(%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
.LFE3794:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.rodata.str1.1
.LC1:
	.string	"par_mapping.csv"
.LC2:
	.string	"\n@@@ROUND@@@: %d\n"
.LC5:
	.string	" time: %.5f\n"
.LC6:
	.string	","
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB3766:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA3766
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$600, %rsp
	.cfi_def_cfa_offset 656
	movq	%fs:40, %rax
	movq	%rax, 584(%rsp)
	xorl	%eax, %eax
	leaq	72(%rsp), %rbx
	movq	%rbx, %rdi
.LEHB0:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev@PLT
.LEHE0:
	movl	$16, %edx
	leaq	.LC1(%rip), %rsi
	movq	%rbx, %rdi
.LEHB1:
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode@PLT
	movabsq	$4294967297, %r14
	movl	$1, %ebp
.L16:
	movl	%ebp, %ecx
	xorl	%edx, %edx
	movl	$536870912, %eax
	movl	$2147483648, %r13d
	sall	$5, %ecx
	movq	%r13, %rdi
	movq	%r14, 52(%rsp)
	divl	%ecx
	movl	%ecx, 48(%rsp)
	movq	%r14, 64(%rsp)
	cmpl	$1, %edx
	sbbl	$-1, %eax
	movl	%eax, 60(%rsp)
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, %r12
	call	malloc@PLT
	movq	%rax, %r13
	xorl	%eax, %eax
.L11:
	movl	$1, (%r12,%rax,4)
	incq	%rax
	cmpq	$536870912, %rax
	jne	.L11
	movl	%ebp, %edx
	leaq	.LC2(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	16(%rsp), %rdi
	movl	$2147483648, %esi
	call	cudaMalloc@PLT
	leaq	24(%rsp), %rdi
	movl	$2147483648, %esi
	call	cudaMalloc@PLT
	movq	16(%rsp), %rdi
	movl	$1, %ecx
	movl	$2147483648, %edx
	movq	%r12, %rsi
	call	cudaMemcpy@PLT
	leaq	32(%rsp), %rdi
	call	cudaEventCreate@PLT
	leaq	40(%rsp), %rdi
	call	cudaEventCreate@PLT
	movq	32(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movl	$10, %r15d
.L13:
	movl	56(%rsp), %ecx
	movq	48(%rsp), %rdx
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movq	60(%rsp), %rdi
	movl	68(%rsp), %esi
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	je	.L12
.L15:
	decl	%r15d
	jne	.L13
	jmp	.L27
.L12:
	movq	16(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$536870912, %edx
	call	_Z37__device_stub__Z14mapping_kernelPjS_jPjS_j
	jmp	.L15
.L27:
	movq	40(%rsp), %rdi
	xorl	%esi, %esi
	call	cudaEventRecord@PLT
	movq	40(%rsp), %rdi
	call	cudaEventSynchronize@PLT
	movq	40(%rsp), %rdx
	movq	32(%rsp), %rsi
	leaq	12(%rsp), %rdi
	movl	$0x00000000, 12(%rsp)
	call	cudaEventElapsedTime@PLT
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	movb	$1, %al
	movss	12(%rsp), %xmm0
	divss	.LC4(%rip), %xmm0
	movss	%xmm0, 12(%rsp)
	cvtss2sd	%xmm0, %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rsi
	movl	$2, %ecx
	movl	$2147483648, %edx
	movq	%r13, %rdi
	call	cudaMemcpy@PLT
	movq	16(%rsp), %rdi
	call	cudaFree@PLT
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movq	%rbx, %rdi
	cvtss2sd	12(%rsp), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	movq	%rax, %rdi
	movl	$1, %edx
	leaq	.LC6(%rip), %rsi
	call	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@PLT
	movq	%r12, %rdi
	incl	%ebp
	call	free@PLT
	movq	%r13, %rdi
	call	free@PLT
	cmpl	$33, %ebp
	jne	.L16
	movq	%rbx, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv@PLT
.LEHE1:
	movq	%rbx, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	584(%rsp), %rax
	subq	%fs:40, %rax
	je	.L19
	jmp	.L25
.L20:
	endbr64
	movq	%rax, %rbp
.L17:
	movq	%rbx, %rdi
	call	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev@PLT
	movq	584(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	movq	%rbp, %rdi
.LEHB2:
	call	_Unwind_Resume@PLT
.LEHE2:
.L25:
	call	__stack_chk_fail@PLT
.L19:
	addq	$600, %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
.LFE3766:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA3766:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE3766-.LLSDACSB3766
.LLSDACSB3766:
	.uleb128 .LEHB0-.LFB3766
	.uleb128 .LEHE0-.LEHB0
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB1-.LFB3766
	.uleb128 .LEHE1-.LEHB1
	.uleb128 .L20-.LFB3766
	.uleb128 0
	.uleb128 .LEHB2-.LFB3766
	.uleb128 .LEHE2-.LEHB2
	.uleb128 0
	.uleb128 0
.LLSDACSE3766:
	.section	.text.startup
	.size	main, .-main
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC4:
	.long	1092616192
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.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 <stdlib.h>
#include <hip/hip_runtime.h>
#include <iostream>
#include <fstream>

__global__ void mapping_kernel(unsigned int * d_out, unsigned int * d_in, const unsigned int IN_SIZE)
{
	unsigned int myId = threadIdx.x + blockDim.x * blockIdx.x;
	// checking for out-of-bounds
	if (myId>=IN_SIZE)
	{
		return;
	}
	d_out[myId] = 1*d_in[myId]/1;
}

int main(int argc, char **argv)
{
	std::ofstream myfile;
    myfile.open ("par_mapping.csv");
//	printf("---STARTED---\n");
    const unsigned int times = 10;
	const unsigned int IN_SIZE = 1<<29;
	const unsigned int IN_BYTES = sizeof(unsigned int) * IN_SIZE;
	const unsigned int OUT_SIZE = IN_SIZE;
	const unsigned int OUT_BYTES = IN_BYTES;


	for(unsigned int rounds = 1; rounds<33; rounds++)
	{
		
		const dim3 NUM_THREADS(32*rounds);
		const dim3 NUM_BLOCKS(IN_SIZE/NUM_THREADS.x + ((IN_SIZE % NUM_THREADS.x)?1:0));

		// Generate the input array on host
		unsigned int * h_in = (unsigned int *)malloc(IN_BYTES);
		unsigned int * h_out = (unsigned int *)malloc(OUT_BYTES);
	    for (unsigned int j = 0; j<IN_SIZE; j++) {h_in[j] = 1;} //printf("  h_in[%d]: %d\n", j, h_in[j]);}

		// Declare GPU memory pointers
		unsigned int * d_in;
		unsigned int * d_out;
	    printf("\n@@@ROUND@@@: %d\n", rounds);
//	    printf("---IN_SIZE---: %d\n", IN_SIZE);
//	    printf("---IN_BYTES---: %d\n", IN_BYTES);
//	    printf("---OUT_SIZE---: %d\n", OUT_SIZE);
//	    printf("---OUT_BYTES---: %d\n", OUT_BYTES);
//	    printf("---THREAD_SIZE---: %d\n", NUM_THREADS.x);
//	    printf("---NUM_BLOCKS---: %d\n", NUM_BLOCKS.x);


		// Allocate GPU memory
		hipMalloc((void **) &d_in, IN_BYTES);
		hipMalloc((void **) &d_out, OUT_BYTES);

		// Transfer the arrays to the GPU
		hipMemcpy(d_in, h_in, IN_BYTES, hipMemcpyHostToDevice);

		hipEvent_t start, stop;
        hipEventCreate(&start);
        hipEventCreate(&stop);
        hipEventRecord(start, 0);
        // running the code on the GPU $times times        
        for (unsigned int k = 0; k<times; k++)
        {
            mapping_kernel<<<NUM_BLOCKS, NUM_THREADS>>>(d_out, d_in, IN_SIZE);
        }
        hipEventRecord(stop, 0);
        hipEventSynchronize(stop);
        // calculating time
        float elapsedTime = .0f;
        hipEventElapsedTime(&elapsedTime, start, stop);
        elapsedTime = elapsedTime / ((float) times);
        printf(" time: %.5f\n", elapsedTime);

		// Copy back to HOST
		hipMemcpy(h_out, d_out, OUT_BYTES, hipMemcpyDeviceToHost);
		int sum = 0;
		for(unsigned int i = 0; i<OUT_SIZE; i++){sum += h_out[i];}
		for(unsigned int i = 0; (i<OUT_SIZE) && (i<10); i++)
		{
//			printf("OUT %d: count %d\n", i, h_out[i]);
		}
//		printf("%d\n", sum);
		// free GPU memory allocation
		hipFree(d_in);
		hipFree(d_out);
        myfile << elapsedTime << ",";
        free(h_in);
        free(h_out);
	}
	myfile.close();
	return 0;
}

	.text
	.file	"PARALLEL_mapping.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z29__device_stub__mapping_kernelPjS_j # -- Begin function _Z29__device_stub__mapping_kernelPjS_j
	.type	_Z29__device_stub__mapping_kernelPjS_j,@function
_Z29__device_stub__mapping_kernelPjS_j: # @_Z29__device_stub__mapping_kernelPjS_j
	.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	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%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	$_Z14mapping_kernelPjS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	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	_Z29__device_stub__mapping_kernelPjS_j, .Lfunc_end0-_Z29__device_stub__mapping_kernelPjS_j
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst4,"aM",@progbits,4
	.p2align	2, 0x0                          # -- Begin function main
.LCPI1_0:
	.long	0x41200000                      # float 10
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %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	$552, %rsp                      # imm = 0x228
	.cfi_def_cfa_offset 608
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	leaq	40(%rsp), %rbx
	movq	%rbx, %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev
.Ltmp0:
	movl	$.L.str, %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode
.Ltmp1:
# %bb.1:                                # %.preheader52.preheader
	movl	$1, %r13d
.LBB1_2:                                # %.preheader52
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_3 Depth 2
                                        #     Child Loop BB1_11 Depth 2
	movq	%r13, %rbx
	shlq	$5, %rbx
	movl	$536870912, %eax                # imm = 0x20000000
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %ebp
	cmpl	$1, %edx
	sbbl	$-1, %ebp
	movl	$2147483648, %edi               # imm = 0x80000000
	callq	malloc
	movq	%rax, %r15
	movl	$2147483648, %edi               # imm = 0x80000000
	callq	malloc
	movq	%rax, %r12
	xorl	%eax, %eax
.LBB1_3:                                #   Parent Loop BB1_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movl	$1, (%r15,%rax,4)
	incq	%rax
	cmpq	$536870912, %rax                # imm = 0x20000000
	jne	.LBB1_3
# %bb.4:                                #   in Loop: Header=BB1_2 Depth=1
	movl	$.L.str.1, %edi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	printf
.Ltmp3:
	movl	$2147483648, %esi               # imm = 0x80000000
	leaq	24(%rsp), %rdi
	callq	hipMalloc
.Ltmp4:
# %bb.5:                                #   in Loop: Header=BB1_2 Depth=1
.Ltmp5:
	movl	$2147483648, %esi               # imm = 0x80000000
	leaq	16(%rsp), %rdi
	callq	hipMalloc
.Ltmp6:
# %bb.6:                                #   in Loop: Header=BB1_2 Depth=1
	movq	24(%rsp), %rdi
.Ltmp7:
	movl	$2147483648, %edx               # imm = 0x80000000
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
.Ltmp8:
# %bb.7:                                #   in Loop: Header=BB1_2 Depth=1
.Ltmp10:
	leaq	32(%rsp), %rdi
	callq	hipEventCreate
.Ltmp11:
# %bb.8:                                #   in Loop: Header=BB1_2 Depth=1
.Ltmp12:
	leaq	8(%rsp), %rdi
	callq	hipEventCreate
.Ltmp13:
# %bb.9:                                #   in Loop: Header=BB1_2 Depth=1
	movq	32(%rsp), %rdi
.Ltmp14:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp15:
# %bb.10:                               # %.preheader51.preheader
                                        #   in Loop: Header=BB1_2 Depth=1
	movabsq	$4294967296, %rax               # imm = 0x100000000
	orq	%rax, %rbx
	orq	%rax, %rbp
	movl	$10, %r14d
.LBB1_11:                               # %.preheader51
                                        #   Parent Loop BB1_2 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
.Ltmp16:
	movq	%rbp, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
.Ltmp17:
# %bb.12:                               #   in Loop: Header=BB1_11 Depth=2
	testl	%eax, %eax
	jne	.LBB1_14
# %bb.13:                               #   in Loop: Header=BB1_11 Depth=2
	movq	16(%rsp), %rdi
	movq	24(%rsp), %rsi
.Ltmp18:
	movl	$536870912, %edx                # imm = 0x20000000
	callq	_Z29__device_stub__mapping_kernelPjS_j
.Ltmp19:
.LBB1_14:                               #   in Loop: Header=BB1_11 Depth=2
	decl	%r14d
	jne	.LBB1_11
# %bb.15:                               #   in Loop: Header=BB1_2 Depth=1
	movq	8(%rsp), %rdi
.Ltmp21:
	xorl	%esi, %esi
	callq	hipEventRecord
.Ltmp22:
# %bb.16:                               #   in Loop: Header=BB1_2 Depth=1
	movq	8(%rsp), %rdi
.Ltmp23:
	callq	hipEventSynchronize
.Ltmp24:
# %bb.17:                               #   in Loop: Header=BB1_2 Depth=1
	movl	$0, 4(%rsp)
	movq	32(%rsp), %rsi
	movq	8(%rsp), %rdx
.Ltmp26:
	leaq	4(%rsp), %rdi
	callq	hipEventElapsedTime
.Ltmp27:
# %bb.18:                               #   in Loop: Header=BB1_2 Depth=1
	movss	4(%rsp), %xmm0                  # xmm0 = mem[0],zero,zero,zero
	divss	.LCPI1_0(%rip), %xmm0
	movss	%xmm0, 4(%rsp)
	cvtss2sd	%xmm0, %xmm0
	movl	$.L.str.2, %edi
	movb	$1, %al
	callq	printf
	movq	16(%rsp), %rsi
.Ltmp28:
	movl	$2147483648, %edx               # imm = 0x80000000
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
.Ltmp29:
# %bb.19:                               # %.preheader50.preheader
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	24(%rsp), %rdi
.Ltmp31:
	callq	hipFree
.Ltmp32:
# %bb.20:                               #   in Loop: Header=BB1_2 Depth=1
	movq	16(%rsp), %rdi
.Ltmp33:
	callq	hipFree
.Ltmp34:
# %bb.21:                               #   in Loop: Header=BB1_2 Depth=1
	xorps	%xmm0, %xmm0
	cvtss2sd	4(%rsp), %xmm0
.Ltmp35:
	leaq	40(%rsp), %rdi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp36:
# %bb.22:                               # %_ZNSolsEf.exit
                                        #   in Loop: Header=BB1_2 Depth=1
.Ltmp37:
	movl	$.L.str.3, %esi
	movl	$1, %edx
	movq	%rax, %rdi
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp38:
# %bb.23:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit
                                        #   in Loop: Header=BB1_2 Depth=1
	movq	%r15, %rdi
	callq	free
	movq	%r12, %rdi
	callq	free
	incq	%r13
	cmpq	$33, %r13
	jne	.LBB1_2
# %bb.24:
.Ltmp40:
	leaq	40(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv
.Ltmp41:
# %bb.25:
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE(%rip), %rax
	leaq	48(%rsp), %rdi
	movq	%rax, -8(%rdi)
	movq	_ZTTSt14basic_ofstreamIcSt11char_traitsIcEE+24(%rip), %rcx
	movq	-24(%rax), %rax
	movq	%rcx, 40(%rsp,%rax)
	callq	_ZNSt13basic_filebufIcSt11char_traitsIcEED2Ev
	leaq	288(%rsp), %rdi
	callq	_ZNSt8ios_baseD2Ev
	xorl	%eax, %eax
	addq	$552, %rsp                      # imm = 0x228
	.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_29:
	.cfi_def_cfa_offset 608
.Ltmp42:
	jmp	.LBB1_30
.LBB1_31:
.Ltmp2:
	jmp	.LBB1_30
.LBB1_32:
.Ltmp30:
	jmp	.LBB1_30
.LBB1_26:
.Ltmp9:
	jmp	.LBB1_30
.LBB1_33:
.Ltmp39:
	jmp	.LBB1_30
.LBB1_27:
.Ltmp25:
	jmp	.LBB1_30
.LBB1_28:
.Ltmp20:
.LBB1_30:
	movq	%rax, %rbx
	leaq	40(%rsp), %rdi
	callq	_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end1:
	.size	main, .Lfunc_end1-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table1:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Lfunc_begin0-.Lfunc_begin0    # >> Call Site 1 <<
	.uleb128 .Ltmp0-.Lfunc_begin0           #   Call between .Lfunc_begin0 and .Ltmp0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp2-.Lfunc_begin0           #     jumps to .Ltmp2
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp3-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp8-.Ltmp3                  #   Call between .Ltmp3 and .Ltmp8
	.uleb128 .Ltmp9-.Lfunc_begin0           #     jumps to .Ltmp9
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp15-.Ltmp10                #   Call between .Ltmp10 and .Ltmp15
	.uleb128 .Ltmp25-.Lfunc_begin0          #     jumps to .Ltmp25
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp19-.Ltmp16                #   Call between .Ltmp16 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp24-.Ltmp21                #   Call between .Ltmp21 and .Ltmp24
	.uleb128 .Ltmp25-.Lfunc_begin0          #     jumps to .Ltmp25
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp26-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Ltmp29-.Ltmp26                #   Call between .Ltmp26 and .Ltmp29
	.uleb128 .Ltmp30-.Lfunc_begin0          #     jumps to .Ltmp30
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp31-.Lfunc_begin0          # >> Call Site 8 <<
	.uleb128 .Ltmp38-.Ltmp31                #   Call between .Ltmp31 and .Ltmp38
	.uleb128 .Ltmp39-.Lfunc_begin0          #     jumps to .Ltmp39
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp40-.Lfunc_begin0          # >> Call Site 9 <<
	.uleb128 .Ltmp41-.Ltmp40                #   Call between .Ltmp40 and .Ltmp41
	.uleb128 .Ltmp42-.Lfunc_begin0          #     jumps to .Ltmp42
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp41-.Lfunc_begin0          # >> Call Site 10 <<
	.uleb128 .Lfunc_end1-.Ltmp41            #   Call between .Ltmp41 and .Lfunc_end1
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.text
	.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	$_Z14mapping_kernelPjS_j, %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	_Z14mapping_kernelPjS_j,@object # @_Z14mapping_kernelPjS_j
	.section	.rodata,"a",@progbits
	.globl	_Z14mapping_kernelPjS_j
	.p2align	3, 0x0
_Z14mapping_kernelPjS_j:
	.quad	_Z29__device_stub__mapping_kernelPjS_j
	.size	_Z14mapping_kernelPjS_j, 8

	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"par_mapping.csv"
	.size	.L.str, 16

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

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	" time: %.5f\n"
	.size	.L.str.2, 13

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

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z14mapping_kernelPjS_j"
	.size	.L__unnamed_1, 24

	.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 _Z29__device_stub__mapping_kernelPjS_j
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _Z14mapping_kernelPjS_j
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z14mapping_kernelPjS_j ; -- Begin function _Z14mapping_kernelPjS_j
	.globl	_Z14mapping_kernelPjS_j
	.p2align	8
	.type	_Z14mapping_kernelPjS_j,@function
_Z14mapping_kernelPjS_j:                ; @_Z14mapping_kernelPjS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s2, s2, 0xffff
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[1:2], null, s15, s2, v[0:1]
	s_mov_b32 s2, exec_lo
	v_cmpx_gt_u32_e64 s3, v1
	s_cbranch_execz .LBB0_2
; %bb.1:
	s_load_b128 s[0:3], s[0:1], 0x0
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[0:1], 2, v[1:2]
	s_waitcnt lgkmcnt(0)
	v_add_co_u32 v2, vcc_lo, s2, v0
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, s3, v1, vcc_lo
	v_add_co_u32 v0, vcc_lo, s0, v0
	v_add_co_ci_u32_e32 v1, vcc_lo, s1, v1, vcc_lo
	global_load_b32 v2, v[2:3], off
	s_waitcnt vmcnt(0)
	global_store_b32 v[0:1], v2, off
.LBB0_2:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z14mapping_kernelPjS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.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 4
		.amdhsa_next_free_sgpr 16
		.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	_Z14mapping_kernelPjS_j, .Lfunc_end0-_Z14mapping_kernelPjS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 148
; NumSgprs: 18
; NumVgprs: 4
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 4
; 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:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z14mapping_kernelPjS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z14mapping_kernelPjS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     4
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
